欢迎投稿

今日深度:

mariadb字符集,

mariadb字符集,


新安装的mariadb出现了乱码问题,现在将字符集编码统一设定为utf8

[root@localhost ~]# cat /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock

character_set_server = utf8  服务端字符集 对所有启动方式有效

lower_case_table_name = 1
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
# Settings user and group are ignored when systemd is used.
# If you need to run mysqld under a different user or group,
# customize your systemd unit file for mariadb according to the
# instructions in http://fedoraproject.org/wiki/Systemd

[mysqld_safe]
log-error=/var/log/mariadb/mariadb.log
pid-file=/var/run/mariadb/mariadb.pid

default-character-set = utf8 只对安全模式启动有效

#
# include all files from the config directory
#
!includedir /etc/my.cnf.d  #其他的配置文件在这个目录


www.htsjk.Com true http://www.htsjk.com/mariadb/32471.html NewsArticle mariadb字符集, 新安装的mariadb出现了乱码问题,现在将字符集编码统一设定为utf8 [root@localhost ~]# cat /etc/my.cnf[mysqld]datadir=/var/lib/mysqlsocket=/var/lib/mysql/mysql.sockcharacter_set_server = utf8 服务端字...
相关文章
    暂无相关文章
评论暂时关闭