|
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-
bounces@xxxxxxxxxxxx] On Behalf Of Timothy P Clark
Sent: Thursday, February 26, 2009 12:13 PM
To: midrange-l@xxxxxxxxxxxx
Subject: RE: PHP and mySQL startup
Hi Jeff,
I'm one of the developers of the storage engine. I noticed this thread
about using MySQL and PHP and wanted to clarify a few things about the
storage engine.
First, the storage engine is not yet generally available. We're working
with MySQL to get it out the door as soon as possible, but I can't give a
precise date. This also means that the Redbook is not available either.
The URL that you found is where it *will* be. When we wrote the magazine
article, schedules were still being solidified, and we figured it would be
best to reference the URL in case it had gone live by publication time.
Second, you may be able to achieve what you want without needing the
storage engine at all. If your goal is to take an existing DB2 table and
make it available to a PHP program, there are a couple of good solutions
already available. The first is to connect directly to DB2 on your i by
using the ibm_db2 PHP extension. Michael Sandberg has a helpful article on
this at
http://www.ibmsystemsmag.com/ibmi/october07/developer/18368p1.aspx. The
other technique, which provides the more static updates that you've
described, is to use CPYTOIMPF to dump the DB2 table into a CSV file, ftp
that file up to your website, and use the mysqlimport program
(http://dev.mysql.com/doc/refman/5.1/en/mysqlimport.html) to pull the data
into a MySQL table.
In short, the storage engine is designed to get your MySQL data *into*
DB2. The solutions described above allow you to go the other direction
(DB2 into MySQL), which sounds like what you're really after.
Hope that helps!
Tim Clark
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.