I used below statement to connect to DB2 database (on IBM i Access server) in RIDE editor
Connect To Database Using Custom Params ibm_db 'DATABASE=mydb;HOSTNAME=10.53.x.x;PORT=8471;PROTOCOL=TCPIP;UID=myuser;PWD=xxxx;','',''
But it always connecting and can not finishing. I can telnet the port 8471 (this is port for accessing database)
When I tried another port I got the below error:
SQL30081N A communication error has been
detected. Communication protocol being used: "TCP/IP". Communication
API being used: "SOCKETS". Location where the error was detected:
"x.x.x.x". Communication function detecting the error: "recv".
Protocol specific error code(s): "*", "*", "0". SQLSTATE=08001
Do you know how to fix this ?
Try using ibm_db_dbi instead of using ibm_db .
It worked for me .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.