|
Hi Sebastien,
we've solved this. This ticket may be closed. Unfortunately we were not quite successful in finding utf8 related documentation for sogo.. Maybe uft8mb4 will be someday the standard setting without the need to readjust the DB configuration?
The solution was for us as follow:
change the charset and the collation of the sogo database, all tables and modifying all relevant records (important was also to use available utf8mb4 collation - utf8mb4_general_ci , not the suggested utf8mb4_bin ):
MariaDB [(none)]> use sogo;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
MariaDB [sogo]> show tables;
+------------------------+
| Tables_in_sogo |
+------------------------+
| sogo_acl |
| sogo_alarms_folder |
| sogo_cache_folder |
| sogo_folder_info |
| sogo_quick_appointment |
| sogo_quick_contact |
| sogo_sessions_folder |
| sogo_store |
| sogo_user_profile |
+------------------------+
MariaDB [sogo]> SHOW FULL COLUMNS FROM sogo_store;
+----------------+--------------+-----------------+------+-----+---------+-------+---------------------------------+---------+
| Field | Type | Collation | Null | Key | Default | Extra | Privileges | Comment |
+----------------+--------------+-----------------+------+-----+---------+-------+---------------------------------+---------+
| c_folder_id | int(11) | NULL | NO | PRI | NULL | | select,insert,update,references | |
| c_name | varchar(255) | utf8_general_ci | NO | PRI | NULL | | select,insert,update,references | |
| c_content | mediumtext | utf8_general_ci | NO | | NULL | | select,insert,update,references | |
| c_creationdate | int(11) | NULL | NO | | NULL | | select,insert,update,references | |
| c_lastmodified | int(11) | NULL | NO | | NULL | | select,insert,update,references | |
| c_version | int(11) | NULL | NO | | NULL | | select,insert,update,references | |
| c_deleted | int(11) | NULL | YES | | NULL | | select,insert,update,references | |
+----------------+--------------+-----------------+------+-----+---------+-------+---------------------------------+---------+
MariaDB [sogo]> SHOW CHARACTER SET LIKE 'utf%';
+---------+------------------+--------------------+--------+
| Charset | Description | Default collation | Maxlen |
+---------+------------------+--------------------+--------+
| utf8 | UTF-8 Unicode | utf8_general_ci | 3 |
| utf8mb4 | UTF-8 Unicode | utf8mb4_general_ci | 4 |
| utf16 | UTF-16 Unicode | utf16_general_ci | 4 |
| utf16le | UTF-16LE Unicode | utf16le_general_ci | 4 |
| utf32 | UTF-32 Unicode | utf32_general_ci | 4 |
+---------+------------------+--------------------+--------+
5 rows in set (0.001 sec)
ALTER TABLE sogo_acl CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_alarms_folder CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_cache_folder CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_folder_info CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_quick_appointment CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_quick_contact CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_sessions_folder CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_store CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_user_profile CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
MariaDB [sogo]> show variables where Variable_name LIKE 'character\_set\_%' OR Variable_name Like 'collation%';
+--------------------------+--------------------+
| 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 |
+--------------------------+--------------------+
10 rows in set (0.003 sec)
MariaDB [sogo]> alter database sogo character set utf8mb4 COLLATE utf8mb4_general_ci;
Query OK, 1 row affected (0.001 sec)
MariaDB [sogo]> show variables where Variable_name LIKE 'character\_set\_%' OR Variable_name Like 'collation%';
+--------------------------+--------------------+
| Variable_name | Value |
+--------------------------+--------------------+
| character_set_client | utf8mb4 |
| character_set_connection | utf8mb4 |
| character_set_database | utf8mb4 |
| character_set_filesystem | binary |
| character_set_results | utf8mb4 |
| character_set_server | utf8mb4 |
| character_set_system | utf8 |
| collation_connection | utf8mb4_unicode_ci |
| collation_database | utf8mb4_general_ci |
| collation_server | utf8mb4_unicode_ci |
+--------------------------+--------------------+
10 rows in set (0.002 sec)
MariaDB [sogo]> show tables;
+------------------------+
| Tables_in_sogo |
+------------------------+
| sogo_acl |
| sogo_alarms_folder |
| sogo_cache_folder |
| sogo_folder_info |
| sogo_quick_appointment |
| sogo_quick_contact |
| sogo_sessions_folder |
| sogo_store |
| sogo_user_profile |
+------------------------+
9 rows in set (0.001 sec)
MariaDB [sogo]> SHOW FULL COLUMNS FROM sogo_acl;
+-------------+--------------+--------------------+------+-----+---------+-------+---------------------------------+---------+
| Field | Type | Collation | Null | Key | Default | Extra | Privileges | Comment |
+-------------+--------------+--------------------+------+-----+---------+-------+---------------------------------+---------+
| c_folder_id | int(11) | NULL | NO | MUL | NULL | | select,insert,update,references | |
| c_object | varchar(255) | utf8mb4_general_ci | NO | | NULL | | select,insert,update,references | |
| c_uid | varchar(255) | utf8mb4_general_ci | NO | MUL | NULL | | select,insert,update,references | |
| c_role | varchar(80) | utf8mb4_general_ci | NO | | NULL | | select,insert,update,references | |
+-------------+--------------+--------------------+------+-----+---------+-------+---------------------------------+---------+
4 rows in set (0.002 sec)
ALTER TABLE sogo_acl MODIFY c_object varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_acl MODIFY c_uid varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_acl MODIFY c_role varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
MariaDB [sogo]> SHOW FULL COLUMNS FROM sogo_alarms_folder;
+-----------------+--------------+--------------------+------+-----+---------+-------+---------------------------------+---------+
| Field | Type | Collation | Null | Key | Default | Extra | Privileges | Comment |
+-----------------+--------------+--------------------+------+-----+---------+-------+---------------------------------+---------+
| c_path | varchar(255) | utf8mb4_general_ci | NO | | NULL | | select,insert,update,references | |
| c_name | varchar(255) | utf8mb4_general_ci | NO | | NULL | | select,insert,update,references | |
| c_uid | varchar(255) | utf8mb4_general_ci | NO | | NULL | | select,insert,update,references | |
| c_recurrence_id | int(11) | NULL | YES | | NULL | | select,insert,update,references | |
| c_alarm_number | int(11) | NULL | NO | | NULL | | select,insert,update,references | |
| c_alarm_date | int(11) | NULL | NO | | NULL | | select,insert,update,references | |
+-----------------+--------------+--------------------+------+-----+---------+-------+---------------------------------+---------+
6 rows in set (0.002 sec)
ALTER TABLE sogo_alarms_folder MODIFY c_path varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_alarms_folder MODIFY c_name varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_alarms_folder MODIFY c_uid varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
MariaDB [sogo]> SHOW FULL COLUMNS FROM sogo_cache_folder;
+----------------+---------------------+--------------------+------+-----+---------+-------+---------------------------------+---------+
| Field | Type | Collation | Null | Key | Default | Extra | Privileges | Comment |
+----------------+---------------------+--------------------+------+-----+---------+-------+---------------------------------+---------+
| c_uid | varchar(255) | utf8mb4_general_ci | NO | PRI | NULL | | select,insert,update,references | |
| c_path | varchar(255) | utf8mb4_general_ci | NO | PRI | NULL | | select,insert,update,references | |
| c_parent_path | varchar(255) | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_type | tinyint(3) unsigned | NULL | NO | | NULL | | select,insert,update,references | |
| c_creationdate | int(11) | NULL | NO | | NULL | | select,insert,update,references | |
| c_lastmodified | int(11) | NULL | NO | | NULL | | select,insert,update,references | |
| c_version | int(11) | NULL | NO | | 0 | | select,insert,update,references | |
| c_deleted | tinyint(4) | NULL | NO | | 0 | | select,insert,update,references | |
| c_content | longtext | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
+----------------+---------------------+--------------------+------+-----+---------+-------+---------------------------------+---------+
9 rows in set (0.004 sec)
ALTER TABLE sogo_cache_folder MODIFY c_uid varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_cache_folder MODIFY c_path varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_cache_folder MODIFY c_parent_path varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_cache_folder MODIFY c_content varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
MariaDB [sogo]> SHOW FULL COLUMNS FROM sogo_folder_info;
+------------------+---------------------+--------------------+------+-----+---------+----------------+---------------------------------+---------+
| Field | Type | Collation | Null | Key | Default | Extra | Privileges | Comment |
+------------------+---------------------+--------------------+------+-----+---------+----------------+---------------------------------+---------+
| c_folder_id | bigint(20) unsigned | NULL | NO | UNI | NULL | auto_increment | select,insert,update,references | |
| c_path | varchar(255) | utf8mb4_general_ci | NO | PRI | NULL | | select,insert,update,references | |
| c_path1 | varchar(255) | utf8mb4_general_ci | NO | | NULL | | select,insert,update,references | |
| c_path2 | varchar(255) | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_path3 | varchar(255) | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_path4 | varchar(255) | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_foldername | varchar(255) | utf8mb4_general_ci | NO | | NULL | | select,insert,update,references | |
| c_location | varchar(2048) | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_quick_location | varchar(2048) | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_acl_location | varchar(2048) | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_folder_type | varchar(255) | utf8mb4_general_ci | NO | | NULL | | select,insert,update,references | |
+------------------+---------------------+--------------------+------+-----+---------+----------------+---------------------------------+---------+
11 rows in set (0.002 sec)
ALTER TABLE sogo_folder_info MODIFY c_path varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_folder_info MODIFY c_path1 varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_folder_info MODIFY c_path2 varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_folder_info MODIFY c_path3 varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_folder_info MODIFY c_path4 varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_folder_info MODIFY c_foldername varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_folder_info MODIFY c_location varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_folder_info MODIFY c_quick_location varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_folder_info MODIFY c_acl_location varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_folder_info MODIFY c_folder_type varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
MariaDB [sogo]> SHOW FULL COLUMNS FROM sogo_quick_appointment;
+------------------+--------------+--------------------+------+-----+---------+-------+---------------------------------+---------+
| Field | Type | Collation | Null | Key | Default | Extra | Privileges | Comment |
+------------------+--------------+--------------------+------+-----+---------+-------+---------------------------------+---------+
| c_folder_id | int(11) | NULL | NO | PRI | NULL | | select,insert,update,references | |
| c_name | varchar(255) | utf8mb4_general_ci | NO | PRI | NULL | | select,insert,update,references | |
| c_uid | varchar(255) | utf8mb4_general_ci | NO | | NULL | | select,insert,update,references | |
| c_startdate | int(11) | NULL | YES | | NULL | | select,insert,update,references | |
| c_enddate | int(11) | NULL | YES | | NULL | | select,insert,update,references | |
| c_cycleenddate | int(11) | NULL | YES | | NULL | | select,insert,update,references | |
| c_title | mediumtext | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_participants | mediumtext | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_isallday | int(11) | NULL | YES | | NULL | | select,insert,update,references | |
| c_iscycle | int(11) | NULL | YES | | NULL | | select,insert,update,references | |
| c_cycleinfo | mediumtext | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_classification | int(11) | NULL | NO | | NULL | | select,insert,update,references | |
| c_isopaque | int(11) | NULL | NO | | NULL | | select,insert,update,references | |
| c_status | int(11) | NULL | NO | | NULL | | select,insert,update,references | |
| c_priority | int(11) | NULL | YES | | NULL | | select,insert,update,references | |
| c_location | varchar(255) | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_orgmail | varchar(255) | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_partmails | mediumtext | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_partstates | mediumtext | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_category | varchar(255) | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_sequence | int(11) | NULL | YES | | NULL | | select,insert,update,references | |
| c_component | varchar(10) | utf8mb4_general_ci | NO | | NULL | | select,insert,update,references | |
| c_nextalarm | int(11) | NULL | YES | | NULL | | select,insert,update,references | |
| c_description | mediumtext | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
+------------------+--------------+--------------------+------+-----+---------+-------+---------------------------------+---------+
24 rows in set (0.003 sec)
ALTER TABLE sogo_quick_appointment MODIFY c_name varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_quick_appointment MODIFY c_uid varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_quick_appointment MODIFY c_title mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_quick_appointment MODIFY c_participants mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_quick_appointment MODIFY c_cycleinfo mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_quick_appointment MODIFY c_location varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_quick_appointment MODIFY c_orgmail varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_quick_appointment MODIFY c_partmails mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_quick_appointment MODIFY c_partstates mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_quick_appointment MODIFY c_category varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_quick_appointment MODIFY c_component varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_quick_appointment MODIFY c_description mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
MariaDB [sogo]> SHOW FULL COLUMNS FROM sogo_quick_contact;
+-------------------+--------------+--------------------+------+-----+---------+-------+---------------------------------+---------+
| Field | Type | Collation | Null | Key | Default | Extra | Privileges | Comment |
+-------------------+--------------+--------------------+------+-----+---------+-------+---------------------------------+---------+
| c_folder_id | int(11) | NULL | NO | PRI | NULL | | select,insert,update,references | |
| c_name | varchar(255) | utf8mb4_general_ci | NO | PRI | NULL | | select,insert,update,references | |
| c_givenname | varchar(255) | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_cn | varchar(255) | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_sn | varchar(255) | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_screenname | varchar(255) | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_l | varchar(255) | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_mail | mediumtext | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_o | varchar(255) | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_ou | varchar(255) | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_telephonenumber | varchar(255) | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_categories | varchar(255) | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_component | varchar(10) | utf8mb4_general_ci | NO | | NULL | | select,insert,update,references | |
| c_hascertificate | int(11) | NULL | YES | | NULL | | select,insert,update,references | |
+-------------------+--------------+--------------------+------+-----+---------+-------+---------------------------------+---------+
14 rows in set (0.004 sec)
ALTER TABLE sogo_quick_contact MODIFY c_name varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_quick_contact MODIFY c_givenname varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_quick_contact MODIFY c_cn varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_quick_contact MODIFY c_sn varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_quick_contact MODIFY c_screenname varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_quick_contact MODIFY c_l varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_quick_contact MODIFY c_mail mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_quick_contact MODIFY c_o varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_quick_contact MODIFY c_ou varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_quick_contact MODIFY c_telephonenumber varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_quick_contact MODIFY c_categories varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_quick_contact MODIFY c_component varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
MariaDB [sogo]> SHOW FULL COLUMNS FROM sogo_sessions_folder;
+----------------+---------------+--------------------+------+-----+---------+-------+---------------------------------+---------+
| Field | Type | Collation | Null | Key | Default | Extra | Privileges | Comment |
+----------------+---------------+--------------------+------+-----+---------+-------+---------------------------------+---------+
| c_id | varchar(255) | utf8mb4_general_ci | NO | PRI | NULL | | select,insert,update,references | |
| c_value | varchar(4096) | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_creationdate | int(11) | NULL | NO | | NULL | | select,insert,update,references | |
| c_lastseen | int(11) | NULL | NO | | NULL | | select,insert,update,references | |
+----------------+---------------+--------------------+------+-----+---------+-------+---------------------------------+---------+
4 rows in set (0.002 sec)
ALTER TABLE sogo_sessions_folder MODIFY c_id varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_sessions_folder MODIFY c_value varchar(4096) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
MariaDB [sogo]> SHOW FULL COLUMNS FROM sogo_store;
+----------------+--------------+--------------------+------+-----+---------+-------+---------------------------------+---------+
| Field | Type | Collation | Null | Key | Default | Extra | Privileges | Comment |
+----------------+--------------+--------------------+------+-----+---------+-------+---------------------------------+---------+
| c_folder_id | int(11) | NULL | NO | PRI | NULL | | select,insert,update,references | |
| c_name | varchar(255) | utf8mb4_general_ci | NO | PRI | NULL | | select,insert,update,references | |
| c_content | mediumtext | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_creationdate | int(11) | NULL | NO | | NULL | | select,insert,update,references | |
| c_lastmodified | int(11) | NULL | NO | | NULL | | select,insert,update,references | |
| c_version | int(11) | NULL | NO | | NULL | | select,insert,update,references | |
| c_deleted | int(11) | NULL | YES | | NULL | | select,insert,update,references | |
+----------------+--------------+--------------------+------+-----+---------+-------+---------------------------------+---------+
7 rows in set (0.005 sec)
ALTER TABLE sogo_store MODIFY c_name varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_store MODIFY c_content mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
MariaDB [sogo]> SHOW FULL COLUMNS FROM sogo_user_profile;
+------------+--------------+--------------------+------+-----+---------+-------+---------------------------------+---------+
| Field | Type | Collation | Null | Key | Default | Extra | Privileges | Comment |
+------------+--------------+--------------------+------+-----+---------+-------+---------------------------------+---------+
| c_uid | varchar(255) | utf8mb4_general_ci | NO | PRI | NULL | | select,insert,update,references | |
| c_defaults | mediumtext | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
| c_settings | mediumtext | utf8mb4_general_ci | YES | | NULL | | select,insert,update,references | |
+------------+--------------+--------------------+------+-----+---------+-------+---------------------------------+---------+
3 rows in set (0.002 sec)
ALTER TABLE sogo_user_profile MODIFY c_uid varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_user_profile MODIFY c_defaults mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE sogo_user_profile MODIFY c_settings mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
Cheers! |