[英]mysqldump error in exporting a table from a database
任何人都可以让我知道为什么我会收到此错误
您的SQL语法有误; 检查与您的MySQL服务器版本相对应的手册,以获取在'mysqldump -p --user = root database_name utilities> utilities.sql'附近使用的正确语法。
在此mysqldump -p --user=root database_name utilities > utilities.sql;
我尝试将数据库名称,表名称保留在反引号中。 似乎没有任何作用。
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.