I keep getting this error:
Warning: mysql_connect() [function.mysql-connect]: Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) in /mnt/local/home/myusername/myname.com/db.php on line 11
when doing this in PHP:
$connection = mysql_connect(“mysql.myname.com”, “mydb_user”, “mypassword”);
(obviously, the strings are changed).
Anyone else have something similar? My local apache/php/MySQL setup likes my code just fine.
I’m also unable to connect to MySQL via command line; it tells me that my world-facing IP is not allowed to connect to this server.