If you receive the following error when running mysql commands via SSH or Web Terminal:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13)
Workaround
Simply in the command use --protocol=tcp
For example, if importing database:
mysql --protocol=tcp -u DB_NAME -p USERNAME < FILENAME.sql
To permanently apply this setting, execute the following command to create a new file in your home directory:
echo -e "[client]\nprotocol=tcp" > ~/.my.cnf && chmod 600 ~/.my.cnf