标签:mariadb
centos7 安装mariadb一、使用国内源:
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-
Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo
http://mirrors.aliyun.com/repo/Centos-7.repo
二、安装mariadb
yum -y install mariadb mariadb-server mariadb-devel
三、cat /etc/my.cnf
[mysqld]
default-storage-engine = innodb
innodb_file_per_table
collation-server = utf8_general_ci
init-connect = ‘SET NAMES utf8‘
character-set-server = utf8
四、启动mariadb
root用户直接启动,由于我的环境是vagrant ssh连接的,默认的是vagran用户
systemctl start mariadb #用root用户启动,非root用户需要sudo
mysql
标签:mariadb
原文地址:http://blog.51cto.com/bajiebushizhu/2126062