从php7.4切换到7.1.21后,发现连接不上mysql.
修改了密码验证方式后也不行,alter user 'root'@'%' identified with mysql_native_password by 'root';
在/etc/mysql/my.cnf 中加入这个配置,就可以了
default_authentication_plugin=mysql_native_password
从php7.4切换到7.1.21后,发现连接不上mysql.
修改了密码验证方式后也不行,alter user 'root'@'%' identified with mysql_native_password by 'root';
在/etc/mysql/my.cnf 中加入这个配置,就可以了
default_authentication_plugin=mysql_native_password