docker启动mysql失败,报错docker exec -it mysql mysql -uroot -proot Error response from daemon: Container 0f83eee59a75595deedecbd40b384333e6db35edd90c5d4c3a0eb3212f2e4665 is restarting, wait until the container is running 一直显示正在重启
使用docker logs –tail 50 –follow –timestamps ID/NAME命令,根据id号查看错误日志定位原因,发现日志报错
2022-06-10T16:40:18.022297089Z 2022-06-10 16:40:17+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.36-1debian10 started.
2022-06-10T16:40:18.089266142Z 2022-06-10 16:40:18+00:00 [ERROR] [Entrypoint]: mysqld failed while attempting to check config
2022-06-10T16:40:18.089293382Z command was: mysqld --verbose --help --log-bin-index=/tmp/tmp.nwVhNzo5Rx
2022-06-10T16:40:18.089301169Z 2022-06-10T16:40:18.059605Z 0 [ERROR] COLLATION 'utf8_unicode_ci' is not valid for CHARACTER SET 'latin1'
2022-06-10T16:40:18.089308353Z 2022-06-10T16:40:18.066793Z 0 [ERROR] Aborting
问题在于mysqld在试图检查配置时失败。检查mysql的配置文件信息即可
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/185417.html原文链接:https://javaforall.cn
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有