简体   繁体   English

在phpmyadmin中导入数据时收到错误1064

[英]getting error 1064 while importing data in phpmyadmin

1064 - You have an error in your SQL syntax; 1064-您的SQL语法有误; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Usage: mysqldump [OPTIONS] database [tables] OR mysqldump [OPTIONS] --databa' at line 1 在第1行的“用法:mysqldump [OPTIONS]数据库[tables]或mysqldump [OPTIONS] --databa”附近,查看与您的MySQL服务器版本相对应的手册,以使用正确的语法。

I am getting this error while importing my mysql database into phpmyadmin. 将mysql数据库导入phpmyadmin时出现此错误。 What can be the reason? 可能是什么原因?

This does not appear to be a valid export/dump/SQL file. 这似乎不是有效的导出/转储/ SQL文件。 If I had to guess, I'd say you redirected the output of mysqldump to a file, but used incorrect syntax when calling mysqldump, causing the error text to redirect to the file instead of the SQL code. 如果我不得不猜测,我会说您将mysqldump的输出重定向到一个文件,但是在调用mysqldump时使用了错误的语法,从而导致错误文本重定向到该文件而不是SQL代码。

How big is your SQL file? 您的SQL文件有多大?

Try exporting again, being careful to monitor for errors this time. 再次尝试导出,请小心监视这次的错误。 It seems to me you would have had to redirect stderr in this case, which is an odd thing to do, so you could also show us the command line statement you used to create the SQL file. 在我看来,在这种情况下,您不得不重定向stderr,这很奇怪,因此您还可以向我们展示用于创建SQL文件的命令行语句。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM