mysqldump: Couldn't execute 'SAVEPOINT sp':
報(bào)錯(cuò)信息
# 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.總結(jié)
數(shù)據(jù)庫(kù)版本5.7.15 ,備份的時(shí)候報(bào)錯(cuò),根據(jù)報(bào)錯(cuò)信息到官網(wǎng)查看相關(guān)參數(shù)含義。以上參數(shù)未來(lái)使用預(yù)留,默認(rèn)是為Off,可以動(dòng)態(tài)修改,未來(lái)組復(fù)制特性需要使用此參數(shù)。
本文轉(zhuǎn)自 roidba 51CTO博客,原文鏈接:http://blog.51cto.com/roidba/1875700,如需轉(zhuǎn)載請(qǐng)自行聯(lián)系原作者
總結(jié)
以上是生活随笔為你收集整理的mysqldump: Couldn't execute 'SAVEPOINT sp':的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 【线性规划与网络流24题】孤岛营救问题
- 下一篇: mysql-5.7.21 二进制安装 |