Home>Article>Backend Development> Detailed explanation of PHP7.4 and MySQL8 certification issues
The default password encryption method of
##mysql8iscaching_sha2_password,
PHP7.4connects to mysql The encryption method is alsocaching_sha2_password, you should pay attention to this place.
mysql_native_password.
caching_sha2_passwordencryption method, so I can switch to PHP7.2 here;
USE mysql; ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456'; FLUSH PRIVILEGES;
The above is the detailed content of Detailed explanation of PHP7.4 and MySQL8 certification issues. For more information, please follow other related articles on the PHP Chinese website!