unknown variable ‘default-authentication-plugin=mysql_native_password‘
·
docker 部署指定 mysql:8 下载的最新8.4版本的mysql 启动时出现该错误
解决办法
由于mysql8.4废弃该参数_default-authentication-plugin=mysql_native_password_,改为使用这个参数
--mysql-native-password=ON
services:
mysql:
image: mysql:8
command: --mysql-native-password=ON --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
restart: always
参考
官方文档说明
https://dev.mysql.com/doc/refman/8.4/en/native-pluggable-authentication.html#native-pluggable-authentication-installation
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)