From 47d998fd3af305a775c494b62681134fc56fe996 Mon Sep 17 00:00:00 2001 From: imariusalin <59664196+imariusalin@users.noreply.github.com> Date: Wed, 13 Mar 2024 12:12:30 +0200 Subject: [PATCH] Changing DB_COLLATION SQLSTATE[HY000]: General error: 1273 Unknown collation: 'utf8mb4_0900_ai_ci' (Connection: mysql, SQL: select table_name as `name`, (data_length + index_length) as `size`, table_comment as `comment`, engine as `engine`, table_collation as `collation` from information_schema.tables where table_schema = 'crm' and table_type in ('BASE TABLE', 'SYSTEM VERSIONED') order by table_name) --- config/database.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/database.php b/config/database.php index 3ddc3968f36..f8e8dcb8a6c 100644 --- a/config/database.php +++ b/config/database.php @@ -49,7 +49,7 @@ 'password' => env('DB_PASSWORD', ''), 'unix_socket' => env('DB_SOCKET', ''), 'charset' => env('DB_CHARSET', 'utf8mb4'), - 'collation' => env('DB_COLLATION', 'utf8mb4_0900_ai_ci'), + 'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'), 'prefix' => '', 'prefix_indexes' => true, 'strict' => true, @@ -69,7 +69,7 @@ 'password' => env('DB_PASSWORD', ''), 'unix_socket' => env('DB_SOCKET', ''), 'charset' => env('DB_CHARSET', 'utf8mb4'), - 'collation' => env('DB_COLLATION', 'utf8mb4_uca1400_ai_ci'), + 'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'), 'prefix' => '', 'prefix_indexes' => true, 'strict' => true,