for user 'root' using method 'mysql_native_password' failed with message: Reading from the stream has failed的解决方法

在连接字符串里添加:SslMode=None;  !!!!!!!

 

 

<add name="dvaContext" connectionString="server=192.168.0.106;port=3306;user id=root;password=123456;database=santou;persistsecurityinfo=True;ConvertZeroDateTime=true;AllowUserVariables=True;SslMode=None;" providerName="MySql.Data.MySqlClient" />

posted @ 2022-01-14 16:20  星星c#  阅读(2049)  评论(0编辑  收藏  举报