mysql是免费开源的数据库产品,我们在centos mysql安装时报No package mysql-server available错误是因为我们本地yum仓库中没有可用的mysql-server rpm包,因此在yum安装之前先在本地备好rpm软件包。[root@VM_230_32_centos ~]# yum install mysql-server
Loaded plugins: fastestmirror, ovl
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
http://ftp.iitm.ac.in/centos/7.3.1611/updates/x86_64/repodata/repomd.xml
: [Errno 14] curl#52 - "Empty reply from server"
Trying other mirror.
updates | 3.4 kB 00:00:00
........
No package mysql-server available.
Error: Nothing to do
下面我们对centos6/7系统分开来解决此问题,以安装的是mysql5.7为例
在Centos 7上使用[root@VM_230_32_centos ~]# rpm -ivh https://repo.mysql.com//mysql57-community-release-el7-11.noarch.rpm
Retrieving
https://repo.mysql.com//mysql57-community-release-el7-11.noarch.rpm
warning: /var/tmp/rpm-tmp.7OOdD1: Header V3 DSA/SHA1 Signa