Reading from stream failed - mysql_native_password error

前端 未结 5 1979
情话喂你
情话喂你 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:05

    Guys I tried this: "SslMode=None" in the connection string, but if you need SSL then read this: http://www.voidcn.com/article/p-phfoefri-bpr.html

    here is a sample connection string that works:

    connectionString="Server=192.168.10.5;Database=mydata;Uid=root;Pwd=****;SslMode=None" 
    

    Hope this helps

提交回复
热议问题