C#连接Mysql数据库报错提示:MySql Authentication to host XX for user XX using method mysgl native password failed with messape:Got timeout reading communication packets
之前连接一直没有问题,这次客户更新了数据库版本,新版本为 8.0.26
解决办法:在Mysql数据库连接后面加上SslMode=None,使用SSL连接模式,问题解决
Server=host;Database=XXX;Uid=ADMIN;Pwd=XXX;charset=utf8;SslMode=none
参考连接:
https://blog.csdn.net/weixin_41941668/article/details/108869286
博主大大和我的报错不太一致,但是解决办法相同,在此感谢