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

mysql configuration fails when hostname has a capital letter #113

Open
muelli opened this issue May 20, 2015 · 4 comments
Open

mysql configuration fails when hostname has a capital letter #113

muelli opened this issue May 20, 2015 · 4 comments

Comments

@muelli
Copy link
Contributor

muelli commented May 20, 2015

For some reason configuring mysqld does not work when the hostname is not all lower case.
The work-around is to edit /etc/hostname and /etc/hosts to remove capital letters.
This may very well be a in bug in Debian's mysql setup. But I file it here so that it can be tracked.

@drybjed
Copy link
Member

drybjed commented May 21, 2015

After some research I've found bug reports, this, this and this suggesting that it might be a bug related to mysql installation scripts. It looks like the MySQL server itself handles hostnames in lowercase, but the initialization script doesn't respect that and creates hostnames with uppercase letters in them if they are present in DNS.

Because of the above, "fixing" this issue by forcing hostnames to lowercase in either DebOps roles (all of them) or Ansible mysql_user module probably won't solve the issue.

@muelli
Copy link
Contributor Author

muelli commented May 21, 2015

right. So I guess this needs to be escalated to Debian, then.

FWIW: the puppet people are apparently "fixing" it themselves: larsks/puppetlabs-mysql@0afb8f0
So that's arguably a good enough solution.
But the root cause should really be fixed. I've never filed a Debian bug. Can you do that?

@drybjed
Copy link
Member

drybjed commented May 21, 2015

@muelli An equivalent to Puppet solution would be an update to Ansible's mysql_user module.

This bug might already be fixed in Jessie, either in MySQL or MariaDB server. Before sending alarms anywhere it should be tested on current Debian Stable if bug still exists.

@drybjed
Copy link
Member

drybjed commented May 21, 2015

It looks like at least in MariaDB on Debian, installation script lowers the hostname in mysql_system_tables_data.sql

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