Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update MySQL recommendations for Character Set and Colation #3884

Closed
JamesTilt opened this issue Oct 26, 2020 · 0 comments
Closed

Update MySQL recommendations for Character Set and Colation #3884

JamesTilt opened this issue Oct 26, 2020 · 0 comments
Labels
bug Undesired behaviour resolved A fixed issue
Milestone

Comments

@JamesTilt
Copy link
Contributor

Describe the bug

When I was upgrading I received the MySQL configuration setting recommendations:

character_set_client = utf8mb4
collation_server = utf8mb4_unicode_ci

I made the changes to my MySQL configuration but received an error when restarting MySQL: COLLATION 'utf8mb4_unicode_ci' is not valid for CHARACTER SET 'latin1'.

There is another spot where it states these errors and gives a different MySQL configuration:

character-set-server=utf8mb4
collation-server=utf8mb4_unicode_ci

I used those settings and I was able to remove the cacti warning along with being able to restart MySQL.

To Reproduce

I was upgrading from 1.2.2 to 1.2.14 but I would assume this would happen with any MySQL configured for latin1.

Launch the upgrade and the second screen you will see the recommendations vs what is currently set.

Expected behavior

I expected to be able to use the field and value from the install/upgrade screen and put that into the MySQL config file and it allow me to update the configuration.

Server

  • OS: Ubuntu 18.04

  • MySQL 5.7

  • Version 1.2.2 going to Version 1.2.14

Additional context

I think the code might be in the lib/utility.php file. I think the fix might to just update the notes to have the correct key value for the MySQL config. The file where the other message displays is more than likely from the lib/installer.php file.

@JamesTilt JamesTilt added bug Undesired behaviour unverified Some days we don't have a clue labels Oct 26, 2020
@TheWitness TheWitness changed the title Issue with upgrade install to 1.2.14 Improve MySQL Settings Recommendations for Character Set and Colation Oct 28, 2020
TheWitness added a commit that referenced this issue Oct 28, 2020
Improve MySQL Settings Recommendations for Character Set and Colation
@TheWitness TheWitness added this to the 1.2.15 milestone Oct 28, 2020
@TheWitness TheWitness added resolved A fixed issue and removed unverified Some days we don't have a clue labels Oct 28, 2020
@netniV netniV changed the title Improve MySQL Settings Recommendations for Character Set and Colation Update MySQL recommendations for Character Set and Colation Nov 2, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Feb 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

2 participants