I recently moved my mysql directory as it was filling up the partition.
I went ahead and updated my.cnf with the new datadir.
Then i went ahead and updated my php.ini default_socket (mysqli & mysql) to the new location and restarted apache. Yet every time a cron (php script) runs that does an mysqli update on a table i get:
Connection Failed: 2002
Should i be including the full path including filename or just the path.
/home/mysql/mysql.sock
Error Log:
[26-Feb-2014 11:30:01 America/New_York] PHP Warning: mysqli::mysqli(): (HY000/2002): Can't connect to local MySQL server through socket '/home/mysql/mysql.sock' (2) in /home/user/public_html/models/db-settings.php on line 21