this is what I use in MySQL console (WAMP) (no password, as it is local)
mysql> mysql -u root -p dbase < table.sql
or this
mysql> mysql -u root -p dbase < C:\path\to\table.sql
this is what 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 dbase < table.sql' at line 1
what may cause this problem?
The command you’re using is meant to be run outside of the mysql shell. If you just
exitout of the mysql shell and enter the same command, it should work.