docker run --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 -v /C/Users/Mia/Desktop/mysql:/var/lib/mysql -d mysql/mysql-server:5.6 mysqld --default-authentication-plugin=mysql_native_password
我在尝试本地起 mysql 测试环境时能保留数据,但是一加 volume 挂载,数据库启动就铁定超时 exited。不加 volume 就正常启动。这是什么妖术?
[Entrypoint] Database initialized [Entrypoint] Waiting for server... 2020-03-15 10:27:55 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2020-03-15 10:27:55 0 [Note] mysqld (mysqld 5.6.47) starting as process 65 ... [Entrypoint] Waiting for server... …… [Entrypoint] Waiting for server... [Entrypoint] Waiting for server... [Entrypoint] Timeout during MySQL init.