I've been trying so hard just to connect with MySQL in my Linux server account. However when I run mysqladmin -u root -p
, it generates this prompt:
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
Then when I tried this:
mkdir /var/run/mysqld
touch /var/run/mysqld/mysql.sock
it will prompt
touch: cannot touch `/var/run/mysqld/mysql.sock': Permission denied
Can anyone help me if there is any workaround or a solution for this?