Closed wck821829906 closed 5 months ago
That is correct -- we intentionally only support creation of a single database with MYSQL_DATABASE
. More complex use cases are encouraged to create a small .sql
or .sh
script in the supported initdb folder.
when I use command line
docker run -d --net=host --name mysql -e MYSQL_ROOT_PASSWORD=123456 -e MYSQL_DATABASE="db1,db2,db3" mysql:5.7
, the result is just one instance created but not multiple instance as db1、db2、db3