THE WORLD DISCUSSES #PYTHIAN ON TWITTER. HAVE A QUESTION? USE OUR HASHTAG AND ASK AWAY.

Announcing: Monday night community dinner at Pedro’s during the O’Reilly MySQL Conference & Expo

Just the facts:
What: MySQL user community dinner
Who: me, you, and many MySQL community members
When: Monday, April 12th – Meet at 6:30 at the Hyatt Santa Clara or at 7 pm at the restaurant
Where: Pedro’s Restaurant and Cantina – 3935 Freedom Circle, Santa Clara, CA 95054
How: Comment on this blog post to add your name to the list of probable attendees

I was sad that last year there was no community dinner, and I missed the one the year before when Jonathan Schwartz and Rich Green made an appearance. This year I am determined not to miss it, and so I am calling for a community (pay-your-own-way) dinner on Monday, April 12th, at Pedro’s – a Mexican restaurant that has vegetarian and vegan options. I think Monday is a better time because many folks arrive Sunday evening, or even Monday morning (there are tutorials on Monday, but not everyone attends).
Read the rest of this entry . . .

MySQL Camp Schedule for Today

All the sessions for all the MySQL Camp days can be seen at, but here is today’s schedule in a nutshell (all sessions in Bayshore, on the mezzanine level of the hotel):

Read the rest of this entry . . .

Pythian Goes to the MySQL Conferences

I’m very proud to share with you a few things: Sheeri K. Cabral, Nick Westerlund, Paul Vallée, Peter Ling, and I (Augusto Bott) will be in Santa Clara, CA for the MySQL Conference and Expo, MySQL Camp, and the Percona Performance Conference, next week.

Nick and I will be presenting a session called Proactive Operational Measures on the Percona Conference, and another session called 8 Rules for Designing More Secure Applications at the MySQL Camp.

Sheeri will be presenting Understanding How MySQL Works by Understanding Metadata with Patrick Galbraith ; Agile Environments and DBAs with Laine Campbell; and Connect and Replicate Securely: How to Use MySQL with SSL.

Last but not least, Sheeri will be presenting a keynote on Wednesday: How to be a MySQL Community Superhero.

Please introduce yourself when you see us—we’d love to meet you!

Sunday April 19th Games Day

The Sunday before the MySQL User Conference is always full of trying to meet up with new or old friends, even if your flight lands after dinnertime. With that in mind, the very first event of the week is MySQL Camp’s “Games Day”.

From 12 noon until midnight on the Mezzanine of the Santa Clara Hyatt Hotel (adjoining the Santa Clara Convention Center), there will be an informal games day. The list of games that are definitely appearing are on the MySQL Forge at:

http://forge.mysql.com/wiki/MySQLConf2009SundayNotes

There is still one game I would like to see appear (Set), though there is plenty to keep folks busy — board games, a puzzle, decks of cards, even building toys. I’ll probably be knitting, so if you are the crafty sort and can bring your craft with you that’s encouraged too!

The goal of the Games Day is to be a place where you can drop by, meet folks, and have some fun. You do NOT need to be attending the conference! Just stop by when you have settled in. If you are looking for people to hang out with on Sunday, this is the place!

MySQL Conference and Camp Timings

As many of us know, the 5th annual MySQL Conference and Expo is happening April 20-23rd, 2009 in Santa Clara, California. The theme is Innovation Everywhere, and this year the conference organizers have taken an innovative page from OSCon and decided to host a free “camp” during the conference.

As far as I know, MySQL Camp is the only free, non-commercial programming occurring. We already have a fantastic lineup of speakers and last week I was surprised with another bounty — MySQL Camp has been extended to Thursday!

While you are making your travel and lodging arrangements, remember that on Sunday April 19th on the mezzanine of the conference hotel there will be a Games Day from 12 noon – 12 midnight. Stop by, play a game (bring your own if you want), or just watch. Find a dinner buddy, meet up with old friends or just start meeting new people before the conference starts on Monday. If you want to find me, I will be the one who’s trying to knit and play a game at the same time.

The speakers and MySQL Camp sessions are listed at Read the rest of this entry . . .

Issues Booking the MySQL 2009 Conference Hotel

So, a colleague ran into issues booking the Santa Clara Hyatt Regency Hotel—apparently there were no rooms with 2 double beds left for the MySQL 2009 Conference and Expo.

I could not imagine that the conference hotel would sell out so quickly!

The conference’s travel/hotel web page links directly to the online reservations page at http://santaclara.hyatt.com/groupbooking/clara2009orea.

I went there and did a little detective work. What I found was:

Read the rest of this entry . . .

Announcing MySQL Camp 2009

I am happy and pleased to announce the 2009 MySQL Camp. MySQL Camp is a free conference that gives the community a chance to participate without having to incur the large expense of the official conference. Community members old and new will be on hand to speak, answer questions, give advice and generally help out. It will be taking place at the same time and place as the MySQL Conference and Expo — (well, almost the same time).

The grand scale details:
Sunday, April 19 2009 – Wed. April 22 2009 (the MySQL conference goes until Thursday)

The Hyatt Regency Santa Clara
5101 Great America Parkway
Santa Clara, CA 95054
USA

Phone: (408) 200-1234
Fax: (408) 980-3990

MySQL Camp will be held in the Bayshore room (on the hotel mezzanine).

When you make your travel plans, keep in mind that MySQL Camp starts with an informal games day on Sunday (see below for details). Travel information can be found on the MySQL Conference and Expo site at http://en.oreilly.com/mysql2009/public/content/hotel.

Currently registration is free, there is no registration process, and we are working out breakfast and lunch arrangements. These details may change (there may be a nominal fee for food, getting a pass to the Expo hall may require free registration, etc), so stay tuned for further details!

Scheduled sessions for MySQL Camp can be seen at http://forge.mysql.com/wiki/MySQL_Conference_and_Expo_2009. There are many unscheduled sessions at this point, which are listed below.

On Sunday, April 19, 2009 from 12 noon until 12 midnight on the hotel mezzanine we will be having a game day. Play a game or just watch, and please bring your favorite game! People will drop in and out all day, so finding new and old friends to have dinner with will not be an issue. See the game day website to look at the list of games and add any you want to see or know you can bring.

On Monday, April 20, 2009 from 8:30 am – 12 noon a hackfest will take place. Mark Callaghan of Google will lead folks through choosing a feature to add to MySQL, teach the important details about how to hack MySQL, and then much hacking will happen!

From 1:30 pm – 5 pm we will feature an “Ask the Guru” session, where leading MySQL experts will be on hand to answer your questions. Ask something broad or specific, about theory or an actual use case. Want someone to look over a database schema? Optimize a query? Want to know why a certain error is occurring? Bring your questions, or just come to listen.

On Tuesday and Wednesday, April 21-22, 2009 from 10:50 am until 6 pm there will be 6 sessions per day, at the same time as the MySQL Conference sessions. Unfortunately, during the keynote time slots on both days MySQL Camp will be closed. However, MySQL Camp attendees will be able to visit the Expo hall on Wednesday, to visit booths, get swag, etc.

Note that the MySQL Camp sessions are not fully scheduled — there are plenty of sessions that are TBD, so that folks can sign up to speak on a topic at the conference. If you have an idea, feel free to e-mail awfief@gmail.com with your idea(s) and the time(s) you would like to present. This is not required; you can use the wiki to “sign up” for a time slot. However, I can help make sure that there are no similar conference talks at the same time, and help you refine your topic so it’s not too much for a 45-minute session.

Currently the following workshops are in the process of being scheduled for MySQL Camp:

Roland Bouman (XCDSQL Solutions / Strukton Rail, blog and blurb and Conference sessions) will be doing one workshop on “MySQL Plugins” and another on “MySQL UDF’s” (what they are, how to create them, etc).

Ronald Bradford (42SQL, website and blog and blurb and Conference sessions) will give a session on “Setting up MySQL on Amazon Web Services” (aka, AWS, using EC2). This session will take place at 3:05 pm on Tuesday, April 21st.

Leslie Hawthorn (Google, blog) will give a session on “Open Source for Newbies” (some time on Wed).

Christos Kalanzis (profile) will give a session on “How to run 2 instances of Mysql on the same machine using one set of binaries” at 3:05 pm on Wednesday.

Stewart Smith (Sun/MySQL, blog and Blurb and Conference sessions) will give a session on how different filesystems interact with MySQL.

Morgan Tocker (blog, Blurb and Conference sessions) – “Chasing Bottlenecks” — for beginner and intermediate DBAs. From Morgan: The best way to performance tune a system is to find out what your bottlenecks are, and attacking those first. In the first part of this session, I’ll be looking at some of the issues faced with common database workloads. From there, I’ll then be showing how you can get more information out of MySQL and your Operating System to find out about your workload.

Other topics that will happen, speakers TBD:
Drizzle
MySQL Cluster
Using bzr for source control

There will be a closing keynote at 5:15 pm on Wednesday, speaker TBD.

2008 MySQL Conference Videos, Notes, Slides and Photos!

All of the videos from the 2008 MySQL Conference have been processed and uploaded. Links to the videos, slides, notes, photos for each presentation are all on the mega-conference page at:
http://forge.mysql.com/wiki/MySQLConf2008Notes

This represents many hours of my own toil, but it also reflects plenty of people who have blogged, edited the wiki pages and speakers who wrote and gave tutorials and presentations. I am proud of everyone’s efforts to offer so many learning resources for free….

Enjoy! EDIT: I forgot to thank Jay, the folks at O’Reilly and all the speakers for giving me explicit permission to video and freely offer their presentations.

If you know of any video, audio, notes, slides, photos, etc that are not linked, please link them at the wiki page. If you can’t or won’t, please comment here and I will update the wiki for you.

Please note that there’s still some work to be done for a volunteer — Currently there is no one page where you can get all the videos, notes and slides for a presentation. The Forge Wiki page linked above is very close — it is missing many presentations and their corresponding slides.

O’Reilly has all of the slides speakers submitted at http://en.oreilly.com/mysql2008/public/schedule/presentations/. If someone or a few folks work on linking the slides on the O’Reilly site to the presentations on the Forge Wiki page at http://forge.mysql.com/wiki/MySQLConf2008Notes, then the Forge Wiki page will be comprehensive and folks can go to one page to get any and all information about a presentation at the conference.

Panel Video: Scaling MySQL — Up or Out?

Yesterday’s keynote panel on “Scaling MySQL — Up or Out?”

Directly download the 310MB wmv file (not if you are on the conference wireless please!), or watch it in your browser via streaming — simply click the “play” link on this page.

Keith Murphy managed to take painstaking notes with all the facts and figures. As well, Venu Anuganti presents a chart with the results as well as notes on the more detailed answers. Ronald Bradford has a brief summary of the 20 seconds of wisdom from each panelist.

MySQL Sandbox: Easily Using Multiple Database Servers in Isolation by Giuseppe Maxia

Here are my liveblogging notes from MySQL Sandbox: Easily Using Multiple Database Servers in Isolation by Giuseppe Maxia

Giuseppe has been a community member since 2001, and in the past year or so, a MySQL Employee.

He likes to give things away for free — he gave away T-shirts to the early arrivers to the workshop, and that’s why he’s giving away the sandbox as well. The sandbox is NOT an official MySQL product. It is released from GPL, available from http://sf.net/projects/mysql-sandbox.

Why the sandbox? To be able to set up 1 server in under 10 seconds. And to be able to set up multiple MySQL instances very quickly, and to use them quickly.

The sandbox untars in seconds, for installing alternative servers, not main instance, it creates a separated environment (datadir, port, sockets) — for groups of related or unrelated servers. Really good for testing out new server versions. WARNING: If you do not use separated environment (separate datadirs, ports and sockets), you can corrupt your data.

Doing it manually (the old, hard way):
unpack tarball, move to separate directory, create db tables, create .cnf with port, socket, datadir, launch mysqld_safe manually, launch mysql commandline script with options.

OK for doing it once, but a good DBA will automate this if they’re doing this a lot, to avoid mistakes — for example, while doing QA to test several versions.

So the easy automated way — MySQL Sandbox!
Just provide the version # and it creates $HOME/VER/data, VER, /tmp/mysql_VER.sock
Two examples:

Version 5.1.24
datadir = $HOME/5_1_24/data
port 5124
socket = /tmp/mysql_5124.sock
Version 6.0.5
$HOME/6_0_5/data
port 6005
socket = /tmp/mysql_6005.sock

(NOTE: you can have multiple instances of the same version)

Once installed:
In the case of a single sandbox — commands are start, stop and clear (removes all data and files in the datadir except for the mysql system db and tables), and use (instead of typing mysql -S /path/to/socket -u user -p you can use the use shell command and it will read what it needs from the my_sandbox.cnf file).

In the case of multiple sandbox, you can use the same commands as with a single instance, but there are commands that can affect all the instances. These are start_all, stop_all, clear_all, and multi_cmd. The first three have the obvious results; multi_cmd command executes command for all nodes — so you do not have to call it on each node. For example:
multi_cmd "select * from test.t1"

The easy way to install — download the package from Sourceforge. The sandbox doesn’t contain MySQL build, so you have to download a tarball or compile one yourself.

To install a single instance of MySQL 5.1.23:
express_install.pl /path/mysql-OS-5.1.23.tar.gz

Instead of using express_install.pl, to install 1 master and 2 slaves, run:
set_replication.pl /path/mysql-OS-5.1.23.tar.gz

To install multiple servers of the same version at the same time:
set_many.pl /path/mysql-OS-5.1.23.tar.gz
This installs 3 instances by default, but you can specify how many you want with options to set_many.pl.

For multiple servers of different versions, either:

Download the tarballs and run set_custom_many.pl /path/to/mysql-OS-5.0.51.tar.gz /path/to/mysql-OS-5.1.23.tar.gz /path/to/mysql-OS-6.0.5.tar.gz.
or:
Expand the tarballs in $HOME/opt/mysql and run set_custom_many.pl 5.0.51 5.1.23 6.0.5

Fine tuningexpress_install.pl /path/mysql-OS-5.1.23.tar.gz [option]… can customize port, datadir, enable federated tables, disable innodb, skip networking, and so on.

You can pick your default my.cnf “size” with the my_file option:
express_install.pl /path/mysql-OS-5.1.23.tar.gz --my_file=small
express_install.pl /path/mysql-OS-5.1.23.tar.gz --my_file=medium
express_install.pl /path/mysql-OS-5.1.23.tar.gz --my_file=large
express_install.pl /path/mysql-OS-5.1.23.tar.gz --my_file=huge
These will use the my_small.cnf, my_medium.cnf, my_large.cnf or my_huge.cnf sample config files bundled with MySQL.

To easily fine tune the 50+ options in the sandbox, you can run
express_install.pl /path/mysql-OS-5.1.23.tar.gz --interactive
to ask you the values for each value — if you want to skip the rest of the questions while you are in the interactive mode and continue the install using default values for the rest of the questions, you can type “default” at any prompt. You can also enter “back” at any prompt to go back to the previous question; or enter “quit” at any prompt to quit the interactive server without completing the sandbox installation.

The use shell command starts the mysql client, using the credentials in my_sandbox.cnf. By the way, the default username/password = msandbox/msandbox, default root password = msandbox

There are shortcuts for using mysqldump, mysqlbinlog and mysqladmin for each instance in a sandbox. These shortcuts start the mysql client using the credentials in my_sandbox.cnf.
my sqldump
my sqlbinlog
my sqladmin

Using a multi-instance sandbox
start_all starts the master, then slaves. stop_all stops the slaves and then the master. clear_all clears all the slaves and then the master.

multi_cmd was already mentioned to run the same command on all the instances. However, there are different commands to run a command on a single instance of a multi-instance sandbox. Instead of the use command, the shell commands to use the multiple instances are:

Replication sandbox
m to use the master
s1 to use the first slave
s2 to use the second slave

Multi-node sandbox
n1 to use the first node
n2 to use the second node
n3 to use the third node

Start NowWith Pythian - database design, management and emergency handling capabilities...

Live Updates

pythian: RT @sheeri: #confoo talk "Bending Queries to your Will with EXPLAIN" slides http://bit.ly/explainslides & handout
more



Testimonials

  • Serge Racine

    DBA, Brookfield Energy

    We are very satisfied by the service given to us by Andre and Shakir in support of our recent data quality and reorganization initiative.... more