Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

table_cache setting is now table_open_cache MySQL 5.6+ #14

Open
nickhammond opened this issue Jun 26, 2014 · 1 comment
Open

table_cache setting is now table_open_cache MySQL 5.6+ #14

nickhammond opened this issue Jun 26, 2014 · 1 comment

Comments

@nickhammond
Copy link

Installing on a new node and it's installing 5.6 and the template in this role for my.cnf has table_cache which is no longer supported and prevents mysqld from starting up. It's now table_open_cache for >= 5.6.

MySQL ticket: http://bugs.mysql.com/bug.php?id=68315

Since the standard my.cnf file from apt includes all files in /etc/mysql/conf.d/*, why don't we move the settings from my.cnf in the template file into an override that goes in /etc/mysql/conf.d/? Then do a version comparison or conditional include based on the mysql version and add mysql_version as a setting with the role.

Truncated output from running sudo mysqld --verbose:

...
[ERROR] mysqld: unknown variable 'table_cache=64'
[ERROR] Aborting
@pjan
Copy link
Contributor

pjan commented Jul 11, 2014

Happy to accept a PR, if you find the time. I probably won't find the time myself anytime soon to set this up unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants