mysqldump: Couldn't execute 'SAVEPOINT sp':
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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 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,可以动态修改,未来组复制特性需要使用此参数。
本文出自 “12318731” 博客,请务必保留此出处http://12328731.blog.51cto.com/12318731/1875700
以上是关于mysqldump: Couldn't execute 'SAVEPOINT sp':的主要内容,如果未能解决你的问题,请参考以下文章
Why mysqldump is returning with error 1143: Couldn't execute 'show table status like
解决mysqldump备份报错: Couldn't execute 'SHOW FIELDS FROM Unknown error 1356
mysqldump:Couldn't find table:";"是怎么回事
linux g++安装 E: Couldn't find package g
Couldn't load libPassword from loader:NDK开发中C文件编译成cpu的so类库时,找不到类库报错的原因之一
解决Warning Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get fil