一台中有两个MYSQL,基本一个5.5(rpm包)配置文件/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版本就可以启动了。
一台安装5.5与5.6报unknown variable 'log-slow-queries=/home/mysql/localhost-slow.log' 错解决方案
时间: 2024-10-21 12:34:11