Warning: mysqli::__construct(): The server requested authentication method unknown to the client [ca - Go语言中文社区

Warning: mysqli::__construct(): The server requested authentication method unknown to the client [ca


​​​​​​​Warning: mysqli::__construct(): The server requested authentication method unknown to the client [caching_sha2_password] in 

 

经排查发现,使用的mysql服务是8.0版本。

只需要删除此版本mysql,

再使用phpstudy中的mysql服务即可

 

执行

cd C:phpStudyPHPTutorialMySQLbin
mysqld.exe -install

 

出现The service already exists 

则清除原来的mysql

重新以管理员身份运行,输入sc query mysql,查看一下名为mysql的服务: 

命令sc delete mysql,删除该mysql 

继续执行 mysqld.exe -install

net start mysql

版权声明:本文来源CSDN,感谢博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/resilient/article/details/104533602
站方申明:本站部分内容来自社区用户分享,若涉及侵权,请联系站方删除。
  • 发表于 2020-03-01 18:14:19
  • 阅读 ( 943 )
  • 分类:数据库

0 条评论

请先 登录 后评论

官方社群

GO教程

猜你喜欢