MySQL is the world’s most popular open source database. With its proven performance, reliability and ease-of-use, MySQL has become the leading database choice for web-based applications, used by high profile web properties including Facebook, Twitter, YouTube, Yahoo! and many more. This post will show you how to install MySQL on CentOS 7 operating system.
Download MySQL package
Go to this site for download the .rpm file installer https://dev.mysql.com/downloads/repo/yum/. Then download the .rpm file with wget command.
Verify downloaded MySQL package
After .rpm file downloaded, check the integrity of file with md5sum command and verify the output on terminal with the website link https://dev.mysql.com/downloads/repo/yum/.
Install MySQL package
If downloaded package is verified, we can add package to repository with rpm command.
Then, install the package with yum command.
Configure MySQL package
Start the MySQL package.
To see the random generated root password of MySQL, use this command.
Then change the root password and other configuration with mysql_secure_installation.
Follow step by step of mysql_secure_installation, if asked the current password fill with the random generated root password.