|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-11-26 09:23 UTC] justind at ela dot com dot au
[2004-11-26 13:32 UTC] edink@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 14:00:01 2025 UTC |
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