MySQL & Dockers... are not new concepts, people have been
moving to Dockers for some time now. For someone who is
just moving to this for development, it can have a few
hurdles.
While MySQL works just fine running locally, if you are testing
code across different versions of MySQL it is nice to have
several versions easily available.
One option for years has been of course https://mysqlsandbox.net/ by Giuseppe
Maxia. This is a very valid solution to be able to get
several instances up and test replication and etc etc.
Dockers are now also another often used scenario when it comes to
testing across different versions of MySQL. The following will
just go over some of the steps to get several versions installed
easily. I use OSX so these examples are for OSX.
You need Docker to start and of course and Docker …
In this fourth post in our MySQL Use Case Blog Series we look at a customer of ours who was able to grow their Saas business from tens of customers initially to thousands of enterprise customers once they achieved continuous MySQL operations with Continuent Tungsten.
This particular customer, based in California, develops and sells automation software for account-based marketing as well as other marketing services and products such as SEO and content marketing. They provide solutions tailored for large enterprises and fast-growing, small businesses alike covering all industry types from technology all the way to higher education.
So how did this fast growing marketing automation SaaS provider scale from tens of customers to thousands of enterprise customers using Tungsten Clustering (currently with 600+ MySQL instances)?
The Challenge
SaaS and other web applications are inherently 24/7/365 operations, thus they …
[Read more]Introduction Welcome to a new issue of the Java and Database newsletter in which we share articles, announcements, and StackOverflow answers that are very relevant to any developer who interacts with a database system from Java. Articles Since version 13, Java now supports multiline string literals via the Text Blocks feature. To see how much more readable are SQL or JPQL queries, JSON, HTML, and XML string literals when using Text Blocks, then you should definitely read this article, When writing SQL queries with the NOT IN query expression, you need to... Read More
The post Java and Database Newsletter, Issue 5 appeared first on Vlad Mihalcea.
Few months back , I came to know about the tool Binlog2sql . The tool has very cool features like .
- The tool can extract SQL’s from MySQL Binary log .
- The tool can generate the rollback SQL’s for PITR .
In this blog, I am going to explain, how the above two features can be achieved using the tool binlog2sql .
Installation :
The tool has been developed by Mr. Cao Danfeng . Great Job Mr. Cao Danfeng . The tool can be downloaded from the GitHub .
https://github.com/danfengcao/binlog2sql
git clone https://github.com/danfengcao/binlog2sql.git
cd binlog2sql
pip install -r requirements.txt
Make sure, the …
[Read more]Another interesting feature released with MySQL 8.0 is full support for functional indexes.
Although this is not a strictly new concept in the MySQL world (indexed generated columns provided the same functionality), I find it worth reviewing, through some applications, notes and considerations.
All in all, I’m not 100% bought into functional indexes (as opposed to indexed generated columns); I’ll elaborate on this over the course of the article.
As a natural fit, generated columns are included in the article; additionally, some constructs build on my previous article, in relation to the subject of CTEs.
Updated on 12/Mar/2020: Found another bug.
Contents:
- …
Of course MySQL 8.0.19 that was released on 13th January 2020 also includes Community Contributions. But before talking about them, I would like to thanks Jesper for having started this MySQL Releases Contributions thread. I’ll try to keep his good work on that topic from now.
So, MySQL 8.0.19 includes contributions from Facebook, Satya Bodapati, Nikolai Kostrigin and Olekasandr Peresypkin.
Please note that this list might not be exhaustive as it’s currently a manual process for me to link the contributions with the current release. I will try to improve this in the future.
Here are those contributions:
- Innodb_system_rows_read, Innodb_system_rows_inserted, …
In this talk, we’ll walk through RocksDB technology and look into situations where MyRocks is a good fit versus other engines such as InnoDB. We will go over internals, benchmarks, and the tuning of MyRocks engine. We will also explore the benefits of using MyRocks within the MySQL ecosystem. Attendees will leave with solid knowledge of the latest development tools and integrations within MySQL.
Please join Alkin Tezuysal and Sergey Kuzmichev on Monday, March 23rd, at 9:00 am EDT for their webinar “When is MyRocks a Good Fit?”
A long-time missing (and missed) functionality in MySQL, is sequences/ranges.
As of MySQL 8.0, this functionality is still not supported in a general sense, however, it’s now possible to generate a sequence to be used within a single query.
In this article, I’ll give a brief introduction to CTEs, and
explain how to build different sequence generators; additionally,
I’ll introduce the new (cool) MySQL 8.0 query hint
SET_VAR
, and a pinch of virtual columns and
functional indexes (“functional key parts”, another MySQL 8.0
feature).
Contents:
[Read more]
Monitoring a database is a critical mission: collecting
information over time allows tracking how's behaving certain
instance in response to a determined workload. There are several
solution on the market, and MySQL offers its own solution in the
Enterprise Edition, MySQL Enterprise Monitor (MEM). Today I'd like to remember that there's also
another nice solution that is free, and designed by MySQL
performance architect, Dimitri Kravtchuk (hence not to be considered
as an Oracle MySQL solution, not supported and "as is"). I'm
talking about dim_STAT. dim_STAT has a slightly different purpose
than MEM as it is specialized to make some low level analysis of
the impact of the workload on our MySQL Server instance (e.g. can
profile mysqld process), and above all, permits offline metrics
captures.
…
Monitoring a database is a critical mission: collecting information over time allows tracking how’s behaving certain instance in response to a determined workload. There are several solutions on the market, and MySQL offers its own in the Enterprise Edition, MySQL Enterprise Monitor (MEM). Today I’d like to remember that there’s also another nice solution that is free, and designed by MySQL performance architect, Dimitri Kravtchuk (hence not to be considered as an Oracle MySQL solution, not supported and “as is”). I’m talking about dim_STAT. dim_STAT has a slightly different purpose than MEM as it is specialized to make some low level analysis of the impact of the workload on our MySQL Server instance (e.g. can profile mysqld process), and above all, permits offline metrics captures.
…[Read more]