Jump to content

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).

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.