注:centOS 7 下已经默认不支持mysql啦。yum默认安装的是mariadb
1、安装
yum -y install mariadb-server mariadb mariadb-devel
2、启动
systemctl start mariadb
3、初始化设置
mysql_secure_installation

4、授权
grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
flush privileges;
网友评论