Centos 6; phpMyAdmin 'Cannot log in to the MySQL server' after moving mysql.sock
Unless you use the built-in default location PHP also needs to be explicitly configured with the location of the MySQL socket file in the php.ini file or in the connection string...
pdo_mysql.default_socket
= /home/mysql/mysql.sock
or depending on your choice of API's
mysqli.default_socket
= /home/mysql/mysql.sock