• agmal

    (@agmal)


    hello every 1
    i always got this erorr msg

    “This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost.

    Are you sure you have the ?
    Are you sure that you have typed the correct hostname?
    Are you sure that the database server is running? “

    I’m sur that i have the correct username and password and typed the correct hostname and the datebase is running ??
    so where is the proplem
    i laso sometimes can’t get step 2

    I tryed to use word press in local host and it’s worked well
    but when i tryed it in my site i can’t :S so are the proplem from the cpanel ?

Viewing 6 replies - 31 through 36 (of 36 total)
  • In my very recent experience there are three problems installing WordPress on a Network Solutions server:

    1. Setting up the database correctly
    2. Inputting the correct values in wp-config.php
    3. Doing the two above steps in the proper order

    The posts above by jeepfun and pmperry are correct: you DO need to change the ‘localhost’ setting to an IP number determined during your database setup. What is critical, however, is that you make sure you have set the database up correctly first.

    For specific instructions on setting up an NS database for WordPress, see this post:

    https://www.ads-software.com/support/topic/75607?replies=7#post-423032

    When you are sure you can access your database, follow the steps outlined above by pmperry for inputting the correct values into your wp-config.php file.

    [Moderator: given that Network Solutions is a fairly large hosting provider, and that more people will probably be trying to establish a WP blog on NS servers in the future, you may want to cut or change the comment in wp-config.php stating there is a 99% change the ‘DB_Host’ variable won’t need to be changed. It was a red herring for me.]

    The above post applies to a UNIX install on NS. I have no experience with a Windows install.

    I’m on Mac OS 10.4.7, MySQL 5.0.24, and I found that updating my Mac OS X PHP install to 5.1.4 (from version 4.x) solved this problem for me.

    I used Marc Liyanage’s excellent installer to do this:

    https://www.entropy.ch/software/macosx/php/

    Dave.

    I also changed the the define(‘DB_HOST’, ‘xxx.xxx.xxx.xxx’) and instantly got success.

    WPChina

    (@wordpresschina)

    Is there any way to return ONLY a blank page when you et the “Error establishing a database connection” message? I don’t want my users to see this db problem and instead just want to show a blank page… how can I do this?

    tks!

    I’m also getting the “Error establishing a database connection” during setup, but thanks to astrashe ‘s code i at least got a better error:

    Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:\Inetpub\WORDPRESS\test\dbtest.php on line 7
    Could not connect: Client does not support authentication protocol requested by server; consider upgrading MySQL client

    I’ve only just downloaded the mySQL so it cant be that old ?!?! My ado version is 2.8.. PHP Version 4.4.2 (is this too old?)

    mysql
    MySQL Support enabled
    Active Persistent Links 0
    Active Links 0
    Client API version 3.23.49

    I wondered if it was this client API version so i found somewhere on the mysql site that gave me an up to date php_mysql.dll [5.1.6.6] but i think this must have veen for php 5 because this was totally ignored even after i put it in the extensions folder and added it to the config file.

Viewing 6 replies - 31 through 36 (of 36 total)
  • The topic ‘Error establishing a database connection’ is closed to new replies.