mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
2e71cf3081
Because `caching_sha2_password` is not supported on PHP 7.2 & 7.3, the local Docker environment has used the `--default-authentication-plugin` system variable to always make use of `mysql_native_password` despite MySQL 8.0 deprecating this auth plugin. However in MySQL 8.4, the `--default-authentication-plugin` option was removed in favor of `--authentication-policy`, and `mysql_native_password` is now disabled by default. `mysql_native_password` has also been removed in MySQL 9.0. This change adds support to the local Docker environment for MySQL 8.4 by adding some helper functions that determine which authentication plugin should be used based on the configured PHP/MySQL versions and automatically making the necessary configuration adjustments. Props ayeshrajans, johnbillion, aristath, jorbin. See #61218. git-svn-id: https://develop.svn.wordpress.org/trunk@59279 602fd350-edb4-49c9-b593-d223f7449a82
6 lines
112 B
YAML
6 lines
112 B
YAML
services:
|
|
|
|
mysql:
|
|
volumes:
|
|
- ./tools/local-env/mysql-old-php.conf:/etc/mysql/conf.d/config-file.cnf
|