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 ' ;