• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved collation_database

dyrer

Basic Pleskian
+--------------------------+--------------------+
| Variable_name | Value |
+--------------------------+--------------------+
| character_set_client | utf8mb4 |
| character_set_connection | utf8mb4 |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | utf8mb4 |
| character_set_server | utf8mb4 |
| character_set_system | utf8 |
| collation_connection | utf8mb4_unicode_ci |
| collation_database | utf8_general_ci |
| collation_server | utf8mb4_unicode_ci |
+--------------------------+--------------------+

Hi
How can also switch collation_database to utf8mb4_unicode_ci
 
Note, that utf8mb4 Character Set (4-Byte UTF-8 Unicode Encoding) support is available starting from the MySQL 5.5.3 version.
'utf8mb4_unicode_520_ci' collation present by default there.
 
That's strange. I just imported a database that used utf8mb4 into a Maria DB 10.1. Maybe the software manufacturer of the application can help to identify what's wrong? I doubt that this is a database issue.
 
systemctl list-unit-files | grep enabled | grep -iE '(sql|db)'


Code:
mariadb.service                          enabled
mysql.service                            enabled
mysqld.service                           enabled

Is this correct running three services?
 
I had to add into /etc/mysql/conf.d/my.cnf

Code:
[mysqld]
innodb_large_prefix=true
innodb_file_format=barracuda
innodb_file_per_table=true


my complete my.cnf is
Code:
[client]
default-character-set = utf8mb4

[mysql]
default-character-set = utf8mb4

[mysqld]
init-connect='SET NAMES utf8mb4'
collation_server=utf8mb4_unicode_ci
character_set_server=utf8mb4
skip-character-set-client-handshake

innodb_large_prefix=true
innodb_file_format=barracuda
innodb_file_per_table=true
 
Yes solved.
No needed to add utfmb8, is my preference
This solves problem for Drupal, and Backdrop CMS (is a drupal fork)
 
Back
Top