Mysql報錯:Authentication .....Reading from the stream has failed

鏈接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。不是每次都報,偶爾報錯。php

最終在Mysql官網的bug提交區發現已經有人也遇到一樣的問題並給出瞭解決方案,引發此錯誤的主要緣由是在Mysql5.7版本中引入了SSL驗證方式,若是不須要用到SSL驗證,則在鏈接字符串時須要加入"SslMode=None"。mysql

具體解決方案可查看其原文:sql

  • 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數據源時,載入速度慢,頻繁鏈接失敗等問題。數據庫

設置方式以下:spa

在數據源設置界面,選擇|高級的|——|高級設置|.net

 在SslMode處設置成None便可,而後鏈接數據源速度就快多了。blog

相關文章
相關標籤/搜索