[英]mysqldump error in exporting a table from a database
Can anyone please let me know why am I getting this error 任何人都可以让我知道为什么我会收到此错误
You have an error in your SQL syntax;
您的SQL语法有误; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mysqldump -p --user=root database_name utilities > utilities.sql'
检查与您的MySQL服务器版本相对应的手册,以获取在'mysqldump -p --user = root database_name utilities> utilities.sql'附近使用的正确语法。
on this mysqldump -p --user=root database_name utilities > utilities.sql;
在此
mysqldump -p --user=root database_name utilities > utilities.sql;
I tried keeping the database name, table name in backticks. 我尝试将数据库名称,表名称保留在反引号中。 Nothing seems to work.
似乎没有任何作用。
mysqldump should be run from a normal command prompt/shell instead of the mysql
command, not at the mysql prompt inside it. mysqldump应该从普通的命令提示符/ shell 而不是
mysql
命令运行,而不是从其中的mysql提示符运行。
ubuntu-vm:~$ mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 38
Server version: 5.5.31-0ubuntu0.13.04.1 (Ubuntu)
mysql> exit
Bye
ubuntu-vm:~$ mysqldump -help
Usage: mysqldump [OPTIONS] database [tables]
OR mysqldump [OPTIONS] --databases [OPTIONS] DB1 [DB2 DB3...]
OR mysqldump [OPTIONS] --all-databases [OPTIONS]
For more options, use mysqldump --help
ic@ubuntu-vm:~$
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.