The optimizer in MySQL 5.7 leverages generated columns. Generated
columns will physically store data in two cases: Either the
column is defined as STORED or you create an index on a virtual
column. The optimizer will leverage such an index automatically
if it encounters the same expression in a statement. Let's see an
example:
mysql> DESC squares;
+-------+------------------+------+-----+---------+-------+
| Field |
Type
| Null | Key | Default | Extra |
+-------+------------------+------+-----+---------+-------+
| dx | int(10) unsigned | YES
| | NULL
| |
| dy | int(10) unsigned | YES
| | NULL
| |
…
It is not uncommon that we need to filter out some DBs or Tables while setting up replication. It is important to understand how MySQL evaluates/process the replication filtering rules to avoid the conflicting or confusion while we setting them up.The purpose of this blog is to illustrate the rules and provide some suggestions for best practice.
MySQL provides 3 levels of filters for setting up replication: Binary log, DB and Table. The binlog filters apply on the master to control how to log the changes. Since MySQL replication is based on the binlog, it is the first level filter and has the highest priority. While the DB-level and Table-level filters apply on the slaves, since each table belongs to a schema, the DB-level filters have higher priority than the Table-level ones. Inside the Table-level filters, MySQl will evaluate the options in the order of: …
[Read more]Percona is glad to announce the first GA release of Percona XtraBackup 2.4.2 on April 1st, 2016. Downloads are available from our download site and from apt and yum repositories.
Percona XtraBackup enables MySQL backups without blocking user queries, making it ideal for companies with large data sets and mission-critical applications that cannot tolerate long periods of downtime. Offered free as …
[Read more]Historical MySQL Bug#2, opened 12 Sep 2002, states that MySQL Connector/J doesn’t make toast. It hasn’t been fixed for more than 14 years. I’ve finally created a patch for it.
First of all: why only fix this for MySQL Connector/J? We should make sure the server can do this for any implementation! With this fix, now MySQL server (starting with version 5.1) can make toast.
There are few dependences though (see assembled setup picture):
- Raspberry Pi + PiFace shield
- Power switch relay (I’ve used an …
Come meet the MariaDB Server and MariaDB MaxScale developers in Berlin (April 12 2016), talk about new upcoming things in MariaDB Server 10.2, as well as the next MariaDB MaxScale releases. Let’s not forget the talks about the upcoming developments with the Connectors.
It will be a fun-filled, information-packed night. Food & drink will be provided.
For more information and the opportunity to RSVP check-out our meetup page. RSVP soon as we only have 99 spaces available.
The MySQL Utilities Team is pleased to announce a new beta
release of MySQL Utilities. This release includes a number of
improvements for usability, stability, and a few enhancements. A
complete list of all improvements can be found in our release notes.
New Enhancements!
This release represents a stable release of the product. Along
with several defect patches, we also include the following
enhancements.
Improved support for MySQL 5.7
Improved functionality of --exclude option with SQL
wildcards
Improved packaging in RPM and Windows distributions
Improved accuracy of calculated disk usage for
mysqldiskusage
...and a host of minor improvements for quality and
robustness
How Can I Download MySQL Utilities?
You can download MySQL Utilities 1.6.3 Beta from the …
I have a few speaking engagements coming up in April 2016, and I hope to see you at some of these events. I’m always available to talk shop (opensource, MariaDB Server, MySQL, etc.) so looking forward to saying hi.
- A short talk at the MariaDB Berlin Meetup on April 12 2016 – this should be fun if you’re in Berlin as you’ll see many people from the MariaDB Server and MariaDB MaxScale world talk about what they’re doing for the next releases.
- rootconf.in – April 14-15 2016, tutorial day on 16 – I’ve not been to India since about 2011, so I’m looking forward to this trip to Bangalore (and my first time to a HasGeek event). Getting the email from the conference chair was very nice, and I believe I’m giving a keynote and a tutorial. …
In this blog post, we’ll discuss some of the basics regarding Docker MySQL replication. Docker has gained widespread popularity in recent years as a lightweight alternative to virtualization. It is ideal for building virtual development and testing environments. The solution is flexible and seamlessly integrates with popular CI tools.
This post walks through the setup of MySQL replication with Docker using Percona Server 5.6 images. To keep things simple we’ll configure a pair of instances and override only the most important variables for replication. You can add whatever other variables you want to override in the configuration files for each instance.
Note: the configuration described here is suitable for development or testing. We’ve also used the …
[Read more]In this blog post, we’ll discuss read-write split routing in MaxScale.
The two previous posts have shown how to setup high availability (HA) with Maxscale using asynchronous replication and how we monitor replication.
Now let’s focus on the routing module performing read-write splits.
This is our current configuration:
[Splitter Service] type=service router=readwritesplit servers=percona1, percona2 max_slave_replication_lag=30 user=maxscale passwd=264D375EC77998F13F4D0EC739AABAD4
This …
[Read more]VMware Continuent provides data replication between relational databases, and to data warehouses and analytics engines. In addition, VMware Continuent provides globally redundant disaster recovery, commercial-grade high availability and performance scaling.
To learn more, come visit us at the Percona Live Data Performance Conference, booth # 104!