Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'd just like to know what the number '64' represents in MySQL connection error message:

Can't connect to MySQL server on '127.0.0.1' (64) in /var/www/test.php

Thank you.

share|improve this question

2 Answers 2

$ perror 64
OS error code  64:  Machine is not on the network

...

Yeah, not a clue what that means either.

share|improve this answer
    
+1 for mentioning perror (dev.mysql.com/doc/refman/5.1/en/perror.html). –  joschi May 9 '10 at 12:40

Error 64 means the machine is not on the network.

Clearly the machine is on the network as it is your own, however the error might suggest that either MySQL is not running or may be running on a non standard port.

The PHP function mysql_error() will give you the textual representation of any error MySQL might throw.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.