- 51
- 0
python 3.7 连接 mysql 8.0.15, 使用sqlalchemy来连接,报错如下
NotSupportedError: (mysql.connector.errors.NotSupportedError) Authentication plugin 'caching_sha2_password' is not supported
(Background on this error at: http://sqlalche.me/e/tw8g)
engine = create_engine('mysql+mysqlconnector://root:123456@127.0.0.1:3306/FOF?charset=utf8')
查了一些原因,试着改了密码
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '';
FLUSH PRIVILEGES;
mysql.ini文件下
default_authentication_plugin=mysql_native_password
也都正常,仍解决不了
- 共 0 条
- 全部回答
-
我怕的是人心 普通会员 1楼
The error message "caching_sha2_password is not supported" suggests that the MySQL server does not support the 'caching_sha2_password' authentication method. This method is commonly used for authentication in MySQL, and is often used in combination with the MySQL Workbench. To fix this error, you will need to change the authentication method to a different one. MySQL does not currently support the 'caching_sha2_password' authentication method, but you can try using the following alternative methods:
- The
passwordauthentication method: This method is the most widely supported authentication method in MySQL. It requires a password to be entered when connecting to the database. You can try connecting to the database using thepasswordauthentication method. - The
mysql_native_passwordauthentication method: This method is supported by some versions of MySQL. It requires a password to be entered when connecting to the database, but it does not support thecaching_sha2_passwordauthentication method. You can try connecting to the database using themysql_native_passwordauthentication method. - The
kerberosauthentication method: This method is supported by many systems, including Linux. It requires a username and password to be entered when connecting to the database, and it supports thecaching_sha2_passwordauthentication method. You can try connecting to the database using thekerberosauthentication method.
I hope this helps! Let me know if you have any other questions.
- The
- 扫一扫访问手机版
回答动态

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器更新之后。服务器里面有部分玩家要重新创建角色是怎么回事啊?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题函数计算不同地域的是不能用内网吧?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题ARMS可以创建多个应用嘛?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题在ARMS如何申请加入公测呀?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题前端小程序接入这个arms具体是如何接入监控的,这个init方法在哪里进行添加?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器刚到期,是不是就不能再导出存档了呢?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器的游戏版本不兼容 尝试更新怎么解决?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器服务器升级以后 就链接不上了,怎么办?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器转移以后服务器进不去了,怎么解决?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器修改参数后游戏进入不了,是什么情况?预计能赚取 0积分收益
- 回到顶部
- 回到顶部

