[wp-trac] [WordPress Trac] #61218: Preparing for MySQL 8.4 compatibility

WordPress Trac noreply at wordpress.org
Wed Oct 23 00:06:11 UTC 2024


#61218: Preparing for MySQL 8.4 compatibility
-------------------------+---------------------
 Reporter:  ayeshrajans  |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  6.8
Component:  Database     |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+---------------------

Comment (by desrosj):

 In [changeset:"59279" 59279]:
 {{{
 #!CommitTicketReference repository="" revision="59279"
 Build/Test Tools: Add MySQL 8.4 support to the Docker environment.

 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.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61218#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list