Skip to content

Instantly share code, notes, and snippets.

@github101
Created August 22, 2012 14:39
Show Gist options
  • Save github101/3426232 to your computer and use it in GitHub Desktop.
Save github101/3426232 to your computer and use it in GitHub Desktop.
提高MySQL数据的导出速度
在导出数据之前,先设置两个值 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