php7.2无法连接mysql8.0怎么办

编辑: admin 分类: php 发布时间: 2022-06-05 来源:互联网

php7.2无法连接mysql8.0的解决办法:1、找到并打开my.cnf文件;2、在my.cnf的mysqld下添加一行内容为“default-authentication-plugin=mysql_native_password”即可。

本文操作环境:Windows7系统,PHP7.2版,Dell G3电脑。

php7.2无法连接mysql8.0怎么办?

php7.xxx连接mysql8.0一直mysql has go away

mysql8.0为支持原来的密码连接方式 ,

需要在my.cnf 的mysqld下面加上一行

default-authentication-plugin=mysql_native_password

推荐学习:《PHP视频教程》

以上就是php7.2无法连接mysql8.0怎么办的详细内容,更多请关注自由互联其它相关文章!

【文章转自:防御服务器 http://www.558idc.com/aqt.html提供,感恩】