Last active
December 14, 2018 13:45
-
-
Save cerealskill/0042e99da546073f75b48497e87d79e9 to your computer and use it in GitHub Desktop.
Mysql Server on CentOS 7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo "Deploy MYSQL server on CentOS 7"; | |
| wget https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm | |
| md5sum mysql57-community-release-el7-9.noarch.rpm | |
| sudo rpm -ivh mysql57-community-release-el7-9.noarch.rpm | |
| sudo yum install -y mysql-server | |
| echo "Start Services - Mysqld"; | |
| sudo systemctl start mysqld | |
| echo "Check Status Services - MySQLd"; | |
| sudo systemctl status mysqld | |
| echo "Check Temporary password for root user - Mysqld"; | |
| sudo grep 'temporary password' /var/log/mysqld.log | |
| echo "Endline"; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment