环境:CentOS 7.1 (64-bit system) MySQL 5.6.24
yum install libaio //安装依赖的包
wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm //下载mysql rpm包
yum localinstall mysql-community-release-el7-5.noarch.rpm //添加 MySQL Yum Repository (选择Y)
yum install mysql-community-server //通过yum安装mysql服务器
whereis mysql //查看mysql安装的位置,一般执行完会打印出如下信息
#mysql: /usr/bin/mysql /usr/lib64/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz
安装结束!
systemctl [start|stop|status] mysqld //mysql服务器开关命令
如有问题可留言,相互学习!