file.
I have an ascii text file called "MyData.txt" which contains the following data:
1
2
3
I create a text script file naming it: "MyData.sql" that contains the follwing SQL commands:
CREATE DATABASE MyDb;
USE MyDb;
CREATE TABLE MyTable (MyField INT);
MySqlimport MyDb MyData.txt;
I run it by typing:
c:\mysql\bin\MySql < MyData.sql
And I get an error message saying:
ERROR 1064
You have an error in your SQL syntax near MySqlimport MyDb MyData at line 4
Can anyone tell me what "Error 1064" means ?
Where can i find errors list? I searched in the tutorial (www.mysql.com) and couldnt find.
Anyone has any idea whats wrong with the above script and command ?
Thanks a lot !