Jump to content

MySQL DB connection problem


ingrawc

Recommended Posts

When trying to configure a php calendar application we receive the following error:

 

________________________________________________________________________________

There was an error connecting to the mySQL database.

 

The error was reported as:

 

Client does not support authentication protocol requested by server; consider upgrading MySQL client

________________________________________________________________________________

 

PHP version: 4.4.9

MySql version: 5.1.31

Webserver: IIS v.6

OS: Windows Server 2003 SP1

 

Is this a common error that there is a quick fix for or do we need to do some more upgrading?

 

I can't actually see the PHP as it is protected by Zend Guard, but the company tells me that the connection string is as follows:

<?php

mysql_connect("host", "userName", "password");

?>

 

I also have other connections that us this same db, but use the odbc_connect function instead of mysql_connect.  I've also tried mysql_pconnect to no avail.

 

Thanks,

Chad

Link to comment
https://forums.phpfreaks.com/topic/148853-mysql-db-connection-problem/
Share on other sites

You would have to install mysql on the php server. If you are using odbc, then chances are the mysql extension has not been installed.

 

Check the php.ini for the php_mysql extension, uncomment it if it is commented out. I am not too familiar with IIS, so yea. But that is most likely the base of the error.

 

Also make sure you have the actual MySQL database installed (since you posted the mysql version I take it you do).

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.