摘要: 1)开启mysql慢查询日志 使用 show variables like "%slow%"; 命令来查看mysql慢查询配置信息 (其中)log_slow_queries : 慢查询日志开关 (其中)slow_launch_time:慢查询时间设置(以秒为单位),超过这个时间的查询语句为慢查询语句 阅读全文
posted @ 2016-03-15 21:00 Tiac 阅读(228) 评论(0) 推荐(0)
摘要: 1)导出 select * from users into outfile '/tmp/users.txt';或 select * from users where sex=1 into outfile '/tmp/users.txt'; 2)导入 load data infile '/tmp/us 阅读全文
posted @ 2016-03-15 20:14 Tiac 阅读(1019) 评论(0) 推荐(0)