Databases

MySQL Backup & Recovery – Part 1

I realized recently from observation that some smaller websites which use MySQL do not have a working backup and recovery strategy. Some may have a backup approach but it will not work in a recovery.

Read more

Today’s interesting MySQL Error Message

You have to love error messages some times. Today is was “ERROR 1289 (HY000): The ‘UNKNOWN’ feature is disabled;” For those interested. mysql> select version(); +-------------+ | version() | +-------------+ | 6.

Read more

SHOW STATUS WHERE

When you use SHOW STATUS can can restrict with the LIKE syntax, allowing for a subset of values. For example: mysql> SHOW GLOBAL STATUS LIKE 'Com%'; +--------------------------+-------+ | Variable_name | Value | +--------------------------+-------+ | Com_admin_commands | 0 | | Com_alter_db | 0 | | Com_alter_table | 0 | | Com_analyze | 0 | | Com_backup_table | 0 | | Com_begin | 0 | | Com_change_db | 0 | | Com_change_master | 0 | .

Read more

MySQL NY Meetup – Part 2 in our series

Last night at the MySQL NY Meetup we continued on from a very successful July presentation on “Practical Performance Tips & Tricks”. I must admit after speaking and standing all day for the MySQL DBA Bootcamp for the Oracle DBA it was a stretch, and we didn’t cover all material as expected, but the evening was still very productive to everybody.

Read more

Learning MySQL as an Oracle DBA

Updated I have an entire section now devoted to various MySQL for the Oracle DBA Resources . You will find additional information here. This week I presented two one day free seminars, “MySQL DBA Bootcamp for the Oracle DBA ” in New York and San Francisco.

Read more

Let’s improve MySQL security

We have all done it in the past, and probably most people that read this (will admit| or lie) to still doing it, but everybody must start making an effort to improving MySQL security in the usage on your MySQL Installation, including just on your laptop, and in presentations that people read.

Read more

5.1.20 Gotcha – The MySQL Error Log

While using the latest MySQL 5.1.20 yesterday I came across another situation that was not expected as with previous editions of MySQL. The background is experimenting with DRBD. When I configured MySQL to startup with a /etc/my.

Read more

MySQL 5.1.20 Installation

MySQL recently released 5.1.20 beta . I just ran into another gotcha, which prompted me to post this draft I’ve had for a while. rbradford@newyork:/opt/mysql51$ scripts/mysql_install_db Installing MySQL system tables... 070709 23:24:08 [Note] Plugin 'InnoDB' disabled by command line option OK Filling help tables.

Read more

OS Freedom

I’m at some internal MySQL training today at our US HQ. In a room of 11 people we are all using our laptops for access to additional machines. The beauty of this is we have Linux (Ubuntu 5.

Read more

MySQL NY Meetup Presentation

Tonight I spoke at the NY MySQL Meetup . The topic “Practical Performance Tips & Tricks” was a full packed 1 hour session, with 4 x 15 minute sections on Beginner, Intermediate, Advanced and MySQL Proxy.

Read more

MySQL Proxy. Playing with the tutorials

I was playing with the 5 sample tutorial Lua scripts available here with the MySQL Proxy , but I was doing something a little inefficiently. I started mysqld, then I started the MySQL Proxy with the lua script, then connected to MySQL via the proxy.

Read more

What’s your disk I/O thoughtput?

MySQL uses disk. Ok, so everybody knew that. MySQL uses disk in two primary ways. Random I/O (Reading & Writing Data/Index blocks) Sequential I/O (Binary Log, InnoDB Redo Log) Historically it’s been best practice to separate these onto different spindles, and also separating the OS and tmp space onto a third spindle.

Read more

Top 5 Best Practices for MySQL

We had the Top 5 wishes for MySQL started by Jay recently. So in true chain letter fashion I’m starting a new one this week. “The top 5 Best Practices for MySQL”.

Read more

Got MySQL Proxy yet!

If you haven’t got MySQL Proxy yet, then stop and get it now. Jan announced the release a few days ago of this new product offering from MySQL . I first heard about MySQL Proxy at the recent MySQL Conference 2007 and actually used it a few weeks later to help address slow running queries during benchmarking with a granularity of milliseconds — Wow.

Read more