Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
517 views
in Technique[技术] by (71.8m points)

mysql - 升级到mysql8后Mysqldump变慢(Mysqldump slow after upgrade to mysql8)

My earlier verison mysql 5.7.20, all databases structure backup takes 10 minutes.

(我的早期版本是mysql 5.7.20,所有数据库结构备份需要10分钟。)

After upgrade to mysql 8.0.11 structure backups take 51 hours.

(升级到mysql 8.0.11后,结构备份需要51个小时。)

Its huge time for structure backup.

(大量时间用于结构备份。)

Can anyone help what i missing?

(任何人都可以帮助我所缺少的吗?)

  ask by Swati Desai translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

If you are not using tablespaces, it might help to use mysqldump's option "--no-tablespaces", that will speed it up considerably if you have many tables.

(如果您不使用表空间,则使用mysqldump的选项“ --no-tablespaces”可能会有所帮助,如果您有很多表,它将大大加快速度。)

See also: https://bugs.launchpad.net/percona-server/+bug/1589334/comments/2

(另请参阅: https : //bugs.launchpad.net/percona-server/+bug/1589334/comments/2)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...