【发布时间】:2015-01-08 13:59:34
【问题描述】:
我正在尝试通过putty导入sql文件
以下是我对 DB 的详细信息 dbname - 测试, 密码 - test123, 用户名-utest,
我试过下面的代码
mysql -u utest -p test123 test< /home/path/public_html/file.sql
当我运行这个命令时,我看到了一条错误消息
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 utest -p test123 test < file' at line 1
请建议如何导入sql文件
感谢桑吉布
【问题讨论】:
-
-p和test123之间不能有空格
标签: mysql