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]

[code lang=”bash” title=”Adding MySQL CE Repo”]
$ sudo wget https://repo.mysql.com//mysql57-community-release-el7-11.noarch.rpm
[/code]

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

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

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

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

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

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

 

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: