1. the SQL statement exported by MySQLdump is quite slow when it is imported to other databases, or even dozens of seconds before processing an SQL statement. After repeated tests, two parameters are found to affect the import speed ;&..
1. the SQL statement exported by MySQLdump is quite slow when it is imported to other databases, or even dozens of seconds before processing an SQL statement. After repeated tests, two parameters are found to affect the import speed ;&..
1. the SQL statement exported by MySQLdump is quite slow when it is imported to other databases, or even dozens of seconds before processing an SQL statement. After repeated tests, two parameters are found to affect the import speed;
-- Max_allowed_packet = ***** maximum size of the cache area for client/server communication;
-- Net_buffer_length = ***** the size of the TCP/IP and socket communication buffer, and the row with the length of net_buffer_length is created.
When exporting data, use the-e Option to set the preceding two values. Note that the export values of max_allowed_packet and net_buffer_length cannot be greater than those of the target database;
Refer to the database parameter values and use the following command;
Mysql> show variables like 'max _ allowed_packet ';
Mysql> show variables like 'net _ buffer_length ';
Export data by referring to the queried target data parameters;
# Mysqldump-uroot-p *** original database-e -- max_allowed_packet = 4194304 -- net_buffer_length = 16384> file. SQL
This article is from the "Luo laosan's O & M path" blog. Please keep this source