How to install mysql 8.0 in centos7

1.Install with wget tool

yum install wget 

2.Download the official rpm package (official address)


3.Install local rpm package

yum -y install mysql80-community-release-el7-4.noarch.rpm

4.Install mysql service

yum install mysql-community-server

5.Start mysql service

service mysqld start

6.View mysql status

service mysqld status

7.View mysql initial password

grep 'temporary password' /var/log/mysqld.log

8.Add mysql to self-start at boot

systemctl enable mysqld.service

Was this helpful?

I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.