Linux安装mysql步骤
- 检查是否已经安装过mysql-server
rpm -qa|grep mysql-server
- 安装
yum -y install mysql-server
- 出现问题
[root@hadoop1 ~]# yum -y install mysql-server
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
3. base: mirrors.aliyun.com
4. extras: mirrors.aliyun.com
5. updates: mirrors.aliyun.com
没有可用软件包 mysql-server。
错误:无须任何处理
- 出现问题解决方法
[root@master ~]# yum -y install wget
[root@master ~]# wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
[root@master ~]# rpm -ivh mysql-community-release-el7-5.noarch.rpm
[root@master ~]# ls -1 /etc/yum.repos.d/mysql-community*
[root@master ~]# yum install mysql-server