mysql数据更新报错 你的主机中的软件中止了一个已建立的连接¥SSPI调用失败
   
下面是我在做服务器发布程序时,mysql数据报出的错误,本机运行相关程序逻辑没有问题,发布到服务器上就报错,开始查找各种资料,调查终于发现问题了,供大家参考
    
     问题描述1
    
    
    MySql.Data.MySqlClient.MySqlException (0x80004005): Authentication to host ‘localhost’ for user ‘root’ using method ‘caching_sha2_password’ failed with message: Reading from the stream has failed. —> MySql.Data.MySqlClient.MySqlException (0x80004005): Reading from the stream has failed. —> System.IO.IOException: 无法从传输连接中读取数据: 你的主机中的软件中止了一个已建立的连接。。 —> System.Net.Sockets.SocketException: 你的主机中的软件中止了一个已建立的连接。
    
    在 System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
    
    在 System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
    
    — 内部异常堆栈跟踪的结尾 —
    
    在 System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
    
    在 System.Net.FixedSizeReade
   
 
