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.
Latest posts by Admin (see all)
- How To Install Zabbix Server 6.4 On AlmaLinux 8 Server - August 9, 2024
- How To Clear RAM Memory Cache Buffer Linux Server - February 29, 2024
- How To Install Apache Cloud Stack Management Server 4.17 On Ubuntu 22.04 - February 1, 2024
Leave a Comment