Deploying MySQL on Oracle Cloud Infrastructure – MySQL Database Service

        Bobby Curtis

        Deploying MySQL on Oracle Cloud Infrastructure – MySQL Database Service

        With Oracle’s recent release of MySQL Heatwave, I’ve been looking more into MySQL.  I’ve actually looked at it a few times over the years, but the addition of Heatwave and how it allows MySQL to be used as an analytical platform.  This post is not going to focus on Heatwave, but how to get MySQL up and running using the Oracle Cloud Infrastructure (OCI).

        To get started, you’ll need to login to OCI.  (If you need a free tier license, you can sign up here).

        After creating and account and logging in, you’ll be on the dashboard.  From the dashboard, open the “hamburger” menu and select Databases.  Under the databases menu option is where you will find a category for MySQL. Under this category, select the DB Systems option.

        oci-database-mysql.png

        When you arrive at the DB Systems page for MySQL, you will be greeted with a list of prerequisites needed.  This is presented the first time to ensure that you set everything up correctly for MySQL Database Services.  Create the needed policies to allow for MySQL access.

        oci-database-mysql-prereqs.png

        After creating the required VCN, Groups/Users, and Policies, click on the the “Create DB System”.

        oci-database-mysql-create.png

        When the Create DB System page opens, you will need to provided the details for the MySQL configuration.  This consists of:

        • Compartment where it will be stored
        • Name of the database
        • Description (optional)
        • Type of database to build – Standalone (default)
        • Provide Administrator credentials
        • Provide VCN details
        • Provide availability domain
        • Configure the shape that the MySQL database will be used
        • Enable automatic backups

        oci-database-mysql-create.png

        Once all these items have be defined or provided, the Create button can be selected.

        After hitting the Create button, OCI will start building the requested MySQL database.

        oci-database-mysql-create1.png

        A few minutes later, I now have a MySQL Database System running.

        oci-database-mysql-system.png

        At this point, you can click into the DB System that has been created and see the General Information.  On thing to notice, this Database System is only assigning a Private IP address.

        oci-database-mysql-privateip.png

        By placing the MySQL database on the private network, you’ll have to install a compute node that has public access and private access to the private endpoint.  I’ll write a post soon on how to configure the compute node for MySQL access, but for now MySQL is up.

        If you are interested in building the compute node, you can reference my post on how to build an OCI compute node via Code – here.

        Enjoy!

        Recent posts

        Related Posts

        Connecting to MySQL Database Service – SSH and MySQL Shell

        With the Oracle Cloud Infrastructure (OCI) MySQL Database Services, in order to connect you have to...

        Read more

        Building MySQL Database Service (MDS)

        Building a MySQL Database in Oracle Cloud Infrastructure (OCI) is easy. Within a few steps, you can...

        Read more

        Adding Hostname to MySQL Heatwave/MySQL Database Service

        When building MySQL Heatwave Systems (use to be called MySQL Database Service or MDS), the need to...

        Read more