Cookies on this site

We would like to use cookies to understand how the site is used and to measure our campaigns. Nothing is set until you choose, and you can change your mind at any time from “Cookie settings” at the foot of every page. Privacy policy

Contact UsContact Us

Resources / Blogs

Oracle & databases

No package mysql-server available

How to Install MySQL Community edition on CentOS7 and resolving error - No package mysql-server available. Follow us on social media.

· · 2 min read

No package mysql-server

Starting CentOS7 MySQL is replaced with MariaDB. You might encounter the following error “mysql -u root -p4Samsung4” when you try installing mysql using yum.


[root@myhost~]# yum install mysql-server
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.es.its.nyu.edu
* extras: mirrors.rit.edu
* updates: mirrors.advancedhosters.com
No package mysql-server available.
Error: Nothing to do

Use the below command to update yum repository with mysql-community edition:


sudo rpm -Uvh http://dev.mysql.com/get/mysql-community-relea-el7-5.noarch.rpm

Once you update the yum repository, you should be able to install MySQL without any issues:

[root@c7svr01 ~]# sudo yum install mysql-server
Loaded plugins: fastestmirror, langpacks
mysql-connectors-community | 2.5 kB 00:00
mysql-tools-community | 2.5 kB 00:00
mysql56-community | 2.5 kB 00:00
(1/3): mysql-connectors-community/x86_64/primary_db | 11 kB 00:00
(2/3): mysql-tools-community/x86_64/primary_db | 29 kB 00:00
(3/3): mysql56-community/x86_64/primary_db | 152 kB 00:00
Loading mirror speeds from cached hostfile
* base: mirror.es.its.nyu.edu
* extras: mirrors.rit.edu
* updates: mirrors.advancedhosters.com
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86_64 0:5.6.34-2.el7 will be installed
--> Processing Dependency: mysql-community-common(x86-64) = 5.6.34-2.el7 for pac kage: mysql-community-server-5.6.34-2.el7.x86_64
--> Processing Dependency: mysql-community-client(x86-64) >= 5.6.10 for package: mysql-community-server-5.6.34-2.el7.x86_64
--> Running transaction check
---> Package mysql-community-client.x86_64 0:5.6.34-2.el7 will be installed
--> Processing Dependency: mysql-community-libs(x86-64) >= 5.6.10 for package: m ysql-community-client-5.6.34-2.el7.x86_64
---> Package mysql-community-common.x86_64 0:5.6.34-2.el7 will be installed
--> Running transaction check
---> Package mysql-community-libs.x86_64 0:5.6.34-2.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
mysql-community-server x86_64 5.6.34-2.el7 mysql56-community 59 M
Installing for dependencies:
mysql-community-client x86_64 5.6.34-2.el7 mysql56-community 19 M
mysql-community-common x86_64 5.6.34-2.el7 mysql56-community 257 k
mysql-community-libs x86_64 5.6.34-2.el7 mysql56-community 2.0 M

Transaction Summary
================================================================================
Install 1 Package (+3 Dependent packages)

Total download size: 80 M
Installed size: 348 M
Is this ok : y
Downloading packages:
(1/4): mysql-community-common-5.6.34-2.el7.x86_64.rpm | 257 kB 00:00
(2/4): mysql-community-libs-5.6.34-2.el7.x86_64.rpm | 2.0 MB 00:00
(3/4): mysql-community-client-5.6.34-2.el7.x86_64.rpm | 19 MB 00:03
(4/4): mysql-community-server-5.6.34-2.el7.x86_64.rpm | 59 MB 00:07
——————————————————————————–
Total 10 MB/s | 80 MB 00:07
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : mysql-community-common-5.6.34-2.el7.x86_64 1/
Installing : mysql-community-libs-5.6.34-2.el7.x86_64 2/
Installing : mysql-community-client-5.6.34-2.el7.x86_64 3/
Installing : mysql-community-server-5.6.34-2.el7.x86_64 4/
Verifying : mysql-community-server-5.6.34-2.el7.x86_64 1/
Verifying : mysql-community-client-5.6.34-2.el7.x86_64 2/
Verifying : mysql-community-common-5.6.34-2.el7.x86_64 3/
Verifying : mysql-community-libs-5.6.34-2.el7.x86_64 4/

Installed:
mysql-community-server.x86_64 0:5.6.34-2.el7

Dependency Installed:
mysql-community-client.x86_64 0:5.6.34-2.el7
mysql-community-common.x86_64 0:5.6.34-2.el7
mysql-community-libs.x86_64 0:5.6.34-2.el7

Complete!

← All articles

Case studies

Oracle Consulting in practice

Client names are withheld. We are happy to share details on a call.

All case studies
  • Delivered

    30 TB, zero downtime

    Financial services

    Oracle

    Zero-downtime move of a 30 TB Oracle database for a global retail bank

    The bank's transaction database served thousands of users around the clock. We built the new Oracle 12c RAC platform on IBM AIX alongside the old Solaris system, kept the two in sync with Oracle GoldenGate, tested everything and switched over with no downtime and no data loss.

    • 30 TB moved with zero downtime
    • Zero data loss at cut-over
  • Delivered

    Zero downtime

    Legal technology

    Oracle

    Sybase to Oracle with zero downtime for an e-discovery company

    Sybase was holding back a platform that processes large volumes of legal data. We converted the schema, kept both databases in sync with continuous replication, validated the data and switched over without interrupting the business.

    • Zero downtime at cut-over
    • No disruption to client workflows
  • Delivered

    No service disruption

    Local government

    Oracle

    A city's Oracle database moved off ageing Solaris hardware

    A major California city ran a mission-critical Oracle database on Solaris servers nearing end of life. We mapped the dependencies, confirmed the applications would work unchanged and re-platformed the database to Linux without disrupting public services.

    • No disruption to public services
    • Minimal application changes

Keep reading

All Oracle & databases articles

Planning an Oracle or database migration?

Request a migration plan consult with the DBAs who do this work, and leave with a fixed-scope plan.