Skip to main content

MySQL failure after 5.6.16 upgrade

Comments

5 comments

  • cPanelMichael
    Hello :) You will first need to ensure that SSH access is possible. You may have to contact your data center to have them check why it's not accessible. You could have accidentally disabled SSH access or configured it on an alternate port. Once SSH is accessible, review the MySQL error log (/var/lib/mysql/$hostname.err) to see what is output when you attempt to start MySQL. Thank you.
    0
  • Timmy J
    Cheers for the response Michael. I've gained console access via a vnc app. Here's the last few lines of the error log output: 2014-04-05 14:01:09 176282 [ERROR] /usr/sbin/mysqld: unknown variable 'table_cache=1024' 2014-04-05 14:01:09 176282 [ERROR] Aborting 2014-04-05 14:06:10 178001 [ERROR] /usr/sbin/mysqld: unknown variable 'table_cache=1024' 2014-04-05 14:06:10 178001 [ERROR] Aborting 2014-04-05 14:11:11 178684 [ERROR] /usr/sbin/mysqld: unknown variable 'table_cache=1024' 2014-04-05 14:11:11 178684 [ERROR] Aborting 2014-04-05 14:16:12 179399 [ERROR] /usr/sbin/mysqld: unknown variable 'table_cache=1024' 2014-04-05 14:16:12 179399 [ERROR] Aborting 2014-04-05 14:21:13 180104 [ERROR] /usr/sbin/mysqld: unknown variable 'table_cache=1024' 2014-04-05 14:21:13 180104 [ERROR] Aborting 2014-04-05 14:26:14 180793 [ERROR] /usr/sbin/mysqld: unknown variable 'table_cache=1024' 2014-04-05 14:26:14 180793 [ERROR] Aborting 2014-04-05 14:31:15 181504 [ERROR] /usr/sbin/mysqld: unknown variable 'table_cache=1024' 2014-04-05 14:31:15 181504 [ERROR] Aborting
    0
  • Timmy J
    Looks like table_cache isn't supported in 5.6 but table_cache=1024 is specified in /etc/my.cnf Why would it have been left in there after running the upgrade through whm? and what do I replace it with? Could this mean there are other incorrect or less than optimal values in the config for 5.6?
    0
  • Timmy J
    Update Swapped 'table_cache' with 'table_open_cache' in the config and it seems to have solved the problem. Does my.cnf not get altered as part of the upgrade process? SSH connection is also solved. The data centre configured it to use an obscure port but didn't think it was necessary to let me know. Also came across another issue in that there was an incorrect mysql password configured for modsec in /etc/cron.hourly/modsecparse.pl Easy to fix but what could have caused it? Has my data centre used a poorly configured image to set up the VPS?
    0
  • cPanelPeter cPanel Staff
    Hello, No, it does not get altered as it can be configured accordingly by each admin/user. Whenever an update to MySQL happens, you should check the /var/lib/mysql/hostname.err file for issues and if necessary, backup your /etc/my.cnf file and start with a clean one that has no modifications to it. If MySQL starts, then slowly add each section back and see if/when/where it fails.
    0

Please sign in to leave a comment.