Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Latest commit

 

History

History
64 lines (47 loc) · 1.58 KB

README.md

File metadata and controls

64 lines (47 loc) · 1.58 KB

]

ssh-keygen -t rsa
ssh opc@public_ip -i ~/.ssh/id_rsa
terraform init
  -backend-config="address=https://objectstorage.ap-singapore-1.oraclecloud.com/p/FD58RMnOqCAS68pqhFepGHKVLUMWQanan99Cs0oj3AOMJmDS8ibClvKwRP3xyv--/n/axyyz3fsrayr/b/terraform-state/o/terraform.tfstate"
  --upgrade -reconfigure

terraform apply -auto-approve -input=false --var-file=a1-flex.tfvars
terraform init
    -backend-config="address=https://objectstorage.ap-singapore-1.oraclecloud.com/p/1y_GJB5Qvwzz8xx8Y9SHK8cHGbqsOHwjwvbYvrcjsto1IGN3X1Y_Wzh-j7bcWkI9/n/axyyz3fsrayr/b/terraform-state/o/terraform.tfstate1"
    -reconfigure

terraform apply -input=false --var-file=e2-micro.tfvars

Install MySQL

yes | sudo yum update
sudo systemctl reboot
sudo dnf install @mysql:8.0 -y

Start MySQL

sudo systemctl enable --now mysqld
systemctl status mysqld
sudo mysql_secure_installation

Create MySQL user

mysql -uroot -p
CREATE USER 'user'@'%' IDENTIFIED BY 'P@ssw0rd';
GRANT ALL PRIVILEGES ON _._ TO 'user'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;

Disable firewall

sudo firewall-cmd --state
sudo systemctl stop firewalld
sudo systemctl disable firewalld