mariadb字符集

来源:互联网 发布:iphone刷机后 数据恢复 编辑:程序博客网 时间:2024/06/05 23:47

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

[root@localhost ~]# cat /etc/my.cnf[mysqld]datadir=/var/lib/mysqlsocket=/var/lib/mysql/mysql.sockcharacter_set_server = utf8  服务端字符集 对所有启动方式有效lower_case_table_name = 1# Disabling symbolic-links is recommended to prevent assorted security riskssymbolic-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.logpid-file=/var/run/mariadb/mariadb.piddefault-character-set = utf8 只对安全模式启动有效## include all files from the config directory#!includedir /etc/my.cnf.d  #其他的配置文件在这个目录


0 0