Bluehost.com Web Hosting $6.95

database connect error can someone help please?

This is a discussion on database connect error can someone help please? within the Windows Web Servers forums, part of the Web Server and Related Forums category; I was just trying to make a simple connection to a local dadabase from a php file. Could not connect: ...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-20-2005
David Woodard
 
Posts: n/a
Default database connect error can someone help please?

I was just trying to make a simple connection to a local dadabase from a php
file.

Could not connect: Client does not support authentication protocol requested
by server; consider upgrading MySQL clientPHP Warning: mysql_connect():
Client does not support authentication protocol requested by server;
consider upgrading MySQL client in C:\Program Files\Apache
Group\Apache2\htdocs\testing\_debug_tmp.php on line 2 PHP Warning:
mysql_select_db(): supplied argument is not a valid MySQL-Link resource in
C:\Program Files\Apache Group\Apache2\htdocs\testing\_debug_tmp.php on line
3


  #2 (permalink)  
Old 03-20-2005
Kees Nuyt
 
Posts: n/a
Default Re: database connect error can someone help please?

On Sat, 19 Mar 2005 21:09:05 -0700, "David Woodard"
<davidinwinslow@cableone.net> wrote:

> Could not connect: Client does not support authentication
> protocol requested by server; consider upgrading MySQL
> clientPHP


It means what it says: The MySQL client in PHP does not
support the authentication method that is required by newer
versions of MySQL server.

> Warning: mysql_connect(): Client does not support
> authentication protocol requested by server; consider
> upgrading MySQL client in C:\Program Files\Apache
> Group\Apache2\htdocs\testing\_debug_tmp.php on line 2


Possible solutions:
- install a version of PHP of which the MySQL client
library supports the authentication method of your
MySQL server version
- use an old version of MySQL server
- start the MySQL server with some option to force
it to use the old authentication method.
- trick the password column in the MySQL system
database (mysql)

Read the PHP and MySQL documentation (especially the
release notes) for more details.

> PHP Warning: mysql_select_db(): supplied argument is not a
> valid MySQL-Link resource in C:\Program Files\Apache
> Group\Apache2\htdocs\testing\_debug_tmp.php on line 3


This is of course the result of the previous error.

BTW: comp.lang.php is more appropriate for php and mysql
questions, so I set FUP to that group.

Good luck.

--
) Kees Nuyt
(
c[_]
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:54 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0