Advertisement

08.18.2008 at 03:43AM PDT, ID: 23655915
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

PHP4, MySQL4 and IIS (5.1/6.0) Cannot connect to MySQL in PHP script

Asked by ecomaster in PHP and Databases, PHP Installation, PHP for Windows

Tags:

Hi,

I'm trying to run a PHP web application with MySQL on IIS. It's an existing application (running at the moment on a Linux server) written for PHP4 and it uses MySQL 4. So I've downloaded the latest version of PHP4 (4.4.9) and the version of the MySQL server that's already running (4.1.12). I can get the IIS server to serve php pages, but I can't connect to the MySQL server; mysql_connect gives the following error message:
"Client does not support authentication protocol requested by server; consider upgrading MySQL client"
I verified that the MySQL server is running (the service is running) using the MySQL Administrator, I was able to connect and check existing databases.

These are the setup steps I followed (I found them on this page: http://www.atksolutions.com/articles/install_php_mysql_iis.html)

- I put the PHP related files in C:\php and copied all files from the sapi subdirectory to the root;
- copied the php.ini-recommended file to the windows directory, renamed it to php.ini and changed the extenstions_dir entry to "c:\php\extenstions" (this subdirectory is present in the c:\php);
- IIS configuration: I added the .php extension to the Application Configuration, pointing to c:\php\php4isapi.dll (all verbs);
- I installed MySQL with these settings: "Detailed Configuration", "Developer Machine", "Non-Transactional Database Only", "Decision Support (DSS)/OLAP", "Check Enable TCPIP Networking", Port 3306, "Standard Character Set", "Install as a Windows Service"
- Afterwards I copied the libmysql.dll (c:\php\dlls) to the System32 folder.
(I skipped adding the following entries extension=php_mysql.dll and extension=php_mysqli.dll to php.ini )

The following values for MySQL I found using phpinfo:
>>>>
MySQL Support enabled
Active Persistent Links  0  
Active Links  0  
Client API version  3.23.49  

Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_timeout 60 60
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket no value no value
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode Off Off
<<<<

I would appreciate if anyone could point out what I'm missing. Thanks in advance.

Best regards,
Wim.Start Free Trial
[+][-]08.18.2008 at 05:23AM PDT, ID: 22251095

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.18.2008 at 05:31AM PDT, ID: 22251145

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.08.2008 at 08:26AM PDT, ID: 22670001

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: PHP and Databases, PHP Installation, PHP for Windows
Tags: PHP4 MySQL4 IIS
Sign Up Now!
Solution Provided By: ecomaster
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628