can't connect to local mysql server through socket phpmyadmin on server code example
Example: error 2002 (hy000): can't connect to local mysql server through socket '/var/run/mysqld/mysqld.sock' (2)
mysql -h 127.0.0.1 -P 3306 -u root -p <database>
mysql -h 127.0.0.1 -P 3306 -u root -p <database>