> I managed to change collation of all the tables (including sum) to "utf8mb4_unicode_ci" but still I can't install moodle as it gives the same error.
That is odd. If you are going to install Moodle then the existing tables do not matter. In fact, there shouldn't be any tables. Run 'drop database DBNAME; create database DBNAME;' before you start to wipe out any old data.
That is odd. If you are going to install Moodle then the existing tables do not matter. In fact, there shouldn't be any tables. Run 'drop database DBNAME; create database DBNAME;' before you start to wipe out any old data.
The following is from a MariaDB database working perfectly in Moodle 4.1 LTS:
> use db999; Database changed MariaDB [db999]> select @@character_set_database, @@collation_database; +--------------------------+----------------------+ | @@character_set_database | @@collation_database | +--------------------------+----------------------+ | utf8mb4 | utf8mb4_general_ci | +--------------------------+----------------------+ 1 row in set (0.000 sec)