X

How To Install Mysql 8.0 on Centos 7 Server

In this tutorial how to install mysql 8 on Centos 7 server. 100% working guide for your. So lets go install mysql 8.0 on Centos 7 server.

Step #01: Check server version using below command.

cat /etc/redhat-release
yum -y update
yum -y install wget

Step #02: Download Mysql8.0 community release.

yum localinstall https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm
Step #03:Must be edit 

Then Edit mysql-community.repo file from mysql8.0 section. Open below file using any editor.
vi  /etc/yum.repos.d/mysql-community.repo
Then replace below text on this section gpgkey=file:///..............
[mysql80-community]
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql-2022

Step #04: Now run Mysql 8.0 installation script.

yum -y install mysql-server

Then service start and enable using below commmand.

systemctl start mysqld
systemctl enable mysqld

Step #05: Find mysql root user temporary password using below command.

grep 'temporary password' /var/log/mysqld.log
Then going to mysql terminal for reset root password using temporary password.
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'P@ssw0rd@123';
mysql> flush privileges;
mysql> \q

Then check mysql 8.0 status using below command.

systemctl status mysqld

If any error so please see my YouTube channel for for details. Please don’t forget subscribe my channel and share to your friends.

0 0 votes
Article Rating
Admin: I am system administrator as Windows and Linux platform. I have 4 years skilled from the professional period. I have to configure Linux based system such as an Asterisk VOIP system, Network monitoring tools (ZABBIX), Virtualization (XEN Server), Cloud computing (Apache CloudStack) etc. Now share my professional skill each interested person. Thanks to all.
Leave a Comment