mysqldump: Couldn't execute 'SET OPTION SQL_QUOTE_SHOW_CREATE=1': You have an error in your SQL syntax; check the manual t

1、备份mysql数据库时候出错,导出数据:

[[email protected] ~]# mysqldump -uroot -p mysql >/root/bck.sql
Enter password:
mysqldump: Couldn‘t execute ‘SET OPTION SQL_QUOTE_SHOW_CREATE=1‘: 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 ‘OPTION SQL_QUOTE_SHOW_CREATE=1‘ at line 1 (1064)

2、查询是否mysqldump版本问题:

[[email protected] ~]# mysqldump --version
mysqldump  Ver 10.13 Distrib 5.1.71, for redhat-linux-gnu (x86_64)
[[email protected] ~]# which mysqldump
/usr/bin/mysqldump

3、用5.6.23版本的mysqldump覆盖或者指定目录运行即可

[[email protected] mysql]# cp /opt/mysql/mysql-5.6.23-linux-glibc2.5-x86_64/bin/mysqldump  /usr/bin/mysqldump
cp: overwrite `/usr/bin/mysqldump‘? y

4、查看是否备份成功:

[[email protected] mysql]# mysqldump -uroot -h127.0.0.1  -p test > /root/1.sql
Enter password:
[[email protected] ~]# cat 1.sql
DROP TABLE IF EXISTS `SC`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `SC` (
  `Scid` int(12) NOT NULL AUTO_INCREMENT,
  `Cno` int(10) NOT NULL,
  `Sno` int(10) NOT NULL,
  `Grade` tinyint(2) NOT NULL,
  PRIMARY KEY (`Scid`)
.....................

mysqldump: Couldn't execute 'SET OPTION SQL_QUOTE_SHOW_CREATE=1': You have an error in your SQL syntax; check the manual t

时间: 2024-10-12 03:32:32

mysqldump: Couldn't execute 'SET OPTION SQL_QUOTE_SHOW_CREATE=1': You have an error in your SQL syntax; check the manual t的相关文章

mysqldump:Couldn't execute 'SET OPTION SQL_QUOTE_SHOW_CREATE=1'问题

1.问题描述 使用mysqldump备份,备份命令: [[email protected] opt]# mysqldump -uroot -p  --skip-quote-names --databases test --tables t >test1.sql mysqldump: Couldn't execute 'SET OPTION SQL_QUOTE_SHOW_CREATE=1': You have an error in your SQL syntax; check the manua

mysqldump: Couldn't execute 'SAVEPOINT sp':

报错信息 # mysqldump --default-character-set=utf8 --set-gtid-purged=on  -uxx -pxx -hx.x.x.x  --triggers --routines --events --single-transaction --databases xx  >./bak_xx_$(date +%F).sql mysqldump: [Warning] Using a password on the command line interface

mysqldump: Couldn't execute 'show table status '解决方法

执行:[[email protected] lamp]# mysqldump -F -R -E --master-data=2   -p -A --single-transaction 在控制台端出现 mysqldump: Couldn't execute 'show table status like 'v\_bid\_bad'': SELECT command denied to user ''@'%' for column 'id' in table 't_bids' (1143) 在wo

mysql数据库二进制初始化出现:170425 17:47:04 [ERROR] /application/mysql//bin/mysqld: unknown option '--skip-locking' 170425 17:47:04 [ERROR] Aborting 解决办法

[[email protected] mysql]# ./scripts/mysql_install_db --user=mysql --basedir=/application/mysql/ --datadir=/application/mysql/data/Installing MySQL system tables...170425 17:47:04 [ERROR] /application/mysql//bin/mysqld: unknown option '--skip-locking

Failed to execute "C:\learn\C\程序练习\1.exe": Error 0: 操作成功完成。 请按任意键继续. . .问题解决

在DEV中编译运行时出现以上提示,原因是该文件被杀毒软件隔离了,认为它是病毒文件 解决办法,找到该文件进行恢复 原文地址:https://www.cnblogs.com/yangxiaoqin/p/8410730.html

使用mysqldump进行数据导出时出现的错误

1,使用mysqldump时报错(1064),这个是因为mysqldump版本太低与当前数据库版本不一致导致的.mysqldump: Couldn't execute 'SET OPTION SQL_QUOTE_SHOW_CREATE=1': You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use

mysql5.5.30源码安装及主从搭建

双机热备(实验环境) 主服务器:ip地址192.168.100.244,mysql版本5.5.30,源码安装 从服务器:ip地址192.168.100.245 一.源码安装mysql5.5 启动目录:/usr/local/mysql 数据文件目录:/data/mysql 二进制日志目录:/data/mysql/binlog 1.添加mysql 用户(不添加用户目录) shell> groupadd mysql shell> useradd -r -g mysql mysql -g, --gid

J2EE开发工作中遇到的异常问题及解决方法总结

转自:http://blog.csdn.net/rchm8519/article/details/41624381 1.    HttpClient I/O exception: 错误信息:I/O exceptioncaught when processing request: Connection timed out:connect 错误原因:IP不正确. 解决方法:改正IP 2.    Ambiguous handler methods mapped 错误信息:java.lang.Illeg

select … into outfile 备份恢复(load data)以及mysqldump时间对比

select - into outfile 'path' 备份 此种方式恢复速度非常快,比insert的插入速度要快的多,他跟有备份功能丰富的mysqldump不同的是,他只能备份表中的数据,并不能包含表的结构.如果备份完成之后,表被drop,是无法实现恢复操作的(除非有表结构). mysql> select * from t1 into outfile '/mydata/mysql/mysql3307/data/t1.sql'; ERROR 1290 (HY000): The MySQL se