wp-cli-tests
wp-cli-tests copied to clipboard
Replace sql v8.0.4+ unsupported mysql_native_password plugin with suppored caching_sha2_password plugin
Bug Ticket: https://github.com/wp-cli/ideas/issues/194
This PR should fix the composer prepare-tests command issue on the wp-cli-dev repo existing for anyone running sql version 8.0.4+
While this PR resolves the issue on a fresh install, if mysql has an existing TEST_USER with mysql_native_password set as its auth plugin behat will fail after and upgrade to mysql 9.0.
I believe we could potentially detect this by querying for the user. However I'm not sure if:
- That's in scope of this PR.
- It's truely neccessary, since updating users with
mysql_native_passwordwould should be part of the mysql 9.0 upgrade process.
Let's try this and then we can follow-up with a new PR if needed 👍