服务器上的.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
连接字符串加SslMode = None