In part 1 of the series about Point-in-Time Recovery in OCI MDS, we saw how to stream the binary log to Object Storage. In this blog post, we will see how we can restore the data up to certain point. The high level process is simple: The scenario We have an application that constantly write […]
MySQL, the world’s most popular open source database, is available as a managed cloud service in Oracle Cloud Infrastructure (OCI) under the name of MySQL Database Service (MDS).
This is the fifth episode of “Discovering MySQL Database Service“, a series of tutorials where I will show you, step by step, how to use MySQL Database Service and some other Oracle Cloud Infrastructure services.
In this episode, we’ll see how these data can now easily be imported into a MySQL Database Service instance.
The post Discovering MySQL Database Service – Episode 5 – Create a MySQL DB system from a MySQL Shell dump first appeared on dasini.net - Diary of a MySQL expert.
In part 1 of the series about Point-in-Time Recovery in OCI MDS, we saw how to stream the binary log to Object Storage.
In this blog post, we will see how we can restore the data up to certain point.
The high level process is simple:
- we need to restore the last backup just before the point we want to return to
- find the last GTID that was executed in that backup (not 100% mandatory but can accelerate the process)
- choose what is the objective:
- just skip one transaction (following transaction could depend on it)
- recover up to that transaction and skip all the following ones
- replay the binary logs taking in consideration the chosen option of point 3
The scenario …
[Read more]To setup point-in-time recovery for MDS using Object Storage, these are the prerequisites:
- a MDS instance running
- a backup plan (default)
- a compute instance
- an Object Storage Bucket
In this article, I won’t focus on how to create a MDS instance, a compute instance, enable backups and Object Storage Bucket, this is easy and there is already a lot of literature about them (you can also check several of my previous articles).
This is part 1 of the Point-in-Time Recovery in OCI MDS series. It’s only about streaming the binary logs to Object Store. In part 2, we will see how to use them and perform PITR.
Saving the binary logs
In fact most of the work will be to setup the compute instance to store the binary logs coming from MDS (one single compute instance could stream those binlogs from multiple MDS source).
On the compute instance we need …
[Read more]Aurora has a salient feature “Parallel query“, Which will be more beneficial for analytical workload environments.
Before going to deep dive on this particular feature, let us understand the basis of Aurora.
Aurora Archiecture
- The key feature of Aurora is simple data synchronisation among the nodes. The sync latency will be too low when compared to RDS because the synchronisation is happening on storage volumes among the nodes. Also all the server will available in different zone, even when a zone goes down we can able to maintain will other server present in other zone with auto failure.
- Auto healing volume, Each …
Help!
I am preparing a presentation for the Longhorn PHP conference titled PHP & MySQL -- How do PDO, MySQLi, and X DevAPI do what they do. This will be a comparison of using PHP with different MySQL Connectors. As far as I can tell there are no three way comparisons of mysqli, PDO, and the X DevAPI PECL extension. And much of the PDO versus myqli stuff looks to me like it has not aged well.
I have good material in the raw presentation about overall features, parameters for prepared queries. And a good section on the how's and whys on prepared queries.
But what else would you like to see in such a presentation? I have read some postings on the web about turning off buffering (fairly simple to do). But what else are would you like to see compared?
…
[Read more]This is the fourth episode of “Discovering MySQL Database Service“, a series of tutorials where I will show you, step by step, how to use MySQL Database Service and some other Oracle Cloud Infrastructure services.
In the previous episode we’ve created our Virtual Cloud Network, that provides you with complete control over your cloud networking environment that we will create in this Discovering MySQL Database Service journey.
In this episode, we’ll see what is OCI Object Storage and how to
export data to it from a MySQL instance using MySQL Shell.
In fact, in the process of creating a MySQL DB system, this step
is optional. But it is especially useful if you want to create a
MDS instance with data from a MySQL server on premise or in any
public/private cloud.
The post …
[Read more]During the development of the myloader –innodb-optimize-keys option, which was released in version 0.10.7, we found several issues and opportunities to improve the process. We had to change the approach, reimplement some of the core functionality and add a couple of data structures. That allowed us to implement, at a really low cost, a feature that executes the files that contain INSERT statements, sorted by Primary Key. This is desirable to reduce page splits, which cause on-disk tablespace fragmentation.
In this blog post, I will present the differences in data fragmentation for each version.
Test Details
These are local vm tests as there is no intention to show performance gain.
The table that I used is: …
[Read more]Two or more dots in your relay log or binary log names can break replication; but worry not, it will only do it once. If you request to start again,…
The post Relay log read failure | 2 many dots can break your replication only once first appeared on Change Is Inevitable.
Database architecture and design are becoming an increasingly lost art. With new technologies and the push towards faster development cycles, people continue to take shortcuts, often to the detriment of long-term performance, scalability, and security. Designing how your application stores, accesses, and processes data is so fundamentally important, it can not be overlooked. I want people to understand that early design choices can have a profound impact on their applications. To that end, I will be exploring database design principles and practices over the next several months. I am starting with every developer’s favorite data format: JSON!
It seems that almost every database over the last few years has introduced various degrees of support for storing and interacting with JSON objects directly. While these features are designed to make it easier for application developers to write code faster, the implementations of each implementation …
[Read more]