修改配置文件 在配置文件my.ini中加上下面两句话
1 log-slow-queries = C:\xampp\mysql_slow_query.log 2 long_query_time=3
第一句使用来定义慢查询日志的路径(若是linux系统,会涉及权限问题)第二句使用来定义用时超过过多少秒的查询是慢查询,单位:秒。
【linux】 【mysql】 【日志】 【LOG】 【数据库】 【配置】 …
GTID 和 START SLAVE START SLAVE 语法 START SLAVE [thread_types] [until_option] [connection_options]
thread_types: [thread_type [, thread_type] .
【数据存储与数据库】 【mysql】 【LOG】 【DBA】 【replication】 点击查看原文>