已采纳回答 / 7751
set global 只是全局session生效,重启后失效,如果需要以上配置永久生效,需要在mysql.ini(linux mysql.cnf)中配置[mysqld]slow_query_log = 1log_queries_not_using_indexes = 1long_query_time = 0.1slow_query_log_file = c:\mysql\log\mysqlslowquery.log
2016-04-21
已采纳回答 / 大老唐
0和2都是每秒从缓冲区写入文件一次。区别是commit操作时,0不做任何操作,为2 的时候,commit时会把缓冲区内容写入文件。文档上是这么写的:If the value of innodb_flush_log_at_trx_commit is 0, the log buffer is written out to the log file once per second and the flush to disk operation is performed on the log file, but ...
2016-02-20
最新回答 / 游远见
这是由于in关键字的特性决定的,in可接受一个字段的多行数据, 当select tid from t1 返回一行数据 1,实则等于 where t.id=1;
2015-12-01