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

来自:互联网
时间:2021-12-28
阅读:

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

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

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

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

default-authentication-plugin=mysql_native_password
返回顶部
顶部