一台安装5.5与5.6报unknown variable 'log-slow-queries=/home/mysql/localhost-slow.log' 错解决方案

一台中有两个MYSQL,基本一个5.5rpm包)配置文件/etc/my.cnf,别外一个5.6 配置文件/home/app/mysql5.6/my.cnf

5.6上报错

2016-01-27 00:09:03 16056 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.27-rel75.0 started; log sequence number 1763792

2016-01-27 00:09:03 16056 [ERROR] /home/app/mysql5.6/bin/mysqld: unknown variable 'log-slow-queries=/home/mysql/localhost-slow.log'

2016-01-27 00:09:03 16056 [ERROR] Aborting

2016-01-27 00:09:03 16056 [Note] Binlog end

 

最终原因是因为MYSQL是合并配置文件的,所以也找到了5.5中的文件,因为5.6 log-slow-queries已经不是那参数了所以报错

解决把/etc/my.cnf  log-slow-queries = /home/mysql/localhost-slow.log注释掉 #log-slow-queries = /home/mysql/localhost-slow.log

5.6版本就可以启动了。



本文转自 jxzhfei  51CTO博客,原文链接:http://blog.51cto.com/jxzhfei/1738664

上一篇:4-2 ADO.NET-查询和检索数据11


下一篇:mono for android 绑定log4j错误提示