Quote:
Originally Posted by Rhoads
I tried but i get a error:
Got error: 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) when trying to connect -/bin/bash-2.05b$
Whats the problem, i use the command from your post, with my user and database name.
|
I noticed someone asked this question, but it doesn't look like it got answered. Anyway, the MySQL command could be more complete. In some cases the server might not be localhost. Therefore, the command should look like this:
mysql -u MyUserName -p MyDBName -h mysql.myhost.com < /full/path/to/sqldump.sql