Navicat 执行“source f:/testsql” 提示1064错误

来源:互联网 发布:udp和tcp的端口号 编辑:程序博客网 时间:2024/06/05 18:53

在Navicat命令行界面执行"source f:/testsql",

提示:

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 f:/hr_mysql.sql' at line 1




然而,在命令行,使用mysql -u root -p 登陆数据库

然后  执行 “source f:/testsql”,可以正确运行





另外使用Navicat命令列界面的“载入”SQL,然后也可以正常运行;




分析结果: 

应该是navicat 的命令行,不支持source命令,比如直接直接输入source、help等,也会有最开始的错误提示;



0 0
原创粉丝点击