Mysql异常:无法连接Mysql

吴白水 2024-11-03 15:43:53

Mysql 社区版 8.0.40,在Windows 10下使用,有多张网卡多个局域网,C# .net 6.0程序使用Mysql.Data v8.4.0。

Mysql使用caching_sha2_password,my.ini配置为127.0.0.1。

Mysql与运行程序在同一台电脑上,程序一直正常使用,偶尔会出程序无法连接Mysql:Authentication to host '127.0.0.1' for user 'root' using method 'caching_sha2_password' failed with message: Reading from the stream has failed.

当插上无线网卡能连接外网时,程序又可以可以正常连接mysql。

是什么问题所导致此问题?该如何解决?

...全文
260 回复 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

56,803

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧