I want to install Drupal 6.22.
I have copy all contents into the root map of my site.

When I go to my site I can choose a language and than it goes on with the installation.
The requirements are ok.

Than drupal will set up a database.

When I type my databasename and user with password I will get the following message:

Failed to connect to your MySQL database server. MySQL reports the following message: No connection could be made because the target machine actively refused it. .

What can I do?
Cause the databasename, username and password are right spelled.

Comments

Sylver Yagi’s picture

Hi, I am facing the same problem as well. Can anyone in the community help please?

I get the following error message with my installation:

"Failed to connect to your database server. The server reports the following message: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it. "

WHY IS IT ACTIVELY REFUSING IT???

paulhudson’s picture

The following may help:

- Is MySQL running?
- Have you entered the correct hostname and port number for your MySQL server (typically it might be localhost:3306 or 127.0.0.1:3306) Check the correct hostname and port to use.
- Check your firewall on the server, is it blocking MySQL's port?

Are you installing your site locally on your computer or hosting it somewhere?

Sylver Yagi’s picture

Hey thanks :) .. I was able to run and complete the installation without errors. The problem was with the database port and the host name. It installed it as a testing site on my local pc.

Thanks again :) :) :)

paulhudson’s picture

Cool, if you can, use localhost when you push the site to whatever live server you're using. Reason is, it can be 10% or so faster as it will use the UNIX socket rather than using the network interface (if you used 127.0.0.1)

Just something to consider

Sylver Yagi’s picture

Thank you so much for your help and suggestions :)