mysqldump: Couldn't execute 'SAVEPOINT sp':

  1. 报错信息

# 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 can be insecure.

Warning: A partial dump from a server that has GTIDs will by default include the GTIDs of all transactions, even those that changed suppressed parts of the database. If you don‘t want to restore GTIDs, pass --set-gtid-purged=OFF. To make a complete dump, pass --all-databases --triggers --routines --events.

mysqldump: Couldn‘t execute ‘SAVEPOINT sp‘:

The MySQL server is running with the --transaction-write-set-extraction!=OFF option so it cannot execute this statement (1290)

2.处理方法

> set global transaction_write_set_extraction=off;   --Reserved for future use.

Query OK, 0 rows affected (0.00 sec)

3.总结

数据库版本5.7.15 ,备份的时候报错,根据报错信息到官网查看相关参数含义。以上参数未来使用预留,默认是为Off,可以动态修改,未来组复制特性需要使用此参数。

mysqldump: Couldn't execute 'SAVEPOINT sp':

时间: 2024-10-11 13:41:33

mysqldump: Couldn't execute 'SAVEPOINT sp':的相关文章

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

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 M

MySQL5.7 切不要"乱射" --transaction-write-set-extraction=MURMUR32

今天早上一个朋友找到了我,说他们备份失败了,使用的版本为MySQL 5.7.15 报错信息如下: mysqldump: Couldn't execute 'SAVEPOINT sp':  The MySQL server is running with the --transaction-write-set-extraction!=OFF  option so it cannot execute this statement (1290) 由于--transaction-write-set-ex

解决mysqldump备份报错: Couldn't execute 'SHOW FIELDS FROM Unknown error 1356

服务器环境: [[email protected] mysql]# cat /etc/redhat-releaseCentOS Linux release 7.3.1611 (Core) [[email protected] mysql]# uname -aLinux localhost.localdomain 3.10.0-514.21.1.el7.x86_64 #1 SMP Thu May 25 17:04:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

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备份7

http://www.cnblogs.com/ivictor/p/5505307.html 对于MySQL的备份,可分为以下两种: 1. 冷备 2. 热备 其中,冷备,顾名思义,就是将数据库关掉,利用操作系统命令拷贝数据库相关文件.而热备指的是在线热备,即在不关闭数据库的情况下,对数据库进行备份.实际生产中基本上都是后者. 关于热备,也可分为两种方式: 1. 逻辑备份 2. 物理备份 对于前者,常用的工具是MySQL自带的mysqldump,对于后者,常用的工具是Percona提供的XtraBa

mysqldump原理1

http://blog.csdn.net/linwaterbin/article/category/1299332 mysqldump -S /tmp/mysql.sock --single-transaction --force --databases test > v1.sql [[email protected] data]# cat v1.sql -- MySQL dump 10.13 Distrib 5.6.28, for Linux (x86_64) -- -- Host: loca

mysqldump的实现原理

我们可以通过打开general log,查看mysqldump全库备份时执行的命令来了解mysqldump背后的原理. 打开general log mysql> set global general_log=on; 其中,general log的存放路径可通过以下命令查看 mysql> show variables like '%general_log_file%'; 执行全库备份 # mysqldump --master-data=2  -R --single-transaction -A

mysqldump原理及实验

**********************mysqldump 所需权限************************************* dump tables:SELECT dump views:SHOW VIEW dump triggers:TRIGGER LOCK TABLES(如果不使用--single-transaction) RELOAD,SUPER, REPLICATION CLIENT (--master-data=2) 数据库字符集更改:ALTER DATABASE