-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Override root default superuser name #1028
Comments
I can't find this usecase in the MySQL documentation. It's possible that it isn't meant to be configurable. |
I'm going to close for now; if we can find documentation for how to do this in a supported way, we can reopen. 👍 |
Can't the Docker container simply execute a query? E.g. from https://stackoverflow.com/a/19539029/4839573: use mysql;
update user set user='admin' where user='root';
flush privileges; |
It sure could, but then it might as well be dropped into |
To put that another way, we've already got more behavior we've "invented" on top of a stock MySQL experience than we're comfortable with, so anything that doesn't have to be extra behavior invented by (and maintained by) us is good, and the thing that would make this compelling for us is if it could be done pre-initialization such that the database never has a |
I see, thanks! FWIW, I run containers programmatically and all the user name consts are defined in Clojure code. So for me as a consumer, it's more hassle to set up |
Would be great to have something like
MYSQL_ROOT_USER
environment variable to change the defaultroot
superuser name.E.g. PostgreSQL (https://hub.docker.com/_/postgres) has
POSTGRES_USER
for that.The text was updated successfully, but these errors were encountered: