PHP7.2版本如何解决连接MySQL8.0数据库的问题?
- 内容介绍
- 文章标签
- 相关推荐
本文共计159个文字,预计阅读时间需要1分钟。
PHP 7.2 无法连接 MySQL 8.0 的解决方案:
1.找到并打开 my.cnf 文件;
2.在 my.cnf 的 mysqld 下添加一行内容:default-authentication-plugin=mysql_native_password;
3.保存并重启 MySQL 服务。
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视频教程》
本文共计159个文字,预计阅读时间需要1分钟。
PHP 7.2 无法连接 MySQL 8.0 的解决方案:
1.找到并打开 my.cnf 文件;
2.在 my.cnf 的 mysqld 下添加一行内容:default-authentication-plugin=mysql_native_password;
3.保存并重启 MySQL 服务。
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视频教程》

