1、添加yun源
vi /etc/yum.repos.d/mysql-community.repo
[mysql57-community]
name=MySQL 5.7 Community Serverbaseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/6/$basearch/enabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
2、安装
yum install mysql-community-server
3、启动mysql
service mysqld start
4、查看mysql服务进程
ps -ef|grep mysqld 或 service mysqld status