楔子
学习笔记
设置MariaDB字符集
查询字符集
SHOW VARIABLES LIKE '%character%';
SHOW VARIABLES LIKE 'collation%';
设置字符集
[mysqld]
# 注意你的安装位置
datadir=C:/soft/a/MySQL/MariaDB 10.5/data
port=3306
innodb_buffer_pool_size=2035M
character-set-client-handshake = false
character_set_server = utf8mb4
character_set_filesystem = binary
character_set_client = utf8mb4
collation_server = utf8mb4_unicode_ci
init_connect='SET NAMES utf8mb4'
[client]
port=3306
# 注意位置
plugin-dir=C:/soft/a/MySQL/MariaDB 10.5/lib/plugin
default-character-set=utf8mb4
[mysqldump]
character_set_client=utf8mb
[mysql]
default-character-set=utf8mb4