Created
August 22, 2012 14:39
-
-
Save github101/3426232 to your computer and use it in GitHub Desktop.
提高MySQL数据的导出速度
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
在导出数据之前,先设置两个值 max_allowed_packet 128M~256M或者更大,参考内存的使用量;net_buffer_length 一般设置成16384。在使用mysqldump导出数据的时候增加两个三个参数 -e --max_allowed_packet=128M --=net_buffer_length=16384 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment