docker-library / mysql

Docker Official Image packaging for MySQL Community Server
https://dev.mysql.com/
GNU General Public License v2.0
2.42k stars 2.18k forks source link

Override root default superuser name #1028

Open metametadata opened 4 months ago

metametadata commented 4 months ago

Would be great to have something like MYSQL_ROOT_USER environment variable to change the default root superuser name.

E.g. PostgreSQL (https://hub.docker.com/_/postgres) has POSTGRES_USER for that.

LaurentGoderre commented 4 months ago

I can't find this usecase in the MySQL documentation. It's possible that it isn't meant to be configurable.