本文操作环境: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