Can't install mysql on centos7

Posted July 23, 2018 4k views

i cant install mysql . i have tried many ways . install yum repos as mentioned here on installing mariadb instead of mysql .
both ends up on these

No package mysql-community-server available.
No package mariadb-server available.
No package mysql-server available.
No package Mariadb-server available.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

What’s wrong with yum install mysql?

It looks like you have missed installing the required RPMs. Please give a try to below steps:

  1. yum install wget
  2. wget

  3. md5sum mysql57-community-release-el7-9.noarch.rpm

  4. rpm -ivh mysql57-community-release-el7-9.noarch.rpm

  5. yum install mysql-server

Let me know how it goes.