Page 1 of 1

Connecting to remote DB2 server

Posted: Mon Nov 12, 2018 7:46 pm
by KMitchell
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?