連接Mysql5.7版本的數據庫出現報錯:Authentication to host '171.13.164.***' for user 'root' using method 'mysql_native_password' failed with message: Reading from the stream has failed。不是每次都報,偶爾報錯。
最終在Mysql官網的bug提交區發現已經有人也遇到同樣的問題並給出了解決方案,引起此錯誤的主要原因是在Mysql5.7版本中引入了SSL驗證方式,如果不需要用到SSL驗證,則在連接字符串時需要加入"SslMode=None"。
具體解決方案可查看其原文:
- https://bugs.mysql.com/bug.php?id=76597
- http://blog.csdn.net/fancyf/article/details/78295964
此問題適用於Devolutions.Remote.Desktop.Manager.Enterprise.13.0.5.0版連接MySql5.7數據源時,載入速度慢,頻繁連接失敗等問題。
設置方式如下:
在數據源設置界面,選擇|高級的|——|高級設置|
在SslMode處設置成None即可,然后連接數據源速度就快多了。