Mysql + ssh


#1

Hello people. Greetings from Brazil!

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

mysql testevedsa.vedsa.com.br -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!

Vedovelli


#2

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

-Matttail