I'm getting the following message:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
I've looked into this question: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)', but my hosting (fat cow) doesn't allow SSH.
I looked in my php.ini file, but I didn't see anything that would be of use. I have sent them a ticket, but if I can figure out how to fix this that would be nice.
At first I was able to get it to connect, but I messed up some of the logins in php so how do I fix this?
I am using PHP 5.2 with mySQL_* (I know I need to change to PDO, but I need to do some reading about it first).
$local = "fatcowmysql.com";
$user = "user";
$pass = "pass";
$dbName = "dbName";
$connectMySQL=mysql_connect($local,$user,$pass);
$dbSelect=mysql_select_db($dbName);