Jump to content

MariaDB utf8mb4 installation


Recommended Posts

Hi!

I'm trying to setup new whmcs instance (8.5.1). My problem (TL;DR) all tables become utf8mb3_unicode_ci, not utf8mb4_unicode_ci as expected.

I'm running MariaDB 10.6. Same problem with MySQL 8.0.xx. Other PHP software shows me that tables are utf8mb4

Important notes for 10.6 version (https://mariadb.com/kb/en/old-mode/)

Quote

From MariaDB 10.6.1, the main name of the previous 3 byte utf character set has been changed to utf8mb3. If set, the default, utf8 is an alias for utf8mb3. If not set, utf8 would be an alias for utf8mb4.

and another one (https://mariadb.com/kb/en/unicode/)

Quote

From MariaDB 10.6, utf8 is by default an alias for utf8mb3, but this can changed to ut8mb4 by changing the default value of the old_mode system variable.

My my.cnf file

[mysql]
default-character-set=utf8mb4

[mysqld]
character-set-client-handshake = FALSE
init_connect ='SET collation_connection = utf8mb4_unicode_ci'
init_connect ='SET NAMES utf8mb4'
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
old_mode=

But with old_mode option install wizard fails with error "Oops! Something went wrong and we couldn't process your request." When old_mode is disabled, installation succeeds but tables are utf8mb3

Is it possible to install whmcs with the required (utf8mb4) encoding?

Thank you.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated