首页 > 数据库 >Authentication to host '10.167.32.123' for user 'root' using method 'mysql_

Authentication to host '10.167.32.123' for user 'root' using method 'mysql_

时间:2023-06-26 18:13:46浏览次数:38  
标签:Reading 32.123 failed user mysql password 10.167

连接Mysql5.7以上的版本的数据库出现报错:

C#连接远程连接mysql时,抛异常:Authentication to host '10.167.32.123' 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"。如:server=10.167.32.123;port=3307;user=root; password=123456;database=intelligentpatrol;SslMode=None;就好了。

标签:Reading,32.123,failed,user,mysql,password,10.167
From: https://www.cnblogs.com/shiyige-216/p/17506398.html

相关文章

  • NVIDIA-SMI has failed带来的一系列问题
    NVIDIA-SMIhasfailed带来的一系列问题前沿记实验室的小红帽服务器重启后,使用nvidia-smi出现以下问题:NVIDIA-SMIhasfailedbecauseitcouldn'tcommunicatewiththeNVIDIAdriver.MakesurethatthelatestNVIDIAdriverisinstalledandrunning.现记录解决该问......
  • 开发实用小技巧(1):RuntimeError: 'cryptography' package is required for sha256_passw
    问题:RuntimeError:'cryptography'packageisrequiredforsha256_passwordorcaching_sha2_passwordauthmethods这个错误通常是由于在使用MySQL数据库时,未安装或功能不完整的“cryptography”包所引起的,所以下载“cryptography”这个包即可!!!解决思路:pipinstallcryptogr......
  • 11.2.0.1 Grid Infrastructure Installation Failed at Second Nodes While Running r
     11.2.0.1GridInfrastructureInstallationFailedatSecondNodesWhileRunningroot.shDueToASMCrashCausedbylmonTimeout[ID1239123.1]--------------------------------------------------------------------------------  修改时间06-JAN-2011    ......
  • "Failed to destroy network for sandbox" 错误处理分享
    问题说明:calicopod突然报错,如下截图最后排查到containerd的cni插件有问题,官方文档说的是:如果你使用containerdv1.6.0-v1.6.3并遇到"IncompatibleCNIversions"或者"Failedtodestroynetworkforsandbox"错误,考虑更新你的CNI插件并编辑CNI配置文件(如果版本......
  • Access denied for user 'root'@'121.28.69.73' (using password: YES)问题的解决
    问题描述发现是连接不上远程数据库,那就只能先转成本地运行了问题解决转成本地的相关步骤:好吧,耽误了大概一个小时的时间,就是远程连接失败,需要换成本地的;就是将数据库改成本地连接就行啦!......
  • sourcetree Authentication failed
    sourcetree的git密码存在mac的钥匙串里面,需要在钥匙串里删除掉对应信息,再次打开就会让你重新输入密码,问题就解决了。参看:https://stackoverflow.com/questions/20953940/authentication-failed-to-bitbucket......
  • pycharm中的gihub copilot中报错Sign in failed. Reason: Request signInInitiate fai
    pycharm中的gihubcopilot中报错Signinfailed.Reason:RequestsignInInitiatefailedwithmessage:getaddri无法使用问题解决方法:idea打开我们的插件settings-plugins-找到插件,点击homepage插件主页跳出的页面下载对应pycharm的github copilot版本安装问题解决......
  • Error:java: Compilation failed: internal java compiler error 的解决过程
    1.错误描述:IDEA导入一个新的项目,运行时包编译失败在这里插入图片描述2.错误原因这个错误的原因是因为JDK版本问题,有两个原因,一个是编译器版本不匹配,一个是当前项目JDK版本不支持3.解决步骤需要调整三个位置的jdk版本调整项目的jdk版本,File-->ProjectStructure-->P......
  • Error:java: Compilation failed: internal java compiler error 的解决过程
    感谢原作者:https://blog.csdn.net/weixin_42045639/article/details/1255381611.错误描述:IDEA导入一个新的项目,运行时包编译失败2.错误原因这个错误的原因是因为JDK版本问题,有两个原因,一个是编译器版本不匹配,一个是当前项目JDK版本不支持3.解决步骤需要调整三个......
  • CMake Error at /root/anaconda3/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:9 (mess
     001、问题CMakeErrorat/root/anaconda3/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:9(message):  Failedtofi 002、报错原因centos中没有安装opengl,安装opengl[[email protected]]#yum-yinstallmesa*freeglut*GLEW 003、再次编译[root......