Question

Can't install mysql on centos7

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.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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

  1. yum install wget

  2. wget https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm

  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.

What’s wrong with yum install mysql?