MYSQL + SSH

MYSQL + SSH

Posted by: vedovelli
Posted on: 2006-02-17 09:21:00

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

Re: MYSQL + SSH

Posted by: matttail
Posted on: 2006-02-17 12:26:00

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



-Matttail

Tags: mysql dbsshgreetingsshellbrazil