Install MySQL 8 on CentOS, RHEL 6/7

To Add MySQL yum repository to your server, go to https://dev.mysql.com/downloads/repo/yum/ Download the rpm file available. For RHEL/CentOS 7 wget https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm rpm -ivh mysql80-community-release-el7-3.noarch.rpm For RHEL/CentOS 6 wget https://dev.mysql.com/get/mysql80-community-release-el6-1.noarch.rpm rpm -ivh mysql80-community-release-el6-1.noarch.rpm Installing MySQL Server yum install mysql-community-server Stop/Start MySQL To stop/start MySQL, use service name “mysqld”. systemctl start mysqld systemctl stop mysqld systemctl restart … Read more