Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

Thank you.

share|improve this question
$ 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 ( – 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


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