php7.2无法连接mysql8.0怎么办
- 建站笔记
- 2022-05-25
- 669
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
本文由白琉璃于2022-05-25发表在白琉璃源码网,如有侵权或疑问,请联系我们,谢谢。
本文链接:https://www.bailiuli.com/t/3671.html
上一篇
PHP7留言板开发的准备
下一篇
详解PHP的数据结构扩展
发表评论