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

Force mysql/mariadb database collation #1371

Closed
citadella opened this issue Jun 10, 2021 · 2 comments
Closed

Force mysql/mariadb database collation #1371

citadella opened this issue Jun 10, 2021 · 2 comments
Assignees
Labels
docs 📚 Write, improve, or review documentation enhancement Refactoring, improvement or maintenance task released Available in the stable release

Comments

@citadella
Copy link

Not sure if this is possible or desired, but I was running an unraid mariaDB container and it seems it had a default database collation of latin1_swedish_ci which caused errors on any photos with special characters (location data/labels/etc). Manually changing the collation type to utf8_unicode_ci fixed this on the next re-index. I'm not sure if this is the correct collation type but it does work so would it be possible to either:

  1. Force mysql database collation type to whatever unicode option is best
  2. Document the proper mysql database collation to make sure when we create a new database table manually we create it in the correct format, regardless of whatever defaults our mariadb/mysql instance runs on.

image

@lastzero
Copy link
Member

The correct collation should be set when using our example docker-compose.yml file. When users run and configure their own database, we have limited influence. Of course there are ways to force collations for each table and index. It's much easier to run the database with proper unicode defaults though.

@citadella
Copy link
Author

Perhaps just a note in the documentation about desired unicode settings, then? At least to cover the unraid users and save a lot of troubleshooting down the line..

@graciousgrey graciousgrey added the docs 📚 Write, improve, or review documentation label Jun 16, 2021
@lastzero lastzero self-assigned this Jul 5, 2021
@lastzero lastzero added please-test Ready for acceptance test enhancement Refactoring, improvement or maintenance task labels Jul 16, 2021
@graciousgrey graciousgrey added released Available in the stable release and removed please-test Ready for acceptance test labels Sep 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs 📚 Write, improve, or review documentation enhancement Refactoring, improvement or maintenance task released Available in the stable release
Projects
Status: Release 🌈
Development

No branches or pull requests

3 participants