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

cuong0993/oci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c85c175 · Jun 25, 2024

History

5 Commits
Jul 13, 2023
Jul 13, 2023
Jul 13, 2023
Jul 13, 2023
Jul 13, 2023
Jul 13, 2023
Jul 13, 2023
Jul 13, 2023
Jun 25, 2024
Jun 25, 2024
Jul 13, 2023
Jul 13, 2023
Jul 13, 2023
Jul 13, 2023
Jul 13, 2023
Jul 13, 2023
Jul 13, 2023
Jul 13, 2023
Jun 25, 2024
Jul 13, 2023

Repository files navigation

]

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages