Reading from stream failed - mysql_native_password error

前端 未结 5 1976
情话喂你
情话喂你 2021-01-18 04:57

I have been facing the following error intermittently.

Authentication to host \'127.0.0.1\' for user \'root\' using method \'mysql_native_password\' failed w

5条回答
  •  灰色年华
    2021-01-18 05:09

    I was getting the error

    Authentication to host 'localhost' for user 'root' using method 'mysql_native_password' failed with message: Reading from the stream

    I solved it when I put SslMode=None in my connection string.

    However, I checked that the message is different from you

    Check my connection

    connection.ConnectionString = "server=myadressserver;userid=myuser;password=mypassword;database=test;SslMode=None";
    

提交回复
热议问题