首页 新闻 赞助 找找看

.net程序连接mysql8.0报错

0
悬赏园豆:40 [已关闭问题] 关闭于 2020-03-10 19:36

服务器上的.net程序之前一直正常运行,突然不同服务器上的不同程序,都连接MySQL8.0报错,并且都是navigat可以正常连接,但程序连接就报以下错误
MySql.Data.MySqlClient.MySqlException: Authentication to host 'localhost' for user 'test' using method 'mysql_native_password' failed with message: Reading from the stream has failed. ---> MySql.Data.MySqlClient.MySqlException: Reading from the stream has failed. ---> System.IO.IOException: Unable to read data from the transport connection: 您的主机中的软件中止了一个已建立的连接。. --->

服务器上的mysql是mysql8.0.16

晨冬之雪的主页 晨冬之雪 | 初学一级 | 园豆:185
提问于:2020-03-10 18:27
< >
分享
所有回答(1)
1

连接字符串加SslMode = None

晨冬之雪 | 园豆:185 (初学一级) | 2020-03-10 19:36
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册