我就是这么用的 mysql -u root -p < /sql/business_table.sql; 可是报错 ERROR 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 'mysql -u root -p < /sql/business_table.sql' at line 1
这是在LINUX操作系统下的命令,不是MYSQL内。# mysql -uroot -pxxxxx < 导入的文件
如果先创建个库试试呢? mysql –uroot –p123456 -Dtest<d:\test\ss.sql
可是报错 ERROR 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 'mysql -u root -p < /sql/business_table.sql' at line 1
mysql –uroot –p123456 -Dtest<d:\test\ss.sql