# 进入mysql中执行如下
SET GLOBAL foreign_key_checks=0;
SET GLOBAL unique_checks=0;
SET GLOBAL innodb_flush_log_at_trx_commit=0;
SET GLOBAL sync_binlog=0;

-- 你的sql语句1
-- 你的sql语句2
-- 你的sql语句3

SET GLOBAL foreign_key_checks=1;
SET GLOBAL unique_checks=1;
SET GLOBAL innodb_flush_log_at_trx_commit=1;
SET GLOBAL sync_binlog=1;

 

相关文章:

  • 2022-12-23
  • 2021-06-11
  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
  • 2022-03-01
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-25
  • 2021-06-27
  • 2022-12-23
  • 2022-03-02
  • 2021-12-03
  • 2022-12-23
相关资源
相似解决方案