LWN.net Logo

MySQL 5.0 Preview

January 14, 2004

This article was contributed by Joe 'Zonker' Brockmeier.

Since the announcement went out on December 24th, many may have missed the release of MySQL 5.0 while they were on holiday. The 5.0 release is the next stage in MySQL evolution, and includes a few "enterprise" features that may be of interest. The release is considered alpha-quality, and is mainly targeted at developers. However the announcement does note that "all old features should be reasonable [sic] stable."

The most interesting feature for many will be stored procedures. A stored procedure is a statement that is stored in the database server. This means that a series of SQL statements need only be issued once, and then clients can refer to that stored procedure rather than re-issuing the commands each time they need to be executed. This feature is already included in the MaxDB product from MySQL (formerly SAP DB) and other open source databases like PostgreSQL.

This release also includes server-side cursor support, new functions, and a new binary log format. According to the MySQL documentation, it should be possible to upgrade from a current version of MySQL to 5.0 to take advantage of stored procedures with existing databases. The MySQL website has binaries available for a number of platforms, including tarballs with pre-compiled binaries for Linux on x86, Alpha, S/390, AMD's X86-64, IA-64, and RPMs for x86, IA64 and X86-64. There are also pre-compiled binaries for FreeBSD, OpenBSD, MacOS X and a number of other *nix platforms, and Windows. Source is also available, though MySQL AB recommends using the provided binaries.

If history is any guide, it will be some time before 5.0 is declared production-ready. The 4.0.0 alpha release was made available October 16, 2001, the 4.0.x release declared production-ready was the 4.0.12 release about a year and half later on March 18, 2003.


(Log in to post comments)

MySQL 5.0 Preview: still no sequences

Posted Jan 15, 2004 11:33 UTC (Thu) by melo@simplicidade.org (guest, #4380) [Link]

I find it amusing that MySQL tries to add enterprise features, but fails completely to ease the
porting of Oracle SQL to MySQL.

I have a large application written for Oracle. The SQL is fairly standart and I probably could
use it with MySQL. The only exception is Sequences.

I'm amazed that a relativelly simple thing as sequences haven't maded into MySQL.

Oh well,

MySQL 5.0 Preview: still no sequences

Posted Jan 15, 2004 18:37 UTC (Thu) by freethinker (guest, #4397) [Link]

Did you email the MySQL team to ask for them?

MySQL 5.0 Preview: still no sequences

Posted Jan 16, 2004 0:35 UTC (Fri) by melo@simplicidade.org (guest, #4380) [Link]

Two years ago.

MySQL 5.0 Preview: still no sequences

Posted Jan 16, 2004 21:30 UTC (Fri) by Dom2 (guest, #458) [Link]

Does it have to be MySQL? PostgreSQL is a better match for Oracle features. Sequences in particular are there. And PLPGSQL is very similiar to PL/SQL.

-Dom

MySQL 5.0 Preview: still no sequences

Posted Jan 22, 2004 16:08 UTC (Thu) by leandro (guest, #1460) [Link]

> fails completely to ease the porting of Oracle SQL to MySQL.

One can have either standards conformance, or Oracle compatibility. Not both. Even data types are different.

I doubt Oracle migration is a market for MySQL. Witness they appointed SAPdb under the MaxDB moniker as their upgrade path.

> I have a large application written for Oracle. The SQL is fairly standart

No, it is not. Oracle is in serious deviation from the ISO SQL standard.

MySQL 5.0 Preview: still no sequences

Posted Feb 3, 2004 10:49 UTC (Tue) by shane (subscriber, #3335) [Link]

Oracle is in serious deviation from the ISO SQL standard.

This is true, but I give them a little credit since they were the first platform-independent SQL server (as in, you didn't have to buy vendor-specific hardware with it). ;)

MySQL 5.0 Preview: still no sequences

Posted Feb 9, 2004 20:45 UTC (Mon) by leandro (guest, #1460) [Link]

> they were the first platform-independent SQL server

In fact they were the first, period. Larry Elison launched Oracle from IBM's System R papers even before IBM itself had a product.

This 'merit' is more of a function of them not being hardware vendors, just like Microsoft in the OS field.

Copyright © 2004, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds