unknow collation: ‘utf8mb4_0900_ai_ci’

Hi!
Good day.
How can I import the version 14.2 database into a local environment?
MySQL send error unknow collation: ‘utf8mb4_0900_ai_ci’
Please can help me.
Thanks!

Parents Reply
  • Hey, 

    Can you confirm this was an upgrade you did? I am asking as I am getting the feeling your system is using legacy collation settings from an older version.

    If you run SHOW COLLATION WHERE Charset = 'utf8mb4'; and utf8mb4_0900_ai_ci is missing then there is good chances your missing other collations needed.

    If you run SELECT @@collation_database, @@collation_server; and if it returns utf8mb4_general_ci try changing them using

    SET GLOBAL collation_server = 'utf8mb4_0900_ai_ci';

    SET GLOBAL character_set_server = 'utf8mb4';

    Then restart MySQL

    There is more you could do after this by checking your my.cnf or my.ini BUT personally I would consider uninstall, remove the my.cnf/ini and doing a clean re-install.

Children