问题1
安装mysql时报错MySQL 8.4.0 : default_authentication_plugin=mysql_native_password has been removed
或mysql: unknown variable ‘default_authentication_plugin=mysql_native_password’
原因
mysql 8.4删除了 default_authentication_plugin=mysql_native_password,原生密码认证已被弃用。所以从 8.3.0 版本切换到 8.4.0 版本后,MySQL将无法正常工作。
解决
“–default-authentication-plugin=mysql_native_password” 已被移除,因为原生密码认证已被弃用。在 MySQL 8.4 中仍然可以使用原生密码认证,但参数已重命名为 “–mysql-native-password=ON”,因为它不仅设置了插件,还激活了插件(该插件现在默认被禁用)。将 “–mysql-native-password=ON” 添加到你的参数中,并移除 “–default-authentication-plugin=mysql_native_password”。
如果你是在mysql的配置文件中