note 124088 added to ref.pdo-ibm.connection

From: Date: Thu, 01 Aug 2019 11:14:46 +0000
Subject: note 124088 added to ref.pdo-ibm.connection
Groups: php.notes 
Request: Send a blank email to php-notes+get-211769@lists.php.net to get a copy of this message
The connection string is wrong for the example : $db = new PDO("ibm:DRIVER={IBM DB2 ODBC DRIVER};DATABASE=testdb;" . "HOSTNAME=11.22.33.444;PORT=56789;PROTOCOL=TCPIP;", "testuser", "tespass"); You get the PDO Exception with the error code -1329. You have to write : $db = new PDO( "ibm:DRIVER={IBM DB2 ODBC DRIVER};DATABASE=testdb;" . "HOSTNAME=11.22.33.444;PORT=56789;PROTOCOL=TCPIP;UID=testuser;PWD=testpass", "", ""); ---- Server IP: 208.43.231.9 Probable Submitter: 185.85.3.195 (proxied: 86.249.201.122) ---- Manual Page -- http://php.net/manual/en/ref.pdo-ibm.connection.php Edit -- https://master.php.net/note/edit/124088 Del: integrated -- https://master.php.net/note/delete/124088/integrated Del: useless -- https://master.php.net/note/delete/124088/useless Del: bad code -- https://master.php.net/note/delete/124088/bad+code Del: spam -- https://master.php.net/note/delete/124088/spam Del: non-english -- https://master.php.net/note/delete/124088/non-english Del: in docs -- https://master.php.net/note/delete/124088/in+docs Del: other reasons-- https://master.php.net/note/delete/124088 Reject -- https://master.php.net/note/reject/124088 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#211769) next »