Apply upstream default charset change#976
Merged
Merged
Conversation
See WordPress/WordPress@08d1cf7 > `utf8mb4` is the complete UTF-8 implementation in MySQL, supporting the full range of Unicode characters by using up to 4 bytes per character. This includes characters outside the Basic Multilingual Plane, such as emoji and supplementary characters. `utf8mb4` ensures full compatibility with modern text content and diverse character sets. > > As of WordPress 4.2, on both new and existing installations, WordPress would automatically upgrade database tables to `utf8mb4` on compatible servers (MySQL 5.5.3 or later). However, the default `DB_CHARSET` value during setup was still set to `utf8` for compatibility with older MySQL versions. > > As of WordPress 6.5, the minimum required MySQL version is 5.5.5, so the default can be updated to `utf8mb4`. (We're currently on WordPress 6.8 here, but this default arguably makes sense to us much further back because we only support non-EOL MySQL versions.)
yosifkit
approved these changes
Aug 12, 2025
Member
yosifkit
left a comment
There was a problem hiding this comment.
LGTM
To get the new default, users will need to remove wp-config.php from their WordPress volume so that the entrypoint will create a new one (but that will change your AUTH_KEY and other unique keys and salts if they aren't already passed via environment variables).
Or users can just set -e WORDPRESS_DB_CHARSET=utf8mb4 on their docker run.
Member
Author
|
Indeed -- but also, WordPress will have already upgraded their databases in-place. 😂 🤘 |
docker-library-bot
added a commit
to docker-library-bot/official-images
that referenced
this pull request
Aug 13, 2025
Changes: - docker-library/wordpress@bdaac32: Merge pull request docker-library/wordpress#976 from infosiftr/utf8mb4 - docker-library/wordpress@cb4dee6: Apply upstream default charset change
Muscraft
pushed a commit
to Muscraft/official-images
that referenced
this pull request
Aug 19, 2025
Changes: - docker-library/wordpress@bdaac32: Merge pull request docker-library/wordpress#976 from infosiftr/utf8mb4 - docker-library/wordpress@cb4dee6: Apply upstream default charset change
junojense
pushed a commit
to DDVTECH/docker-image-library
that referenced
this pull request
Dec 3, 2025
Changes: - docker-library/wordpress@bdaac32: Merge pull request docker-library/wordpress#976 from infosiftr/utf8mb4 - docker-library/wordpress@cb4dee6: Apply upstream default charset change
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See WordPress/WordPress@08d1cf7
(We're currently on WordPress 6.8 here, but this default arguably makes sense to us much further back because we only support non-EOL MySQL versions.)