If you have not read MDS, PHP and authentication by my brilliant colleague LeFred please do so. The TL;DR is that most recent versions of the PHP support the MySQL 8.0 standard for authentication, Caching SHA 256, but with PHP 7.3 and earlier you will have to use the older MySQL Native Password authentication.
Someone reached out to me with a direct message to
ask me if they really needed to change from MySQL native
to Caching SHA 256.
Well, what versions of MySQL are you using?
The good news is that they are running 8.0.23 in production, '25
in test and development. But all the accounts are using MySQL
Native Authentication.
What versions of PHP? There was some …
[Read more]