centos 7 安装配置mysql
默认所有操作都在root下执行
安装mysql
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm
yum update
yum install mysql-server mysql
配置mysql
service mysqld start
#加入开机启动
chkconfig mysqld on
#or
systemctl enable mysqld.service
原文
https://www.linode.com/docs/databases/mysql/how-to-install-mysql-on-centos-7