This file contains 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
# Setup Yum repository | |
rpm -Uvh https://repo.mysql.com/mysql80-community-release-el7-3.noarch.rpm | |
# Install MySQL 8 Community Server | |
sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/mysql-community.repo | |
# Install MySQL | |
yum --enablerepo=mysql80-community install mysql-community-server -y | |
# Start MySQL Service |
This file contains 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
# Show the default password for root user | |
grep "A temporary password" /var/log/mysqld.log | |
# MySQL Secure Installation | |
mysql_secure_installation | |
# Remove anonymous users? (Press y|Y for Yes, any other key for No) : y |
This file contains 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
# Install Apache | |
yum update -y | |
yum install httpd -y | |
systemctl start httpd.service | |
# Enable Apache to start at server boot | |
systemctl enable httpd.service | |
# for EC2 & RDS Database | |
setsebool httpd_can_network_connect_db 1 |
NewerOlder