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
Yeah, not a clue what that means either.
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