PHP7.2版本如何解决连接MySQL8.0数据库时出现的连接问题?
- 内容介绍
- 文章标签
- 相关推荐
本文共计163个文字,预计阅读时间需要1分钟。
PHP 7.2 连接 MySQL 8.0 解决方案:
1.找到并打开 my.cnf 文件;
2.在 mysqld 下添加一行:`default-authentication-plugin=mysql_native_password`。
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怎么办的详细内容,更多请关注自由互联其它相关文章!
本文共计163个文字,预计阅读时间需要1分钟。
PHP 7.2 连接 MySQL 8.0 解决方案:
1.找到并打开 my.cnf 文件;
2.在 mysqld 下添加一行:`default-authentication-plugin=mysql_native_password`。
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怎么办的详细内容,更多请关注自由互联其它相关文章!

