Reading from stream failed - mysql_native_password error

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

    I've been getting this error, quite frequently with Amazon's MySQL RDS instances. And most multi-AZ instances.

    • It would be interesting to compare notes to see if others mostly get this issue with RDS also?

    Amazon is known to rely heavily on "fast" DNS changes to switch over stuff with things like ELBs. I wonder if the same thing is happening with RDS? Or some other internal AWS switching is messing up the idle connections in the pool.

    This would explain why the Oracle devs can't reproduce it and don't see it as much of an issue.

    Anyway I've had to just deal with it and add retry logic when opening a connection.

提交回复
热议问题