Monday, September 14, 2020

How to Launch MySQL Database Service ?

 Launching Your First MySQL DB System

Step 1 - Pre-requisites

1.    1.     Create a compartment and user group to organize the resources and access. In this example, we create a compartment named as MySQL_Sandbox, and a group MySQL_Test_Group. Log-in the Console as an Administrator, under the Identity menu, create a MySQL_Sandbox compartment, and a group MySQL_Test_Group. Add the OCI user you will use to work with MySQL Database Service to the group.

2.     Define the required MySQL Database Service policies (Identity menu). In our example, if your user is in the group MySQL_Test_Group and you want to restrict your MySQL DB Systems to the compartment MySQL_Sandbox, add the following policy statements:

a.      create a Virtual Cloud Network (VCN). Just click on the "Start VCN Wizard" button, choose "VCN with Internet Connectivity", give a name, confirm the compartment, keep the default CIDR blocks (,, and DNS Resolution options, then click the buttons "Next", and finally "Create".

Step 2 - Create a MySQL DB System

1.     Using the Console, select the menu Database > MySQL > DB Systems > Create MySQL DB System.

1.  Inform your DB System preferences, ensuring you choose the compartment where your VCN and Subnets are configured from the pre-requisites. Give your DB System a name, select the Availability Domain and Fault Domain you want to place your DB System. Then you can choose a configuration, as the VM.Standard.E2.1.Built-in, define the Storage Size and click the "Next" button.


1.     You will now provide the Database information: MySQL Administrator credentials, and confirm where the network information, and click "Next". 

1.     Finally, just confirm if you want to enable Automatic Backups and click "Create".

1.     Your new MySQL DB System will be ready to use after a few minutes. You can perform the following Step 3 in parallel while waiting.

1.     The state Creating will change to Active, indicating that your DB System is ready to use. When the DB System is Active, click on the left "Endpoints" resources and check the Address to connect to the DB System.