yum安装mysql报错Error: Cannot find a valid baseurl for repo: base解决
在执行安装wget: yum -y install wget报一下错误
解决:
sed -i "s|enabled=1|enabled=o|g" /etc/yum/pluginconf.d/fastestmirror.conf
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/Centos-Base.repo.backup
curl -o /etc/yum.repos.d/centos-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo
yum clean all
yum install mysql mysql-server mysql-devel
上述代码依次执行;
就安装完成解决了