mysql通过脚本文件创建表报
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 '"C:/Program Files/MySQL/MySQL Server 5.0/bin/mysql" -uroot -proot Djbpm<E:/test.' at
line 1
原因是:已经链接上数据库,不需要再次链接数据库,如果链接就会报这个错误。
解决方案:直接这样写就行:mysql> source E:/test.sql 或者 /. F:/sql/test.sql 然后敲回车就可以执行了。