记录一下docker的mysql容器exited(1)无法正常启动的解决思路

一开始应该查看日志,该命令为:docker logs 容器id

查看到报错[ERROR] [Entrypoint]:Database is uninitialized and password option is not specified You need to specify one of the following:

看到这个问题反应到配置文件的password有问题,看了一下是自己配置的时候PASSWORD写成了PASSWD,改好再run一下就好了

参考文档:(93条消息) [ERROR] [Entrypoint]: Database is uninitialized and password option is not specified_笙箫声动的博客-CSDN博客_database is uninitialized and password option is n

posted @ 2022-10-25 01:38  a_shadow  阅读(1175)  评论(0)    收藏  举报