Skip to content

MySQL on RHEL/Centos7.x

Installation of Mysql57 community server on Centos/RHel7

[code lang=”bash” title=”Updating the cache”]
$ sudo yum update -y

[code lang=”bash” title=”Adding MySQL CE Repo”]
$ sudo wget

[code lang=”bash” title=”Installing downloaded release package”]
$ sudo rpm -Uvh mysql57-community-release-el7-11.noarch.rpm
$ sudo yum update -y

[code lang=”bash” title=”Installing MySQL5.7 CE”]
$ sudo yum install mysql-community-server

[code lang=”bash” title=”Starting Mysql Server”]
$ sudo systemctl start mysqld.service

[code lang=”bash” title=”Temp Password”]
$ sudo grep ‘temporary password’ /var/log/mysqld.log

[code lang=”bash” title=”Changing Root password”]
$ mysql -uroot -p
$ ALTER USER ‘root’@’localhost’ IDENTIFIED BY ‘MyNewPass’;

[code lang=”bash” title=”Securing the MySQL Installation”]
$ mysql_secure_installation


Shashi View All

-== Superman ==-

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: