Drupal Installation:Failed to connect to your MySQL database server

The following error must be resolved before you can continue the installation process:

Failed to connect to your MySQL database server. MySQL reports the following message: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond..
  • Are you sure you have the correct username and password?
  • Are you sure that you have typed the correct database hostname?
  • Are you sure that the database server is running?
For more help, see the Installation and upgrading handbook. If you are unsure what these terms mean you should probably contact your hosting provider.
  • To start over, you must empty your existing database.

Note:

*I am able to access the current drupal db via SQLyog or phpmyadmin.

*I'm using Vista Business.

*PHP+MySQL+IIS

*Server Status says everything's okay

 

Cure:

To fix this problem edit your hosts file (C:/Windows/System32/drivers/etc/hosts) and uncomment the line:

CODE
127.0.0.1   localhost

 

DO NOT uncomment this line:

CODE
::1    localhost

 

As it will take priority and something about the system (not sure which part) doesn't like that.

posted @ 2010-05-13 10:44  禅酷  阅读(963)  评论(0编辑  收藏  举报