Mysql not starting -> [ERROR] /usr/sbin/mysqld: unknown option '--query_cache_size-128M'

Check your my.cnf file for the options listed in the error logs and comment them out. Start mysql.


Check your /etc/init.d/mysql if it's trying to start MySQL with this option.


I encountered this, apparently there is a file in my machine under /usr/ named my.cnf that has:

nnodb_force_recovery = 6

commented out and mysql starts fine.