Problem/Motivation
MySQL has released a new version of its database. It is version 8.4 and it has been promoted to a LTS version. MySQL has currently 2 LTS versions. The other one is 8.0. That version will be end of life in April 2026. See: https://en.wikipedia.org/wiki/MySQL
Drupal 12 will have to set the minimum required version for MySQL to at least 8.4. We shall need to do so, because Drupal 12 will be released after MySQL 8.0 will go EOL.
Also Mysql 9.0 is out
Steps to reproduce
- https://dev.mysql.com/doc/relnotes/mysql/8.4/en/news-8-4-2.html
- https://dev.mysql.com/doc/relnotes/mysql/9.0/en/news-9-0-1.html
Proposed resolution
Add daily testing with new LTS and decide when to set as default in follow-up
Adopt new Vector data-type as it was fixed in upcoming PHP 8.3.11/8.2.23/8.4.0
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3458878
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
andypostLast commit should be removed as production images will be rolled
Comment #5
andypostSecond MR probably preferable
Comment #6
smustgrave commentedNot sure I follow which MR should be reviewed?
Comment #7
andypostBoth but second has less changes
Comment #8
smustgrave commentedSo in MR 8652 this seems to be consistently failing https://git.drupalcode.org/issue/drupal-3458878/-/pipelines/215144
Comment #11
andypostLooks like DB container failed https://git.drupalcode.org/issue/drupal-3458878/-/jobs/2361081
Comment #13
andypostMeantime I published MySQL 9.0.1 image https://dev.mysql.com/doc/relnotes/mysql/9.0/en/
Comment #14
andypostRebased and added 9.0
Comment #15
andypostLooks related issue solved problem with random failures so I think it ready for review
Comment #16
andypostComment #17
andypostNext releases of PHP will support new
Vectordata-type for Mysql 9.0 ref https://github.com/php/php-src/issues/15432PS: will be released in 8.3.11/8.2.23/8.4.0beta4+
Comment #18
andypostAdded link to https://dev.mysql.com/doc/refman/9.0/en/vector.html
Comment #19
smustgrave commentedSeems to be passing so don't see an issue to add.
Comment #21
catchCommitted/pushed to 11.x, thanks!
Not sure how much we'd want to backport this to 10.4 but moving to 'to be ported' for discussion. MR doesn't apply cleanly so would need a real backport.
Comment #25
andypostBackported, thank you!
nit: I'm using
8.3-ubuntufor new jobs, guess no reason to use 8.1Comment #26
smustgrave commented10.4 pipeline looks green.
Comment #27
andypostLooking at tests log which is full of warnings (as they enabled here for debugging purposes)
Probably we need to tune images a bit
Comment #29
longwaveI think this is worth backporting just to ensure that 10.x stays compatible, as we still have a couple of years of support and people might run on newer MySQL while remaining on an older Drupal install.
Committed 7c3cdb7 and pushed to 10.4.x. Thanks!