数据库
首页 > 数据库> > mysql导出慢

mysql导出慢

作者:互联网

目标数据库

mysql> show variables like 'max_allowed_packet';
+--------------------+---------+
| Variable_name | Value |
+--------------------+---------+
| max_allowed_packet | 4194304 |
+--------------------+---------+
1 row in set (0.00 sec)


mysql> show variables like 'net_buffer_length';
+-------------------+-------+
| Variable_name | Value |
+-------------------+-------+
| net_buffer_length | 16384 |
+-------------------+-------+


原数据参数值不得大于目标参数

mysqldump -uroot -p 原数据库 -e --max_allowed_packet=4194304 --net_buffer_length=16384 > data.sql

标签:buffer,max,mysql,导出,packet,allowed,net
来源: https://www.cnblogs.com/xihuxiangri/p/16358105.html