[TimLinux] MySQL sql file to import data solutions to the problem of slow

When slow command: 
MySQL <./ -Uusername -p -hip_address -Ddb_name db.sql 


command when executed fast: 
MySQL -Uusername -hip_address -Ddb_name --max_allowed_packet = -p = XXX XXX --net_buffer_length <. / db.sql 


Show Variables like ' the max_allowed_packet ' ; 
Show Variables like ' net_buffer_length The ' ;

 

Guess you like

Origin www.cnblogs.com/timlinux/p/11425524.html