Unable to start MySQL: unknown variable table_cache

Created:

2016-11-16 13:13:09 UTC

Modified:

2017-08-16 16:10:58 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Unable to start MySQL: unknown variable table_cache

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.x for Linux

Symptoms

Unable to start mysql service

# service mysqld restart
Stopping mysqld: [ OK ]
MySQL Daemon failed to start.
Starting mysqld: [FAILED]

In /var/log/mysqld.log following error can be found:

2016-03-28 10:31:26 29013 [ERROR] /usr/sbin/mysqld: unknown variable 'table_cache=1024'
2016-03-28 10:31:26 29013 [ERROR] Aborting

Cause

Declared variable is unknown in MySQL configuration.

Resolution

Comment table_cache variable in /etc/my.cnf :

# cat /etc/my.cnf | grep table_cache
#table_cache=1024
Have more questions? Submit a request
Please sign in to leave a comment.