码迷,mamicode.com
首页 > 数据库 > 详细

mysql加速source导入数据

时间:2018-05-21 16:12:04      阅读:532      评论:0      收藏:0      [点我收藏+]

标签:加速   lob   col   log   ext   innodb   nbsp   mys   进入   

mysql加速source导入数据

# 进入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;

 

mysql加速source导入数据

标签:加速   lob   col   log   ext   innodb   nbsp   mys   进入   

原文地址:https://www.cnblogs.com/bjx2020/p/9067141.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!