No package MySQL server available
1. Using Yum install – y MySQL server, the error is as follows:
[root@heyong_jd ~]# yum install -y mysql-server
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
No package mysql-server available.
Error: Nothing to do
2. The solution is as follows:
1: wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
2: rpm -ivh mysql-community-release-el7-5.noarch.rpm
3. Then perform the installation
[root@heyong_jd ~]# yum install mysql-server
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
mysql-connectors-community | 2.5 kB 00:00:00
mysql-tools-community | 2.5 kB 00:00:00
mysql56-community | 2.5 kB 00:00:00
(1/3): mysql-connectors-community/x86_64/primary_db | 41 kB 00:00:00
(2/3): mysql-tools-community/x86_64/primary_db | 58 kB 00:00:00
(3/3): mysql56-community/x86_64/primary_db | 226 kB 00:00:01
...
...
...
Installed:
mysql-community-libs.x86_64 0:5.6.44-2.el7 mysql-community-server.x86_64 0:5.6.44-2.el7
Dependency Installed:
mysql-community-client.x86_64 0:5.6.44-2.el7 mysql-community-common.x86_64 0:5.6.44-2.el7 perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7
perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 perl-DBI.x86_64 0:1.627-4.el7 perl-Data-Dumper.x86_64 0:2.145-3.el7
perl-IO-Compress.noarch 0:2.061-2.el7 perl-Net-Daemon.noarch 0:0.48-5.el7 perl-PlRPC.noarch 0:0.2020-14.el7
Replaced:
mariadb-libs.x86_64 1:5.5.60-1.el7_5
Complete!
Successfully installed
Similar Posts:
- Solve yum install mysql-server exception under CentOS7: No package mysql-server available.
- Failed to install MySQL server in centos7 (no package available)
- Centos MYSQL Install Error: The GPG keys listed for the “MySQL 8.0 Community Server” repository are already installed but they are not correct for this package.
- [How to Solve] ImportError: No module named MySQLdb
- Linux environment installation MYSQL Error: Redirecting to /bin/systemctl start mysqld.service Failed to start mysqld.service: Unit not found.
- failure: repodata/filelists.sqlite.bz2 from teamviewer: [Errno 256] No more mirrors to try
- [Solved] MYSQL export mysqldump version mismatch upgrade or downgrade your local MySQL client programs
- [Solved] Backup mysql8.0 with the mysqldump of mysql5.7 Error
- [Solved] Error 1054 (42s22) unknown column ‘password’ in ‘field list’ when updating the password of mysql5.7 or above
- ERROR 1040 (08004): Too many connections