Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

DBI error ... forty-eight

by Cody Fendant (Pilgrim)
on Jul 29, 2011 at 07:52 UTC ( #917400=perlquestion: print w/ replies, xml ) Need Help??
Cody Fendant has asked for the wisdom of the Perl Monks concerning the following question:

I'm getting an intermittent error connecting to MySQL with DBI. The message I get back is "Can't connect to MySQL server on '<DBSERVER>' (48)".

My question is simple ... what does the 48 part mean?

Also, how could I have googled or otherwise looked this up? Believe me, I did try.

Comment on DBI error ... forty-eight
Re: DBI error ... forty-eight
by Khen1950fx (Canon) on Jul 29, 2011 at 08:10 UTC
    48 looks like an error code. Try running
    perror 48
    It should say
    OS error code 48: Link number out of range
    Update: google "MySQL error 48"
Re: DBI error ... forty-eight
by Anonymous Monk on Jul 29, 2011 at 09:30 UTC
    Increase the DBI trace level and you'll get more detail
Re: DBI error ... forty-eight
by Cody Fendant (Pilgrim) on Jul 29, 2011 at 22:51 UTC
    UPDATE: I'm now being told by an administrator that the code is really a TCP/socket type error: "Address already in use" (EADDRINUSE) and not a MySQL error at all.
      EADDRINUSE on Linux is 98, but, on Windows Winsock, it's 10048---WSAEADDRINUSE. I still think that 48 is ELNRNG--link number out of range.
        So, what does "link number out of range" mean then?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://917400]
Approved by toolic
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2014-10-02 06:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (49 votes), past polls