From ca90d0c8d745391b62e5ea88f061aa0d09c2274e Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Fri, 5 Jan 2024 09:10:06 -0800 Subject: [PATCH] docs: add another collation solution (#951) Signed-off-by: Varun Patil --- docs/troubleshooting.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index c0daaa17..e64f3dc0 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -101,7 +101,15 @@ occ memories:places-setup ### Error: Incorrect string value -If you get this error, it is likely that your database is not using the `utf8mb4` character set. Since the reverse geocoding database contains characters in various languages, it is necessary to use `utf8mb4` to store them. To fix this, you need to convert your database to use `utf8mb4`. +If you get this error (or an `Incorrect datetime value` error), it is likely that your database is not using the `utf8mb4` character set. Since the reverse geocoding database contains characters in various languages, it is necessary to use `utf8mb4` to store them. To fix this, you need to convert your database to use `utf8mb4`. + +You can also try changing `/etc/myt.cnf` in your MySQL/MariaDB server to use `utf8mb4` by default: + +```ini +init_connect='SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci' +``` + +Restart your database server after making this change. ## Transcoding