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

Troubles replicating the mysql.users table #1

Closed
fiorix opened this issue Apr 7, 2016 · 0 comments
Closed

Troubles replicating the mysql.users table #1

fiorix opened this issue Apr 7, 2016 · 0 comments

Comments

@fiorix
Copy link

fiorix commented Apr 7, 2016

The current entry point script always delete the mysql.user table and provisions the root user. This works well for bootstrapping the cluster but once the first node comes online, it tries to synch the mysql.user table but then the entry point script deletes it.

I've made a patch that does not touch the mysql.user table unless the MYSQL_ROOT_PASSWORD environment variable is set. However, to keep the same semantics of the original MySQL docker image, you have to explicitly set MYSQL_ALLOW_EMPTY_PASSWORD like you'd normally do.

This patch allows for the bootstrap node to set MYSQL_USER, MYSQL_PASSWORD and MYSQL_DATABASE and other nodes to set MYSQL_ALLOW_EMPTY_PASSWORD so they can synch the user, password and database from the bootstrap one.

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

1 participant