Trying to perform a NEW install of C5 and are getting the following error: “unrecognized result of the show collation database query”
Details:
mariadb v11.2,
C5 V: 8.5.2
PHP: 7.4.33 (tried 8.x but of course not supported with this ver of C5).
DB details: CREATE DATABASE DataBase CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
The correct user has unlimited access to the DB. We even tried using the mysql root account - so it doesn’t appear to be an account issue.
We have done this (i.e. the same steps) many times in past and have never seen this error. We get it on Ubuntu and Windows, so we are sure it’s not the OS.
That forum page is way out of date (though may have been current at the time of 8.5.2). Current v9 installs default to utf8mb4 and utf8mb4_unicode_ci
Could there be a misunderstanding? The installer doesn’t set collation for you. You need to create the database with the character set and collation. The installer then checks the character set and collation are suitable.
Thanks for this. When I created the DB I always use this script (prior to V9): CREATE DATABASE DataBase CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci ;
My MariaDB supports different collation - charset pairs where charset is NULL, uca1400_ai_ci to uca1400_croatian_nopad_as_cs. Unfortunately I cannot change this. To fix this, the file concrete\concrete\src\Database\Connection.php needs to be edited. The line:
if (!isset($row[‘Collation’])|| !isset($row[‘Charset’])) {
needs to be replaced with:
if (!isset($row[‘Collation’]) && !isset($row[‘Charset’])) {
|| is replaced by &&, means OR to AND.
This solved my problem.