• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • What a Lifelong DB2 Fanatic Sees in MySQL

    February 3, 2010 Susan Gantner

    In my mind, you can’t beat our database. It’s not only integrated into the operating system, it’s also incredibly flexible. You can use SQL to create and access data just like databases on other systems but you can also use the native DDS, RPG, COBOL and other languages with the same data. No other database out there–not even other members of the DB2 family–has that kind of flexibility. It is currently known as DB2 for i, but I think most of us just think of it as “the database,” which is appropriate because, unlike just about every other system out there, our platform only has one serious option for a database.

    At least that was true until a couple of years ago when MySQL AB announced they were working with IBM to bring their MySQL database to the platform. I thought at the time that it was a pretty silly idea. Why would anyone on this platform even consider using any other database than DB2? After awhile, it occurred to me that a huge selection of open source (free or nearly free) PHP and/or Java applications are available out there and are written to the MySQL interface. Many commercial packages are written for MySQL as well. So I figured that must be the role of MySQL on i–to make it easy to implement those applications on our system. It’s a niche, but a logical reason to make use of MySQL on i.

    A bit later, there was talk of making a stronger connection between MySQL and DB2 by creating a DB2 for i storage engine for MySQL. No longer content to sit quietly in its little niche, MySQL wanted to be integrated into our “real” database. At that point, it was beginning to feel a bit threatening. Could this be a good idea?

    I decided to take a closer look at MySQL to understand more about it. After all, if it was threatening my platform’s native database, I wanted a clearer picture of the enemy. That’s when I began to see some parallels between this newfangled database and our system.

    MySQL has a lot of flexibility architected into it as well. Not in terms of the language one uses to create and access data–it uses SQL exclusively just as the other relational platforms do. But the idea that the database sits above and separated from the actual storage mechanism of the data (these storage engines) felt strangely familiar. A major advantage of this separation is that the database on top can take advantage of new or different implementations for storing the data without change to the data or applications required.

    That’s when I began to see the resemblance between MySQL with its storage engines and our own platform with its TIMI (Technology Independent Machine Interface). Or, as we called it for years before someone invented a cute name for it, the MI layer that separates the operating system from the hardware, allowing the OS and all our applications to be able to continue to run without code changes required. The major advantage? Generation after generation of hardware changes underneath have allowed us to adopt new technologies without requiring a rewrite of our applications.

    As I found we have some basic things in common, MySQL and i, I was beginning to feel less threatened by this strange new database. But aside from some basic architectural similarities, is there any practical advantage to bridging my DB2 and MySQL?

    Yes, a huge practical advantage. Earlier, I expounded on the unique advantage of DB2 on our platform; its flexibility of interface. As I see it, with a DB2 for i storage engine for MySQL, it just got even more flexible. Now, any of those MySQL applications one chooses to run on i can have the data from those applications stored in DB2 tables, or physical files, if you prefer that term.

    So now if I want to write RPG programs to access and update that same data, I just do it, using either SQL or native CHAIN, SETLL, etc. I don’t need to extract the data from one database and import it into DB2 first, or use some kind of middleware or special drivers with SQL to gain access to the “foreign” data. I can use my favorite native query tools against it to create my own reports as well. There are a number of i shops who are already doing just that today, with the popular open source SugarCRM package among others.

    Score yet one more big point for the flexibility of DB2 for i, and yet another exclusive feature of our flavor of DB2.

    Before I close, I should confess that the DB2 for i storage engine is not quite a panacea. There are clearly quite a few rough spots in the marriage between the two databases. For example, while you can certainly access the data using native RPG operation codes, there are quite a few idiosyncrasies to deal with, such as the fact that MySQL names are case-sensitive. Also the connection goes only in one direction at the moment. That is, you can access data created with MySQL from DB2, but you cannot access already existing DB2 data from MySQL directly.

    I’ll be sharing a bit more about how this DB2 for i storage engine for MySQL works in future tips and how to avoid (or at least smooth over) some of the rough spots that are there today. I believe this is a boon to our platform, making it far easier to integrate our traditional applications to a whole new world of both open source and commercial applications that are available. And making the case once again that DB2 for i is still the most powerful and flexible database out there.

    Susan Gantner is one of the most respected System i gurus in the world and is one of the co-founders of System i Developer, an organization dedicated to RPG, DB2, and other relevant software technologies for the IBM i platform that hosts the RPG & DB2 Summit conferences. Gantner, who has worked in IBM’s Rochester and Toronto labs, left IBM to focus on training development shops on the latest programming technologies. She is also a regular speaker at user groups and teaches customized on-site classes for i shops. Send your questions or comments for Susan to Ted Holt via the IT Jungle Contact page.



                         Post this story to del.icio.us
                   Post this story to Digg
        Post this story to Slashdot

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags:

    Sponsored by
    WorksRight Software

    Do you need area code information?
    Do you need ZIP Code information?
    Do you need ZIP+4 information?
    Do you need city name information?
    Do you need county information?
    Do you need a nearest dealer locator system?

    We can HELP! We have affordable AS/400 software and data to do all of the above. Whether you need a simple city name retrieval system or a sophisticated CASS postal coding system, we have it for you!

    The ZIP/CITY system is based on 5-digit ZIP Codes. You can retrieve city names, state names, county names, area codes, time zones, latitude, longitude, and more just by knowing the ZIP Code. We supply information on all the latest area code changes. A nearest dealer locator function is also included. ZIP/CITY includes software, data, monthly updates, and unlimited support. The cost is $495 per year.

    PER/ZIP4 is a sophisticated CASS certified postal coding system for assigning ZIP Codes, ZIP+4, carrier route, and delivery point codes. PER/ZIP4 also provides county names and FIPS codes. PER/ZIP4 can be used interactively, in batch, and with callable programs. PER/ZIP4 includes software, data, monthly updates, and unlimited support. The cost is $3,900 for the first year, and $1,950 for renewal.

    Just call us and we’ll arrange for 30 days FREE use of either ZIP/CITY or PER/ZIP4.

    WorksRight Software, Inc.
    Phone: 601-856-8337
    Fax: 601-856-9432
    Email: software@worksright.com
    Website: www.worksright.com

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Sponsored Links

    looksoftware:  Why Web Enable? View the FREE on-demand webinar and get a FREE white paper
    RevSoft:  Enterprise solutions for data transfers, messaging and scheduling
    COMMON:  Join us at the annual 2010 conference, May 3 - 6, in Orlando, Florida

    IT Jungle Store Top Book Picks

    Easy Steps to Internet Programming for AS/400, iSeries, and System i: List Price, $49.95
    The iSeries Express Web Implementer's Guide: List Price, $49.95
    The System i RPG & RPG IV Tutorial and Lab Exercises: List Price, $59.95
    The System i Pocket RPG & RPG IV Guide: List Price, $69.95
    The iSeries Pocket Database Guide: List Price, $59.00
    The iSeries Pocket SQL Guide: List Price, $59.00
    The iSeries Pocket Query Guide: List Price, $49.00
    The iSeries Pocket WebFacing Primer: List Price, $39.00
    Migrating to WebSphere Express for iSeries: List Price, $49.00
    Getting Started With WebSphere Development Studio Client for iSeries: List Price, $89.00
    Getting Started with WebSphere Express for iSeries: List Price, $49.00
    Can the AS/400 Survive IBM?: List Price, $49.00
    Chip Wars: List Price, $29.95

    Dutch Consultant Taps Magic’s iBolt for JDE Integration Projects The Power7 Rollout Begins In The Middle

    Leave a Reply Cancel reply

Volume 10, Number 5 -- February 3, 2010
THIS ISSUE SPONSORED BY:

Infor
SEQUEL Software
System i Developer

Table of Contents

  • What a Lifelong DB2 Fanatic Sees in MySQL
  • Read a Save File
  • Admin Alert: Did You Lose ECS on February 1?

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • Big Blue Raises IBM i License Transfer Fees, Other Prices
  • Keep The IBM i Youth Movement Going With More Training, Better Tools
  • Remain Begins Migrating DevOps Tools To VS Code
  • IBM Readies LTO-10 Tape Drives And Libraries
  • IBM i PTF Guide, Volume 27, Number 23
  • SEU’s Fate, An IBM i V8, And The Odds Of A Power13
  • Tandberg Bankruptcy Leaves A Hole In IBM Power Storage
  • RPG Code Generation And The Agentic Future Of IBM i
  • A Bunch Of IBM i-Power Systems Things To Be Aware Of
  • IBM i PTF Guide, Volume 27, Numbers 21 And 22

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2025 IT Jungle