I you are reading this, probably you are getting the next error:
/usr/local/bin/mysqladmin: connect to server at ‘localhost’ failed
error: ‘Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)’
Check that mysqld is running and that the socket: ‘/tmp/mysql.sock’ exists
To fix it, and if you are running cPanel just try to run the next commands:
# ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
# /scripts/mysqlup –force