CentOS 7 通过yum安装MariaDB
以下操作都以 root 用户进行操作 以下操作都以 root 用户进行操作 以下操作都以 root 用户进行操作 安装 安装 mariadb 服务 # yum install -y mariadb-server 安装 mariadb 命令行客户端 # yum install -y mariadb 安装 mariadb C library # yum install -y mariadb-libs 安装 mariadb 开发包 # yum install -y mariadb-devel 更改配置 更改 /etc/my.cnf.d/client.cnf 文件 [client] 下加一行配置 default-character-set=utf8 最终内容 # # These two groups are read by the client library # Use it for options that affect all clients, but not the server # [client] default-character-set = utf8 # This group is not read by mysql client library, # If you use the same .cnf file for MySQL and MariaDB, # use it