Saturday, 4 April 2020

Install MySQL on CentOS 7

Install and Configure MySQL

Install MySQL

wget https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
md5sum mysql57-community-release-el7-9.noarch.rpm
rpm -ivh mysql57-community-release-el7-9.noarch.rpm

Start MySQL

systemctl start mysqld
systemctl status mysqld #Active: active (running)
grep 'temporary password' /var/log/mysqld.log #A temporary password is generated

Configure MySQL

mysql_secure_installation #set a new password
mysqladmin -u root -p version

Packages for MySQL:- dev.mysql.com

Ref:- digitalocean.com

No comments:

Post a comment