安装
---------------------------------------------------------
yum install libaio--安装支持,不知道是什么
yum install wget --按装支持,下一步需要
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
service mysqld restart--服务启动
set password for ‘root‘@‘localhost‘ =password(‘password‘);--设置密码
grant all privileges on *.* to root@‘%‘identified by ‘password‘;--允许远程连接
!!!卸载
------------------------------------------------------
yum list installed | grep mysql --查询mysql是否已经安装
yum -y remove mysql-libs.x86_64 --卸载
原文:https://www.cnblogs.com/yangsongyan/p/10521595.html