#30902 [NEW]: Authentication issue due to DBX not supporting mysqli functions

From: Date: Fri, 26 Nov 2004 08:21:01 +0000
Subject: #30902 [NEW]: Authentication issue due to DBX not supporting mysqli functions
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-69463@lists.php.net to get a copy of this message
From: justind at ela dot com dot au Operating system: Windows XP SP2 PHP version: 5.0.2 PHP Bug Type: DBX related Bug description: Authentication issue due to DBX not supporting mysqli functions Description: ------------ I have just installed PHP 5.0.2 and MySQL 4.1.7. After several hours of attempting to connect to MySQL through CDX abstration layer I discovered that CDX was using mysql_connect function calls. This of course is no longer supported on MySQL 4.1 upwards. Instead the call should have been the improved version e.g. mysqli_connect. Any way I search for an answer to my problem before comming here and thought I better let everyone know before they waste hours finding out them selves. CDX database abstraction layer does not support MySQL versions 4.1 upwards Reproduce code: --------------- $sedco = dbx_connect(DBX_MYSQL, "localhost", $DBNAME, $DBUSER, $DBPASS); //Create a connection to MYSQL 4.1.7 database Expected result: ---------------- a connection should be made to the database, the connection worked when I used MySQLi Extension instead e.g. $sedco = mysqli_connect("localhost", "$DBUSER", "$DBPASS", "$DBNAME"); //Create a connection to MYSQL 4.1.7 database Actual result: -------------- Warning: mysql_connect() [function.mysql-connect]: Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:\Inetpub\wwwroot\Sedco\test.php on line 57 Unable to connect to database -- Edit bug report at http://bugs.php.net/?id=30902&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30902&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30902&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30902&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30902&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30902&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30902&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30902&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30902&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30902&r=support Expected behavior: http://bugs.php.net/fix.php?id=30902&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30902&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30902&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30902&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30902&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30902&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30902&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30902&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30902&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30902&r=mysqlcfg

« previous php.bugs (#69463) next »