On a previous blog post, we saw how to create an account on
the Oracle
OCI using the Oracle Cloud Free Tier offer and then how to
instal MySQL Server on the Compute instance.
Some weeks later, the new MySQL Database Service (MDS) was out and I can
show you now how to install and configure it.
We are talking about the MySQL 8.0 Enterprise Edition on the on Oracle
Generation 2 Cloud Infrastructure. For the moment it’s only
available on some of the data regions (Frankfurt and London for
the EMEA zone), but normally others will be …
This post was first published on Oracle MySQL Blog.
If you are running MySQL on premise, it’s maybe the right time to think about migrating your lovely MySQL database somewhere where the MySQL Team prepared a comfortable place for it to stay running and safe.
This awesome place is MySQL Database Service in OCI. For more information about what MDS is and what it provides, please check this blog from my colleague Airton Lastori.
One important word that should come to your mind when we talk about MDS is SECURITY !
Therefore, MDS endpoint can only be a private IP in OCI. This means you won’t be able to expose your MySQL …
[Read more]During the MDS webinar on how to deploy WordPress on OCI using MDS (slides & video), I briefly explained how to deploy the full architecture on OCI using Resource Manager and Stacks.
The Stack for that architecture is now available on my github: https://github.com/lefred/oci-wordpress-mds/releases/tag/0.0.1
To deploy it, it’s very easy. In OCI’s Dashboard, go on “Resource Manager” and then choose “Stacks“:
Create a new stack and just drop the …
[Read more]Today we will see how to use MySQL Database Service aka MDS with WordPress.
To achieve this easy task, we will use the architecture we already deployed in this article.
We have then two Compute Instances on OCI, 1 running WordPress (Apache and PHP) and one running MySQL 8.0.
The Plan
This is how we will proceed to migrate to MDS with minimal maintenance time, we will:
- create a MDS instance
- verify if the database is ready to act as replication source
- dump the MySQL instance running on OCI for being migrated to MDS.
- load the dump in MDS
- create a user dedicated to the replication
- create a replication channel on MDS (from OCI to MDS)
- modify WordPress config to point to MDS
Create a MDS …
[Read more]In a recent article, I explained how to test MySQL Database Service (aka MDS) on OCI without having to setup a VPN.
A VPN is the recommended way and of course using some man-in-the-middle exposing the MySQL Classic and X Protocol port is something you should absolutely avoid !
So, in this article we will see another way to test or use MDS without VPN but using a more secure option.
SSH
The solution uses a SSH tunnel between your machine (laptop, etc..) and OCI.
How does it work ?
We have a MDS instance (10.0.1.3), and a compute instance (10.0.0.2). The compute instance is in the public subnet and has a public IP assigned to it.
Then we open a SSH tunnel to the compute instance’s public IP that forward all traffic to a certain port on localhost (we will use 3406) …
[Read more]Please note that this is not recommended for any production purpose, don’t expose MySQL traffic to the Internet !
MySQL Database Service is now available, take a look at this nice introduction video:
It is usually a very bad idea to expose a database on a public IP (MySQL or any other database ). MDS doesn’t allow you to implement such bad security practice.
The best way to use your MySQL instance is to use a VPN as I explained in this article.
However, this can be restrictive for a simple test. In this post I will illustrate how you can setup a MDS instance and test it without having to setup any kind of VPN. Of course I recommend you to use such practice only for testing …
[Read more]You may have noticed, I started to blog also on the official Oracle MySQL Blog.
When I will do so, I will also publish my articles on lefred.be after a short delay.
I really invite you to follow the official Oracle MySQL Blog where you will find information related to MySQL Community but also about our webinars.
Currently, we put the highlight on our great new MySQL Database Service on OCI. My first post, is precisely dedicated to it.
In this demo we are setting up InnDB Cluster on Kubernetes, we will use a StatefulSets and NFS as storage. This demo was created on Oracle Cloud (OCI) but vanilla Kubernetes and NFS was used so should work for any cloud or on-prem. More information on my github page here Setup NFS Server to act as your persistent volume. Setup a NFS Server for your persistent volumes, howto here If you are using a public cloud provider you can most likely use dynamic storage options for handling of PV. In bellow examples I have a NFS Server on IP: 10.0.0.50 This NFS exposes folders: …
[Read more]With this post we are reaching the end of our journey to HA for WordPress & MySQL 8.0 on OCI.
If you have not read the two previous articles, this is just the right time.
- MySQL 8.0 InnoDB ReplicaSet with WordPress in OCI
- MySQL 8.0 InnoDB ReplicaSet with WordPress in OCI – part II
We started this trip using the MySQL InnoDB ReplicaSet where only 2 servers are sufficient but doesn’t provide automatic fail-over.
In this article we will upgrade our InnoDB ReplicaSet to …
[Read more]This article is the second part of our journey to WordPress and MySQL 8.0 High Availability on OCI. The first part can be read here.
We ended part I with one webserver hosting WordPress. This WordPress was connecting locally to MySQL Router using HyperDB add-on. This add-on allows to split the reads & writes on MySQL Servers using replication. And finally we had one MySQL InnoDB ReplicaSet of two …
[Read more]