Deploy MySQL instances

Deploying three MySQL instances with the help of OCI CLI (for more details on how to proceed with OCI CLI creation for MySQL instance, review "The basics OCI CLI" )

Each of the three database has been deployed in a different Availability Domain; Each of these three databases have the same compartmentID and subnetID

Json file for deploying 1st DB database:

root@deploymentmachine:/home/tests/mydb# more mydb1.json
{
  "adminUsername": "usertest",
  "adminPassword": "wildpassw0rd#",
  "compartmentId": "ocid1.tenancy.oc1..aaaaaaaafakecompartmentidfromhereonh3h3h3h3h3",
  "display-name": "MysqlSmallTest1",
  "availabilityDomain": "Aodz:EU-FRANKFURT-1-AD-1",
  "databaseEdition": "STANDARD_EDITION",
  "dataStorageSizeInGbs": 50,
  "dbName": "mysqlTest",
  "dbVersion": "19.6.0.0",
  "description": "Just a small mysql db test",
  "port": 3306,
  "port-x": 33060,
  "hostname": "mysqltest1",
  "listener-port": 1521,
  "node-count": 1,
  "maxWaitSeconds": 0,
  "shapeName": "MySQL.VM.Standard.E3.1.8GB",
  "subnetId": "ocid1.subnet.oc1.eu-frankfurt-1.aaaaaaaafakesubnetidfromhereonh3h3h3h3h3""
}

Deploy 1st DB with command:

Json file for deploying 2nd DB database:

Deploy 2nd DB with command:

Json file for deploying 3rd DB instance:

Deploy 3rd DB with command:

If no output errors after running command "oci mysql db-system create", check the Oracle Cloud UI:

Do not forget the Ingress rules for MySQL services:

The deployed instances have following private IPs:

10.0.0.28, 10.0.0.30, respectively 10.0.0.32

Last updated