As Tomas announced in his keynote at MySQL Connect 2013, we are
working on a brand new product called MySQL Fabric. Along with
this release of MySQL Fabric, we are releasing Connector/J 5.1.26
with Fabric support on labs.mysql.com. This is an alpha-quality
release that adds support for scalability features in MySQL
Fabric. Sharding and read/write splitting are the initial
features supported by Connector/J.
In a setup involving read/write splitting or customized sharding,
we generally have to duplicate knowledge of this configuration in
the client applications. This is done in connection strings
specified in configuration files or directly in code. With MySQL
Fabric, we can express our system-wide configuration of database
servers in a way that it can be accessed by client applications.
In cases where this needs to change (and it always does..), the
configurations affecting client applications no longer need to be
changed. The connector will …
Oracle OpenWorld 2013 is just days away, and Pythian is once again everywhere at OOW. Pythian’s famous Annual Oracle Bloggers Meetup — one of your top favorite events of OpenWorld, is once again here at OOW.
Oracle:
As this year is heading to a close, it will complete 21 years of partnership between Intel and Oracle.
Have you started to pay closer attention to social, cloud, mobile, and/or big data technologies and trends?
NetBeans IDE 7.4 RC 1, released today, has a long list of features, including support for …
[Read more]
MySQL 5.6 introduced the TTS(transportable table spaces) feature which
enables moving a table from one server to another. This feature
coupled with MEB 3.9 enables backing up a set of tables matching
(regex specified with) the –include option.
The backup of selective tables using transportable tablespaces
feature of innodb is referred as tts/selective backup in the
remainder of the section.
The difference between a regular partial backup and with using
tts is that the regular partial backups are stand alone and
cannot be plugged into a another server where as the tts backups
in contrast enables the tables to be plugged into another server
instance
The …
[Read more]MySQL Enterprise Backup has been improved to support single step restore from the latest release 3.9.0. It enables you to restore the backup image to remote machine in single step. However, first you would have to create the backup image in local disk, copy the backup image to remote machine, and then restore in remote machine by running copy-back-and-apply-log command.
This approach has two overheads: Serial execution: You have to wait for each step to finish before beginning the next (e.g. You must have to wait for backup-to-image operation to finish before beginning copy). Disk consumption: You might not have enough space on the …
[Read more]
Disclaimer
The views expressed on this blog are my own and do not
necessarily reflect the views of Oracle.
Introduction
There are database usage patterns, where tables grow big at times
and many rows are deleted from them later. InnoDB does never
shrink a table space. In these cases we can end up with big data
files, which contain a lot of unused pages. It is a waste of
disk- and I/O- resources to back them up.
Users have manifold requested that MySQL Enterprise Backup does
not back up unused InnoDB data pages. Some want smaller backups,
some want less I/O, some want shrinked table spaces.
MySQL Enterprise Backup 3.9.0 can help with smaller backups. The
effect on I/O is not that remarkable. InnoDB data files must be
expanded to their original size when they are restored. Backup
cannot accomplish a shrinkage of InnoDB table spaces.
In the following I will try to explain, how …
Here’s a look at using MySQL Enterprise Backup in a specific example:
Consider a Backup Policy – Full Backup of the environment. – Complemental Incremental backups & online BinLogs. And the Restore: – Logical Restore. – Online, Zero impact. – Partial, single database, group of tables. The Backup A working environment, with 4 databases, of which 2 will require restoration. Full backup with MySQL Enterprise Backup:
mysqlbackup --user=root --socket=/tmp/mysql.sock \ --backup-dir=/home/mysql/voju5/backup/ \ --with-timestamp backup
Test preparation Create 4 different databases, where the structure & content is the same.
create database v5_1; use v5_1; create table `voju5` ( `ID` int(7) NOT NULL AUTO_INCREMENT, `Name` char(20) NOT NULL DEFAULT '‘, PRIMARY KEY (`ID`) ) ENGINE=InnoDB; create database v5_2; use v5_2; create table `voju5` (..); create database v5_3; use v5_3; create table …[Read more]
Here’s a look at using MySQL Enterprise Backup in a specific example:
Consider a Backup Policy – Full Backup of the environment. – Complemental Incremental backups & online BinLogs. And the Restore: – Logical Restore. – Online, Zero impact. – Partial, single database, group of tables. The Backup A working environment, with 4 databases, of which 2 will require restoration. Full backup with MySQL Enterprise Backup:
mysqlbackup --user=root --socket=/tmp/mysql.sock \ --backup-dir=/home/mysql/voju5/backup/ \ --with-timestamp backup
Test preparation Create 4 different databases, where the structure & content is the same.
create database v5_1; use v5_1; create table `voju5` ( `ID` int(7) NOT NULL AUTO_INCREMENT, `Name` char(20) NOT NULL DEFAULT '‘, PRIMARY KEY (`ID`) ) ENGINE=InnoDB; create database v5_2; use v5_2; create table `voju5` (..); create database v5_3; use v5_3; create table …[Read more]
MySQL 5.6 ships with a default config file that sets the SQL mode to NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES . Here is what happens if you try to insert NULL values into a table with NOT NULL columns:
mysql> create table safetyfirst(
-> id int primary key not null auto_increment,
-> country varchar(60) NOT NULL,
-> product varchar(60) NOT NULL );
Query OK, 0 rows affected (0.24 sec)
mysql> insert into safetyfirst(country) values('Sweden');
ERROR 1364 (HY000): Field 'product' doesn't have a default value
If someone tells you that MySQL 5.6 by default allows you to do this, ask them to prove it using the default settings we use for new installations and check their claim by asking them for the output of SHOW VARIABLES LIKE 'sql%'; .
We would like to use NO_ZERO_DATE, NO_ZERO_IN_DATE, …
[Read more]
The journey is old, but the milestones are new. It’s the same old
quest for excellence. Innovative questions are being asked and
answered in the blogs across the Oracle, SQL Server and MySQL
branches of technologies. This Log Buffer Edition relishes just
that. Let’s start this Log Buffer with the exquisite blog post by
Dana Pylayeva.
Oracle:
EMlight might not be as important now with Oracle 12c coming out and with Oracle’s EM Express, but EMlight is still pretty cool.
The maximum size for VARCHAR2, NVARCHAR and RAW columns has been extended to 32767 bytes with the Oracle …
[Read more]So, now I’ve got my Raspberry Pi’s tested, and running MySQL Cluster we’ll need some form of checking it’s up and running, as with the rest of our MySQL servers.
Monitoring via a Remote Agent
First issue, of course, is that, with my existing MEM console, I
have no need to re-install MEM, but rather want to deploy an
agent so that I can monitor the MySQL Cluster.
This poses it’s first problem, as there isn’t an ARM-ready agent
software available. Remember, it’s not a supported platform. So
what can we do? Setup a remote Enterprise Monitor agent, so that,
we can monitor the MySQL Cluster, albeit at the sacrifice of not
having the agent local on each Raspberry Pi, and hence, not be
able to capture the o.s. data.
Config change
So, on my Ubuntu server, I go to the agent install directory:
cd /opt/mysql/enterprise/agent/etc
vi mysql-mypi01-agent.ini
:1,$ …