Do you have a MySQL horror story to share?
I am looking for a few more unique examples to add to the final chapter of my upcoming book on MySQL Backup & Recovery. If you would like to share your fun experience, receive a mention and a free...
View ArticleZendcon Presentations
I will be at Zendcon next week with two presentations. What’s New with MySQL will be on Wednesday the 19th and The Care and Feeding of a MySQL Database on Thursday the 20th. Other MySQL centric session...
View ArticleWhat SYSDATE is it?
I was looking into the history about why SYSDATE() and NOW() behave differently in MySQL, and it looks like in 4.0 and 4.1 they used to be the same. But as of MySQL 5.0, SYSDATE() was changed to...
View ArticleTechRepublic Article: "Are tech certs valuable or not?"
I normally do not repost articles and make teeny tiny blog posts (I have noticed a few bloggers who do that, and it bothers me), but I found a short article on TechRepublic called Are tech certs...
View ArticleThe MySQL Source is Now Back on Launchpad!
Last Friday, I had posted that the MySQL Source Code on Launchpad had not been updated (or rather not accessible by Lauchpad) in nearly a month. I had actually started to file a bug report about this,...
View ArticleScaleBase at Percona Live in London – Come see how to transparently shard...
ScaleBase is happy to sponsor the Percona Live London MySQL Conference. If you plan to attend, you can catch our booth on the expo floor or attend Liran’s session – “The Benefits of Database Sharding”...
View ArticleInnoDB is red hot, MyISAM not
Everyone who started using MySQL before 5.5 started off with MyIsam. It was the default storage engine and you had to go out of your way to use anything else. It was a good looking database, rugged,...
View ArticleAloha – MySQL Dives into the Thread Pool
By now you have probably heard about the MySQL thread pool plugin and API, but you may not have fully processed the details. Here’s the quick summary: With the new thread pool plugin, there is now an...
View ArticleSame query, 3 databases, 3 different results
The SQL standard leaves a lot of room for different implementations. This is a little demonstration of one of such differences. SQLite 3.7.4sqlite> create table t1 (id serial, t time);sqlite>...
View ArticleMySQL Roadshow in Germany!
Want to learn more about the exciting news we recently shared at Oracle OpenWorld? Oracle is driving MySQL Innovation and there’s a lot to talk about! Join us at the following dates & locations:...
View ArticleMonitoring Related OpenWorld Talks
I gave two monitoring related talks at OpenWorld, thanks to all that came along! Both were monitoring related, the first an introduction to MySQL Enterprise Monitor, and the second a look at some of...
View ArticleMonty Program will be at Percona Live London
Its good to announce that Monty Program will have a presence at Percona Live London (October 24 & 25 2011), and we’re very excited about it. There will be two talks (no tutorials this time around):...
View ArticleSome MySQL projects I think are cool - Shard-Query
I've already described Justin Swanhart's Flexviews project as something I think is cool. Since then Justin appears to have been working more on Shard-Query which I also think is cool, perhaps even more...
View ArticleOurSQL Episode 60: Charming Data
This week we talk with Giuseppe Maxia (pronouncing his name correctly!) about new features in Tungsten replicator, and go over a lot of news. News: There was a lot of news this week! There were three...
View ArticleUh, uh… who caused that error? MySQL ?!
Support nightmare: a customer reports a random PHP MySQL error. As a support expert you have the strong feeling that it is down to some suspicious SQL sequence. How to proof? 25 lines of...
View ArticleExtract Regular Expression Match
Extract the first, longest pattern that matches a regular expression. You could add a parameter or write a similar function to get the shortest match instead (by starting with e = s and then...
View Articleexplode string
Explode a string around a delimiter without a loop. DROP PROCEDURE IF EXISTS explode; DELIMITER | CREATE PROCEDURE explode( pDelim VARCHAR(32), pStr TEXT) BEGIN DROP TABLE IF EXISTS temp_explode;...
View ArticleGreatest Common Denominator
Find the greatest common factor of two positive integers. CREATE FUNCTION gcd(x int, y int) RETURNS int DETERMINISTIC BEGIN DECLARE dividend int; DECLARE divisor int; DECLARE remainder int; SET...
View ArticlewhichLineTerminator
A stored function to guess which line terminator ('\r' or '\r\n') to use with LOAD DATA INFILE CREATE FUNCTION whichLineTerminator(fileName varchar(255)) RETURNS varchar(20) NOT DETERMINISTIC BEGIN...
View ArticleFIND_IN_WILD_SET and FIND_WILD_IN_SET
Two functions that work just like FIND_IN_SET, but support the % wildcard. SELECT FIND_IN_WILD_SET('true', 'this,returns,%true%'); SELECT FIND_IN_WILD_SET('true', 'this,returns,%false%'); SELECT...
View Article