Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connect to Remote MySQL database (NEWBIE)

Status
Not open for further replies.

t35li

Programmer
May 28, 2009
12
CA
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top