To speed up the operation of restoring a SQL dump in MySQL, you can proceed as follows:
set autocommit = 0;
set foreign_key_checks = 0;
source /root/mydump.sql
set foreign_key_checks = 1;
commit;
set autocommit = 1;
To speed up the operation of restoring a SQL dump in MySQL, you can proceed as follows:
set autocommit = 0;
set foreign_key_checks = 0;
source /root/mydump.sql
set foreign_key_checks = 1;
commit;
set autocommit = 1;