|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-06-10 09:02 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 09:00:02 2025 UTC |
Description: ------------ hope this is correct way I beleive mysql has a new authentication protocol in mysql4.1.1 which is not supported by PHP causing the following error Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:\www\testDatabaseConnect.php on line 8 Database connection failed apache 2.0.49 php 3.3.6 mysql 4.1.1a-alpha-nt win2000 when using following <!doctype html public "-//W3C//DTD HTML 4.0 //EN"> <html> <head> <title>Title here!</title> </head> <body> <?php $connect = mysql_connect('localhost','jsmith','Secret15'); if ($connect==FALSE) { print "Database connection failed"; exit; } //mysql_select_db('accounts',$connect); ?> </body> </html> when I use the it works fine c:\mySQL\bin>mysql -ujsmith -pSecret15 mysql> show databases ; +----------+ | Database | +----------+ | accounts | | test | +----------+ Used folloing to create user account grant all on accounts.* to jsmith@localhost identified by 'Secret15'; MySQLcc shows mysql\user localhost, jsmith, *b648etc, next 21 fields show 'N' mysql\db localhost, accounts, jsmith, 6 by 'Y',grant-priv 'N', 5 by 'Y'