Connecting to remote DB2 server

General discussion forum for the Zend Server
Post Reply
KMitchell
Posts: 1
Joined: Mon Nov 12, 2018 7:32 pm

Connecting to remote DB2 server

Post by KMitchell » Mon Nov 12, 2018 7:46 pm

We are trying to spin up a windows box using Zend Server 2018 - while porting some existing PHP code that uses the DB2_* functions to connect.

When I try to connect and SQL error message is thrown

[IBM][CLI Driver] SQL1031N The database directory cannot be found on the indicated file system. SQLSTATE=58031 SQLCODE=-1031

this relates to cataloging the DB2 server - but the commands are not clear on how to do this for a remote connection.

What command do I need to issue locally on the Windows box to be able to connect with PHP?

Post Reply