I'm building a website for my lab using MySQL database provided by the university's server. I can't seem to figure out how to connect to MySQL using SSH Secure Shell Client. I have connected to the university's server using SSH, but when I type commands like :
[user@servername]$ mysql -u user -p database
it gives sth like:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
I have know idea what I'm suppose to do or if I'm not doing something correctly. Please help.
[user@servername]$ mysql -u user -p database
it gives sth like:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
I have know idea what I'm suppose to do or if I'm not doing something correctly. Please help.