简体   繁体   English

从数据库导出表中的mysqldump错误

[英]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.

相关问题 mysqldump version从MySQL导出数据时出错 - mysqldump version Error while exporting data from MySQL 使用 mysqldump 导出 mysql 数据库,包括过程 - Exporting mysql database using mysqldump including procedures 从 Gcloud 中的 MySQL 导出数据库表时出现未经身份验证的用户错误 - Unathenticated user error when exporting database table from MySQL in Gcloud 导入从源中排除表的数据库 mysqldump 是否会保留目标中的表? - Will importing a database mysqldump that excludes a table from source preserve the table in destination? 在 MAMP 中通过 shell 导出数据库时,获取 mysqldump:[错误] 未知变量“column-statistics=0” - Getting mysqldump: [ERROR] unknown variable 'column-statistics=0' when exporting database though shell in MAMP 从命令提示符mysql工具中导出MySQL数据库。 没有mysqldump - Exporting MySQL database from within a command prompt mysql tool. Without mysqldump 如果1表不存在,则创建数据库的mysqldump - mysqldump with create database if not exist for 1 table 从远程数据库备份mysql,出现mysqldump过程错误 - Backup mysql from remote database with mysqldump process error 将数据库从服务器复制到另一个数据库时发生mysqldump错误 - mysqldump error while copying database from server to another mysqldump导致数据库连接错误? - mysqldump cause database connection error?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM