Archive

Archive for the ‘Live !’ Category

MySQL Conference and Expo 2013 feelings (#perconalive)

I wasn’t at the MySQL Conference this year but it was very nice to follow this event from Paris.
Of course I didn’t feel the general atmosphere by visiting booths or met fabulous people.
But it was a great opportunity to offer you a live post about the conference with an external point of view.

Twitter, RSS feeds (yes Google, I still use RSS), Planet MySQL and infiltrators were my best friends during this crazy week.

I would like to summarize the major announcements and events occurs during this tenth edition.
 

Oracle at Percona Live!

 
Yes, Oracle was at Percona Live 2013 and it was for the best.
I invite you to watch this keynote from Tomas Ulin about Oracle’s Investment in MySQL, read this post from Sheeri and this one from Mikael Ronstrom.
Oracle promises a future for MySQL and I’m sure many of you were expecting this signal.

MySQL 5.7 and MySQL Applier for Hadoop were also announced during the conference.
MySQL Applier reveals a promising use case for the binary log API.
You can read this first look of MySQL 5.7 by Stewart Smith.
 

TokuDB and Tungsten Replicator become open source

 
TokuDB is now open source via a community edition! (An enterprise edition remains available)
The MySQL, MariaDB or Percona users can now freely use TokuDB.
And this engine deserves your attention, for more informations : http://www.tokutek.com/2013/04/announcing-tokudb-v7-open-source-and-more/

Tungsten Replicator is now 100% open source. You no longer have excuses to not use this tool.
Continuent was corporate contributor of the year through the MySQL community awards 2013.
 

SkySQL + MariaDB = Love (the community)

 
The next generation of open source database company was born, SkySQL merges with MariaDB Developers. This merge doesn’t affect the MariaDB Foundation, MariaDB will survive!
In the same time Wikipedia adopts MariaDB and shares his experience with the community.

Honestly, I’ve never really understand why SkySQL and MariaDB was two separate companies because the SkySQL’s message was confused.
From now, you can’t be surprised that SkySQL highlights MariaDB and it’s a good point because MariaDB is a great product.
This may affect the independence of SkySQL on MariaDB competitors but I’m convinced that people behind SkySQL could surprise you.

And the new SkySQL/MariaDB becomes a strong alternative to Oracle.
The ping pong between Oracle and MariaDB on their respective resources affected to MySQL/MariaDB development is also quite funny and interesting.

ishot-63BIjZ7CjCQAEt6pb.jpg-large

However, I think that MariaDB should stop criticizing Oracle and should focus and communicate more on its own features.
This kind of message is a perfect exemple of counterproductive communication :
(I know this comes from zdnet but reflects what MariaDB proclaims usually)

MariaDB deserves better, but this is only my opinion.
 

In the meantime…

 
.. you can pin on a map where you come from.
HP, Amazon, Continuent and Percona talks about the impact of MySQL and its future in the cloud.
- Brian Aker (HPCloud) asked Simone Brunozzi (AWS) : what is the engine of DynamoDB?
- Simone : we don’t disclose
- Brian : it’s MySQL!

Peter Zaitsev evokes the JaSON generation of developers.

LeapMotion announce a new shipping date, you will have to wait another 3 months.

Incredible small data stats from Facebook, again…

“the best answer of 99.9% database optimization questions is ‘it depends’”, really?

Some amazing pictures of a rather unusual booth appear on my twitter timeline.
And this post from Sheeri caught my attention, the comments too.
I believe that if someone is uncomfortable in a conference such as perconalive, there is a problem… (even if this affects only one person)
 

Slides and what’s next?

 
Slides from the conference are now available.
You can find these slides and much more on [Plus].
Next steps will be MySQL Connect 2013 and Percona Live London 2013 (hope to see you there)

Continue to follow me on Twitter or Facebook for the latest news about the MySQL Community.

And don’t forget to have fun…

Categories: Live !

Percona Live : MySQL Conference and Expo 2013 (Slides, tweets and more…)

April 22nd, 2013 No comments

on_air-istock_000005544549large_-_cropped

MySQL Conference & Expo

 

2013

 

LIVE BLOG!

 

This year again, the MySQL Conference and Expo, hosted by Percona, smells like a wonderful event.
I haven’t the chance to attend this event but I would like to share with you the soul of this one.
I’ll try to share latest news, tweets and slides from the event in this live post.

Stay tuned and come back!

Breaking news!

highlighted tweets

 

Slides

Categories: Live !

An incomplete list of what your developers would like to know before migrating to MySQL 5.5

April 21st, 2013 No comments

A few years ago, I asked to check with me in the long (very long) change history of MySQL 5.5 documentation what are the changes in relation to the SQL syntax.
Chris Calender helped me to retrieve a list of the main changes, thanks again Chris.

Today, I would like to share this list with you.
It is simply a curated transcript of what you might find in the documentation but I’m sure it can help some of you.
 

INTO clause in nested SELECT statements

 
Previously, the parser accepted an INTO clause in nested SELECT statements, which is invalid because such statements must return their results to the outer context. As of MySQL 5.5.3, this syntax is no longer permitted and statements that use it must be changed.
 

Table aliases in DELETE statements

 
In MySQL 5.5.3, several changes were made to alias resolution in multiple-table DELETE statements so that it is no longer possible to have inconsistent or ambiguous table aliases.

In MySQL 5.1.23, alias declarations outside the table_references part of the statement were disallowed for the USING variant of multiple-table DELETE syntax, to reduce the possibility of ambiguous aliases that could lead to ambiguous statements that have unexpected results such as deleting rows from the wrong table.

As of MySQL 5.5.3, alias declarations outside table_references are disallowed for all multiple-table DELETE statements. Alias declarations are permitted only in the table_references part.

Incorrect:

  • DELETE FROM t1 AS a2 USING t1 AS a1 INNER JOIN t2 AS a2;
  • DELETE t1 AS a2 FROM t1 AS a1 INNER JOIN t2 AS a2;

Correct:

  • DELETE FROM t1 USING t1 AS a1 INNER JOIN t2 AS a2;
  • DELETE t1 FROM t1 AS a1 INNER JOIN t2 AS a2;

Previously, for alias references in the list of tables from which to delete rows in a multiple-table delete, the default database is used unless one is specified explicitly. For example, if the default database is db1, the following statement does not work because the unqualified alias reference a2 is interpreted as having a database of db1:

  • DELETE a1, a2 FROM db1.t1 AS a1 INNER JOIN db2.t2 AS a2 WHERE a1.id=a2.id;

To correctly match an alias that refers to a table outside the default database, you must explicitly qualify the reference with the name of the proper database:

  • DELETE a1, db2.a2 FROM db1.t1 AS a1 INNER JOIN db2.t2 AS a2 WHERE a1.id=a2.id;

As of MySQL 5.5.3, alias resolution does not require qualification and alias references should not be qualified with the database name. Qualified names are interpreted as referring to tables, not aliases.

Statements containing alias constructs that are no longer permitted must be rewritten.
 

New reserved words

 
There are several new reserved words in 5.5 what were not reserved in 5.1.
So if you are using any of these as table names, etc., then you’ll need to surround them with backticks (`)

  •  GENERAL
  • IGNORE_SERVER_IDS
  • MASTER_HEARTBEAT_PERIOD
  • MAXVALUE
  • RESIGNAL
  • SIGNAL
  • SLOW

 

FLUSH TABLES and LOCK TABLES

 
As of MySQL 5.5.3, due to work done for Bug #989, FLUSH TABLES is not permitted when there is an active LOCK TABLES … READ.
To provide a workaround for this restriction, FLUSH TABLES has a new variant, FLUSH TABLES tbl_list WITH READ LOCK, that enables tables to be flushed and locked in a single operation.
As a result of this change, applications that previously used this statement sequence to lock and flush tables will fail:

  • LOCK TABLES tbl_list READ;
  • FLUSH TABLES tbl_list;

Such applications should now use this statement instead:

  •  FLUSH TABLES tbl_list WITH READ LOCK;

 

Fast truncation

 
As of MySQL 5.5.7, InnoDB always uses the fast truncation technique, equivalent to DROP TABLE and CREATE TABLE.
It no longer performs a row-by-row delete for tables with parent-child foreign key relationships.
TRUNCATE TABLE returns an error for such tables.
Modify your SQL to issue DELETE FROM table_name for such tables instead.
 

TIMESTAMP display width

 
In very old versions of MySQL (prior to 4.1), the TIMESTAMP data type supported a display width, which was silently ignored beginning with MySQL 4.1.
This is deprecated in MySQL 5.1, and removed altogether in MySQL 5.5.

The display width is no longer supporter for TIMESTAMP data type in MySQL 5.5
 

Aliases and wildcards

 
Aliases for wildcards (as in SELECT t.* AS 'alias' FROM t) are no longer accepted and result in an error.
Previously, such aliases were ignored silently. (Bug #27249)
 

Scientific notation

 
In addition to these official parts of the MySQL release notes, Sheeri write a post about floats, doubles ans scientific notation between MySQL 5.1 and MySQL 5.5 :

http://blog.mozilla.org/it/2013/01/17/mysql-5-1-vs-mysql-5-5-floats-doubles-and-scientific-notation/

 

This list is incomplete because I’m sure you have your own tips to share.

Source : http://dev.mysql.com/doc/relnotes/mysql/5.5/en/

Categories: Admin, Live !, Tips

An incomplete guide to linux system configuration for MySQL

April 11th, 2013 3 comments

As a former Oracle DBA, I know how the system and the database are linked.
The first one who told me that the installation of Oracle has never been a problem is a liar!
Yes, your database and your system are the best of friends, you must respect that.

I’d make a list of linux system settings to configure a MySQL databases server and share my sources with you.
In return, I would like you to share your sources with the community by publishing your tips in the comments.

swappiness

 

  • This parameter allows to specify how the kernel must manage the memory swap
  • Default value : 60 (Range 0 to 100)
  • Value to set : 0 (it will swap only to avoid an out of memory condition)
  • How to set a new non-persistent value :  sysctl -w vm.swappiness=0
  • How to store a new persistent value : add vm.swappiness=0 in the /etc/sysctl.conf file

 

I/O Scheduler

 

  • The I/O scheduler manages and optimizes priorities of I/O requests
  • Default value : device driver dependent
  • Range of values : noop / deadline / anticipatory / cfq
  • Value to set : noop
  • How to set a new persistent value : echo noop >/sys/block/[DEVICE]/queue/scheduler

 

Mounting options

 

  • These options are set during the filesystem mount process
  • Default value : rw
  • Value to set ext4 : rw,nosuid,noatime,data=ordered
  • Value to set xfs : nobarrier
  • How to store a new persistent value : add these options in the /etc/fstab file

 

I/O queue size

 

  • This queue stores incoming I/O requests
  • Default value : 128 (No range)
  • Value to set : Hey Dude, you have to test, no magic value for this parameter
  • How to set a new persistent value :  echo 100000 > /sys/block/[DEVICE]/queue/nr_requests

 

Dirty ratio

 

  • These settings are used to tune the VM subsystem about dirty data
  • Default value : 10 and 20
  • Value to set : Again, you should test. You can try 5 and 60 to begin
  • How to set a new non-persistent value :
    • echo 5 > /proc/sys/vm/dirty_background_ratio
    • echo 60 > /proc/sys/vm/dirty_ratio
  • How to store a new persistent value : Add these parameters to the /etc/sysctl.conf file
    • vm.dirty_background_ratio = 5
    • vm.dirty_ratio = 60

NUMA Architecture

 

Note that all of these tips focus on optimizing I/O.
The first three tips can be considered as really interesting.
I recommend you to read the sources before any change.

Remember to test every changes before to put them in production.

Now, let us know how you setup your system for MySQL.

Sources :
http://en.wikipedia.org/wiki/Swappiness
http://yoshinorimatsunobu.blogspot.fr/2009/04/linux-io-scheduler-queue-size-and.html
http://rackerhacker.com/2008/08/07/reduce-disk-io-for-small-reads-using-memory
http://assets.en.oreilly.com/1/event/21/Mastering%20the%20Art%20of%20Indexing%20Presentation.pdf
http://cdn.oreillystatic.com/en/assets/1/event/56/Linux%20and%20H_W%20optimizations%20for%20MySQL%20Presentation.pdf
http://www.mysqlperformanceblog.com/2013/01/03/is-there-a-room-for-more-mysql-io-optimization/
http://www.percona.com/files/presentations/UC2011-MySQL-and-SSD-Usage-Patterns.pdf
http://blog.jcole.us/2010/09/28/mysql-swap-insanity-and-the-numa-architecture/
http://blog.jcole.us/2012/04/16/a-brief-update-on-numa-and-mysql/

Categories: Admin, Live !

FOSDEM 2013, another nice open source event in Europe!

January 23rd, 2013 No comments
FOSDEM is a free event that offers open source communities a place to meet, 
share ideas and collaborate.
It is renowned for being highly developer-oriented 
and brings together 5000+ geeks from all over the world.

 
This year again, be sure that FOSDEM will be the place to be in February!

Do you have any doubts? Really ? Dude, repeat after me :

  1. Free event
  2. During a week-end
  3. Beer
  4. 5000+ open source geeks
  5. Beer
  6. MySQL and Friends devroom
  7. NoSQL devroom
  8. No registration needed (open source man!)

Ok, that sounds good?

Well, here are the informations to attend this terrific event :

  • How to register? : Are you kidding me?
  • When : 2 & 3 February 2013 (Hurry up guys!)
  • Where : Brussels (beers!!!)
  • Website : https://fosdem.org/2013/

Max and I will be at FOSDEM for the first time this year.
Hope to see you there

PS1 : If you didn’t vote for the [Plus] Readers Choice 2012 yet, do it now!
PS2 : And if you want to stay on the move, ask for these cute stickers, your laptop will love them!

Categories: Live !, MyXplain

PLUK 2012 slides are available on [Plus]

December 10th, 2012 No comments

Percona Live London 2012 was again a great event.
You can find some of the slides on [Plus], enjoy! :

If you would like to add your slides, post a comment with the link.

Categories: Live !

Upcoming MySQL events that you should not miss !

July 26th, 2012 No comments

There will be at least 3 MySQL events that you shouldn’t miss by the end of the year :

I suggest you to register right now to gain a super saver registration discounts.
And it is also time to book your hotel/flight to take advantage of cheaper rates.

I don’t want to (re)write a detailled post about these great conferences, see my last post about Percona Live London 2011 : http://www.mysqlplus.net/2011/09/22/percona-live/

However, let me introduce my favorite sessions (those that appear to be relevant and interesting) :

These choices are my own and are often difficult, give us yours !
I’ll be at Percona Live London and I look forward to meeting you.

Categories: Live !

Slides from MySQL Conference 2012 (Aka Percona Live)

April 10th, 2012 4 comments

Hi everybody,

I’m sure you’re all listening about what is happening at the MySQL annual conference (no ? really ?)
So, you can find bellow all the slides from the MySQL Conference & Expo 2012 :


Source : https://www.box.com/perconalive2012

Find some videos  : http://www.percona.tv/2012/04

Categories: Live !

MySQL[plus] awards 2011 final results ! (and a story)

February 2nd, 2012 1 comment

Let me tell you a very touching story about these awards.
As I said in the comments : Sometimes we think about something and the next minute we did it…
And it exactly what happened, I took my inspiration from the TUAW Best Of 2011 (Yes, I’m also an Apple fan boy, sorry :-)), and a few minutes later, MySQL[plus] awards 2011 were live !

I thought I could have 50 voters, perhaps 100 voters, in my wildest dreams…

But more than 300 voters and more than 4000 views later, the reality is there : You are amazing !

But, no, it wasn’t perfect !

Shlomi said “You’ve got yourself into a bottomless pit!”, and it’s true.
Ronald said “Your options leave a lot out”, and it’s true.

But I tried to offer this overview of the most used tools with spontaneity, bravery and honesty.
And in my heart, I know you enjoyed it (no ?)

It now remains 11 months to prepare the coming awards…

So, final results are available : http://www.mysqlplus.net/2012/01/05/vote-mysqlplus-community-awards-2011

Remember that the real winner is the community !

PS : When I said “Answer with your heart first”, this meant that there was no place for cheaters…

Categories: Live !

Vote for MySQL[plus] awards 2011 !

January 5th, 2012 26 comments

First of all, I wish you a happy new year.
Many things happened last year, it was really exciting to be involved in the MySQL ecosystem.
I hope this enthusiasm will be increased this year, up to you !

To start the year, I propose the MySQL[plus] Awards 2011
It will only take 5 minutes to fill out these polls.
Answer with your heart first and then with your experience with some of these tools or services.

Polls will be closed January 31, so, vote now !
For “other” answers, please,  let me a comment with details.

Don’t hesitate to submit proposal for tools or services in the comments.
And, please, share these polls !

 

Best MySQL GUI client Tool

  • SQLyog (47%, 85 Votes)
  • MySQL Workbench (20%, 36 Votes)
  • HeidiSQL (8%, 14 Votes)
  • Navicat for MySQL (7%, 12 Votes)
  • MySQL Administrator / Query browser (6%, 10 Votes)
  • Other (5%, 9 Votes)
  • phpMyAdmin (4%, 8 Votes)
  • SQLWave (1%, 1 Votes)
  • SIDU DB Web GUI (1%, 1 Votes)
  • EMS SQL Manager for MySQL (1%, 1 Votes)
  • Sequel Pro (1%, 1 Votes)
  • sqldeveloper (1%, 1 Votes)
  • dbForge Studio (1%, 1 Votes)
  • MyQuery (1%, 1 Votes)
  • DBTools Manager (0%, 0 Votes)
  • SQL Maestro MySQL Tools (0%, 0 Votes)
  • Toad for MySQL (0%, 0 Votes)

Total Voters: 181

Loading ... Loading ...

 

Best MySQL Monitoring Tool

  • MONyog (35%, 135 Votes)
  • MySQL Enterprise Monitor (29%, 113 Votes)
  • Nagios (13%, 52 Votes)
  • Cacti (10%, 38 Votes)
  • Other (6%, 25 Votes)
  • Zabbix (5%, 19 Votes)
  • Ganglia (2%, 4 Votes)

Total Voters: 386

Loading ... Loading ...

 

Best MySQL Backup Tool (two possible answers)

  • Xtrabackup (46%, 151 Votes)
  • mysqldump (29%, 94 Votes)
  • MySQL Enterprise Backup (28%, 91 Votes)
  • mydumper (9%, 30 Votes)
  • LVM Backup (FS snapshot) (6%, 19 Votes)
  • mylvmbackup (5%, 17 Votes)
  • ZRM Enterprise (5%, 15 Votes)
  • ZRM Community (5%, 15 Votes)
  • Other (5%, 15 Votes)
  • Cold backup (2%, 6 Votes)
  • r1soft CDP for MySQL (1%, 2 Votes)

Total Voters: 329

Loading ... Loading ...

 

Best MySQL Replication/Cluster Tools (two possible answers)

  • MySQL Replication (37%, 183 Votes)
  • Tungsten Replicator (21%, 105 Votes)
  • MySQL NDB Cluster (17%, 83 Votes)
  • ShoonerSQL (16%, 76 Votes)
  • Galera Replication (13%, 66 Votes)
  • DRBD (9%, 45 Votes)
  • Other (2%, 11 Votes)
  • ScaleDB (2%, 9 Votes)

Total Voters: 490

Loading ... Loading ...

 

Best MySQL community Tool

  • Percona toolkit (37%, 117 Votes)
  • MySQL Sandbox (28%, 89 Votes)
  • MHA for MySQL (mysql-master-ha) (14%, 45 Votes)
  • Other (6%, 18 Votes)
  • Xtrabackup Manager (5%, 15 Votes)
  • mysqltuner (3%, 11 Votes)
  • Innotop (3%, 10 Votes)
  • mycheckpoint (2%, 5 Votes)
  • openark kit (1%, 3 Votes)
  • MMM (1%, 3 Votes)
  • Common schema (0%, 2 Votes)

Total Voters: 318

Loading ... Loading ...

 

Best MySQL Support Service

  • SkySQL (38%, 130 Votes)
  • Percona (28%, 96 Votes)
  • Oracle (26%, 90 Votes)
  • Other (4%, 15 Votes)
  • FromDual (3%, 9 Votes)
  • Pythian (1%, 4 Votes)
  • Blue Gecko (0%, 1 Votes)
  • PalominoDB (0%, 0 Votes)

Total Voters: 345

Loading ... Loading ...

 

Best MySQL based distribution

  • Oracle MySQL (36%, 122 Votes)
  • MariaDB (33%, 114 Votes)
  • Percona server (27%, 91 Votes)
  • Drizzle (3%, 11 Votes)
  • Other (1%, 4 Votes)
  • TokuDB (0%, 0 Votes)
  • InfiniDB (0%, 0 Votes)

Total Voters: 342

Loading ... Loading ...

 

Best NoSQL solution (two possible answers)

  • Memcached (46%, 120 Votes)
  • Hadoop / HBase (28%, 72 Votes)
  • MongoDB (25%, 65 Votes)
  • Cassandra (10%, 27 Votes)
  • Other (10%, 27 Votes)
  • HandlerSocket (9%, 24 Votes)
  • CouchDB (6%, 16 Votes)
  • Redis (5%, 13 Votes)
  • Tarantool (4%, 11 Votes)
  • Riak (3%, 7 Votes)
  • Amazon SimpleDB (2%, 5 Votes)
  • Tokyo Cabinet / Tyrant (1%, 3 Votes)

Total Voters: 259

Loading ... Loading ...

 

Best MySQL 5.6 improvement

  • Performances (27%, 77 Votes)
  • Replication (26%, 74 Votes)
  • Fulltext (16%, 47 Votes)
  • memcached API (13%, 36 Votes)
  • Backup/Restore buffer pool (8%, 22 Votes)
  • Partitioning (6%, 16 Votes)
  • Other (4%, 11 Votes)

Total Voters: 285

Loading ... Loading ...

 

Happy 2012 !
Cédric

This article is obviously not sponsored !
(MySQL is a trademark of Oracle Corporation and/or its affiliates)

Categories: Admin, Live !