Mysql + ssh

Hello people. Greetings from Brazil!

I’m trying to populate a MySQL db via shell with the following commands:

mysql -utestevedsa -p < petronews.sql

So, I’m receiving the following error message:

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)

Someone could please give a little help??

Thanks in advance!


You’re command isn’t quite right. See this Wiki Article for the proper syntax.