(I am writing this as a note to myself, more then as a note
to
others...)
The MySQL Engine API supports a concept of "discovery".
Discovery
allows an engine to say "yes this table exists, and here is
the
definition".
To implement this, you need to create the following function in
your
engine:
int archive_discover(handlerton *hton, THD* thd, const char
*db,
const char *name,
const void** frmblob,
uint* frmlen);
This is a function for the handlerton, and is not a method of
the
handler class.
Table discovery flow of execution is simple. Whenever a table
is
opened, MySQL looks for a corresponding table or view definition.
If
neither exists then the discovery functions are called for each
of
the engines that have registered a discovery function. In
the
discovery an engine can return …
Introduction
It's 2 AM Saturday and the phone rings. You thought you were
going to have a long holiday weekend. You've been informed by the
NOC that there's no connection to the database server, and could
you come down to see what's wrong with it. Remote access won't
save you, there's no response at all from the server. We've all
been there during our careers, and there's technology freely
available to save your sanity, and allow you to take that long
holiday weekend. Creating a MySQL high availability cluster using
Distributed Replicated Block Device, DRBD and Heartbeat will save
you from heading back to work at 2 AM.
During MySQL
Conference 2007, I attended Storage Replication with DRBD: The Next Big Thing
in Cluster Storage Management, which was very informative, but it
left …
Matt has a good post on the recent push to make people use PHP 5. He makes several good points, and I’m just jumping on the same bandwagon.. forcing a version # change, just because the engine works better is pointless. Going into the political arena a little bit, making people switch to PHP 5 is like changing CAFE standards, it won’t do a thing for the billions of cars already out there, and it won’t change the basic dependence on crude oil. It’s just a lot of hot air to make the choir sing to themselves, again.
I’ve been running PHP 5 on my systems for the past 3 years, without any issues. Even some of the code I wrote in PHP 4, works flawlessly (with the same bugs) in PHP 5 as PHP4. Which brings me to the main point.. End Users don’t care or want to know what the engine is doing . If the application does something they want, they’ll use it. If …
[Read more]Yes, even though MySQL 5.1 is in beta (soon to be RC), our surveys show that folks are using 5.1 already for production use.
If you’re using 5.1 for production apps, I’d appreciate it if you could drop me a line and let me know what motivated you to move up to 5.1. What 5.1 features made you take the plunge? As we’re in the midst of planning features for the upcoming server versions, knowing what you like about 5.1 and what improvements you’d like to see over what we did in 5.1 would be a great help. Shoot me a note at rschumacher@mysql.com.
Thanks!
OSCON, the Open Source Convention organized by O'Reilly is coming up next week (July 23rd-27th, Portland, OR).
MySQL AB will be present in the exhibition area and we will also be giving some talks:
- Brian Aker: Extending MySQL, Swiss Army Knife Approach
- Kaj Arnö: The MySQL Architecture of Participation
- Mårten Mickos: The Path to IPO …
I’m not quite sure how to feel about this but I feel today has been more productive than all of last week. hrrm..
(Filling 1 through 41 is an exercise left to the reader… I just like the number 42)
handler::info can be called on a handler that has never had ::exeternal_lock called. So if you rely on a call to handler::external_lock to set up something (e.g. a pointer to a transaction object), you may explode in a heap.
See: Bug#26793
A
Version 1.4.3 of the innotop MySQL and InnoDB monitor is out. This release fixes some minor bugs and feature annoyances, and at last innotop has thorough documentation, available online!
MySQL K.K., the Japanese arm of the open source database developer MySQL AB, has announced three new initiatives aimed at strengthening its expansion in the Japanese market: New Tokyo offices; a Japanese-language beta version of the MySQL 5.1 User's Manual; and the addition of a new corporate partner.