社区微信群开通啦,扫一扫抢先加入社区官方微信群
社区微信群
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
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!