MySQL80 Installation From MySQL Repository On CentOS7

MySQL has recently announced the release of MySQL80 and seems like a lot of improvement has been made. So let’s start with installing it from official’s repository.

You can get appropriate repository file from MySQL :: Download MySQL Yum Repository. To install it,

yum install https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm

mysql80 installation

Two .repo files will be placed after installation.
mysql80 installation

With these two files, we can start MySQL80 installation.

yum install mysql-community-server

mysql80 installation

Start mysql service and check status after installation.

systemctl start mysqld
systemctl status mysqld

mysql80 installation

Next, we need to obtain the temporary password first initializing mysql service.

cat /var/log/mysqld.log | grep "temporary password"

mysql80 installation

Now we start mysql initialization.

mysql_secure_installation

mysql80 installation
mysql80 installation

Now we are all set, login to mysql with user root and the password you just set.

mysql -u root -p

mysql80 installation

You should be able to login if everything was setup correctly. And to wrap everything up with couple commands to interact with mysql server and everything works fine and as expected!