I want to use my SQL'book_data2' file from the desktop E drive as a 'SOURCE'. But I am getting an error code 1064 in MySQL workbench. Could you help me for that issue? I am giving the code and action output below.
Code:
SOURCE E:\DataPractice\Practice\book_data2.sql;
Action Output:
Error Code: 1064. 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 'SOURCE E:\DataPractice\Practice\book_data2.sql' at line 1 0.000 sec
1064? Google it. It shows you have syntax error. One step towards solving made. It tells you at line 1? Check the line 1 for any syntax error. Another step made ... Ah, it's another problem if you don't understand where the syntax error is. In this case, can you post some of the first lines of yoursqlfile?