Skip to content

Instantly share code, notes, and snippets.

@cerealskill
Last active December 14, 2018 13:45
Show Gist options
  • Select an option

  • Save cerealskill/0042e99da546073f75b48497e87d79e9 to your computer and use it in GitHub Desktop.

Select an option

Save cerealskill/0042e99da546073f75b48497e87d79e9 to your computer and use it in GitHub Desktop.
Mysql Server on CentOS 7
#!/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