
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]
No comments:
Post a Comment
If you have any doubts or questions, please let us know.