1 检查mysql是否安装
service mysql start 或 /bin/systemctl start mysql.serviice
2 安装
yum -y install mysql
安装musql-service
wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
rpm -ivh mysql-community-release-el7-5.noarch.rpm
yum install mysql-community-server
安装mysql拓展
yum -y install mysql-connector-odbc mysql-devel libdbi-dbd-mysql
3 启动
service mysqld restart
查看 ps -ef | grep mysql
4 配置
mysql_secure_installation 设置密码