× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



So DB2 on IBM i does not treat databases the way MySQL does. You can come
close by using the analogy of a database in MySQL is roughly equivalent of
a library on IBM i. But the REAL difference is that the typical MySQL
application would store EVERYTHING in a single database while the typical
IBM i application stores data content in more than one library and access
is handled via a Library List.

Sending you some samples but will probably make a blog article out of
this.

Regards,

Mike Pavlak
Cell: (408)679-1011 Office: (708)233-5880

-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Rob
Sent: Wednesday, November 11, 2015 9:58 PM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] db2_connect

Josh Hall pointed out to me that I was passing the DB2_I5_NAMING_OFF with
out it being in an Array....

This is the call that worked for me.

$db2Conn = db2_pconnect( '*LOCAL', 'Usrnm', 'Psswrd', array(
'i5_naming'=>DB2_I5_NAMING_OFF ) );

Now all I have to do is figure out how to select the database I want to
use.... back to google..... maybe I can find some examples in the
current source...

Thank you Jon Paris, Alejandro Olvera and Josh Hall !!!!

So now I am 2/3 the way there..... I can run a script... I can connect
to DB2....

--
Your Out-Source IT Department,
Rob Couch
IT Serenity
214 682 7638
Skype: itserenity

--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list To post a message email: WEB400@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.