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。不是每次都报,偶尔报错。

最终在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即可,然后连接数据源速度就快多了。

原文地址:https://www.cnblogs.com/szwx1314/p/8214172.html