I am running MySQL on Ubuntu 10.4 LTS and, unfortunately, I am having serious problems importing the sql file.
What am I actually doing:
1) I go to the directory containing the sql file that is being called: bk.sql
2) Then I type:
mysql -u root -p
(and then I enter the root password and everything goes smoothly)
3) I use this command to perform the import operation (provided that the password = 123 m. Database name = Mydb sql file = bk.sql)
mysql -u root -p 123m Mydb < bk.sql;
I get:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mysql -u root -p 123m Mydb < bk.sql' at line 1
Is the import procedure performed correctly?
source share