1.安装cmake

2.创建一个目录
usr/local/mysql
3.上传Percona-Server-5.6.21-70.0-r688-el6-x86_64-bundle.tar到/usr/local/mysq
https://pan.baidu.com/s/1j9yqBTnb3WP7gqt5B-fYPw
4.解压

5.解压后安装如下三个文件
rpm -ivh Percona-Server-shared-56-5.6.21-rel70.0.el6.x86_64.rpm
rpm -ivh Percona-Server-client-56-5.6.21-rel70.0.el6.x86_64.rpm
rpm -ivh Percona-Server-server-56-5.6.21-rel70.0.el6.x86_64.rpm
6.安装时出现问题

解决方案


解决方案


解决方案: 你按照的mysql服务与centos7中自带的mysql服务冲突。

7.启动mysql服务

8.登录mysql服务

9.设置登录密码


10.设置远程访问
grant all privileges on *.* to 'root' @'%' identified by 'root';
flush privileges;
11.设置防火墙放行端口号

12.导入mysql的脚本

firewall-cmd --zone=public --add-port=80/tcp --permanent
systemctl restart firewalld.service