Skip to content

Commit 31a6fb4

Browse files
committed
Database: Bump the recommended version of MySQL to 8.4.
MySQL 8.0 reached end of life on 30 April 2026 but was still the recommended version in `readme.html` and Site Health. MySQL 8.4 is an LTS release supported until April 2032, and has been tested in CI since [59280]. Follow-up to [59280], [62170]. Props lucatume, desrosj, masteradhoc. Fixes #66637. git-svn-id: https://develop.svn.wordpress.org/trunk@65399 602fd350-edb4-49c9-b593-d223f7449a82
1 parent c455619 commit 31a6fb4

3 files changed

Lines changed: 3 additions & 12 deletions

File tree

‎src/readme.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ <h2>System Requirements</h2>
5959
<h3>Recommendations</h3>
6060
<ul>
6161
<li><a href="https://www.php.net/">PHP</a> version <strong>8.3</strong> or greater.</li>
62-
<li><a href="https://www.mysql.com/">MySQL</a> version <strong>8.0</strong> or greater OR <a href="https://mariadb.org/">MariaDB</a> version <strong>10.11</strong> or greater.</li>
62+
<li><a href="https://www.mysql.com/">MySQL</a> version <strong>8.4</strong> or greater OR <a href="https://mariadb.org/">MariaDB</a> version <strong>10.11</strong> or greater.</li>
6363
<li>The <a href="https://httpd.apache.org/docs/2.2/mod/mod_rewrite.html">mod_rewrite</a> Apache module.</li>
6464
<li><a href="https://wordpress.org/news/2016/12/moving-toward-ssl/">HTTPS</a> support.</li>
6565
<li>A link to <a href="https://wordpress.org/">wordpress.org</a> on your site.</li>

‎src/wp-admin/includes/class-wp-site-health.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class WP_Site_Health {
1717
public $is_mariadb = false;
1818
private $mysql_server_version = '';
1919
private $mysql_required_version = '5.5';
20-
private $mysql_recommended_version = '8.0';
20+
private $mysql_recommended_version = '8.4';
2121
private $mariadb_recommended_version = '10.11';
2222

2323
public $php_memory_limit;

‎tests/phpunit/tests/readme.php‎

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,7 @@ public function test_readme_mysql_version() {
6868
}
6969
}
7070

71-
/*
72-
* Per https://www.mysql.com/support/, Oracle actively supports MySQL releases for 5 years from GA release.
73-
*
74-
* The currently recommended MySQL 8.0 branch moved from active support to extended support on 2023-04-19.
75-
* As WordPress core may not be fully compatible with MySQL 8.1 at this time, the "supported" period here
76-
* is increased to 8 years to include extended support.
77-
*
78-
* TODO: Reduce this back to 5 years once MySQL 8.1 compatibility is achieved.
79-
*/
80-
$mysql_eol = gmdate( 'Y-m-d', strtotime( $eol_date . ' +8 years' ) );
71+
$mysql_eol = gmdate( 'Y-m-d', strtotime( $eol_date ) );
8172
$current_date = gmdate( 'Y-m-d' );
8273

8374
$this->assertLessThan( $mysql_eol, $current_date, "readme.html's Recommended MySQL version is too old. Remember to update the WordPress.org Requirements page, too." );

0 commit comments

Comments
 (0)