您好,登錄后才能下訂單哦!
這篇文章主要介紹MySQ導(dǎo)出數(shù)據(jù)報(bào)錯(cuò)Error 2020: Got packet bigger than 'max_allowed_packet'怎么辦,文中介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們一定要看完!
MySQL使用mysqldump導(dǎo)出數(shù)據(jù)報(bào)錯(cuò)
mysql mysqldump: Error 2020: Got packet bigger than 'max_allowed_packet' bytes when dumping table
解決方法:
在導(dǎo)出時(shí)加上--max_allowed_packet參數(shù)
[root@db-backup data]# mysqldump -urepl -p -h 10.11.10.243 -P 3306 --max_allowed_packet=512M -q \ --single-transaction --master-data=2 --databases xxx > /data/20180810_xxx.sql [root@db-backup data]# mysqldump --help|grep max postgresql, oracle, mssql, db2, maxdb, no_key_options, --max-allowed-packet=# The maximum packet length to send to or receive from max-allowed-packet 25165824
以上是“MySQ導(dǎo)出數(shù)據(jù)報(bào)錯(cuò)Error 2020: Got packet bigger than 'max_allowed_packet'怎么辦”這篇文章的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對(duì)大家有幫助,更多相關(guān)知識(shí),歡迎關(guān)注億速云行業(yè)資訊頻道!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。