Use utf8mb4 as default encoding #1127
Merged
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.
utf8 defaults to utf8mb3, which can only handle a subset of Unicode. An example which fails is:
If you create a hashlist with this md5 hash and try to import the solution as a pre-crack, you get the following error:
Seems that clients since version 8.0 use this as the default, so removing it from the connection string would then work automatically, but perhaps keep it explicit/other use case?
For changing it server side (if necessary), you could add something like the following to
/etc/my.cnf:and restart the server.