• I created a database in MSQL. I edited the config.php doc to the proper name of the database (press), proper username and proper password. I edited the name of the config file to get rid of “sample”. I uploaded all of the files to my host. I went to the browser and typed in https://www.utgrad70.net/wordpress/wp-admin/install.php, hit enter and got the error message
    Error establishing a database connection

    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. This could mean your host’s database server is down.

    * Are you sure you have the correct username and password?
    * Are you sure that you have typed the correct hostname?
    * Are you sure that the database server is running?

    I watched a video on installing wordpress and went back in to the config file and changed press to utgrad70_press. Uploaded that. Tried installing again and got the same error message.

    Have no idea what is wrong. Any ideas?

Viewing 6 replies - 1 through 6 (of 6 total)
  • i have the same message

    please help me, i have the same issue…

    The problem maybe that you can’t use “localhost” in your wp-config.php file.

    In the wp-config-sample.php it says:
    define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value.

    I’m running wordpress on 8 servers and on most that is true. On the 2 that are on a shared server at GoDaddy, I had to change that to the actual MySQL server name:
    define(‘DB_HOST’, ‘p50mysql135.secureserver.net’); // 99% chance you won’t need to change this value

    I just recently moved a 3rd GoDaddy site from one of their shared servers to a dedicated server and had to change back to:
    define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value.

    @ kclewis
    being on a windows server – do you or your host have index.php set up to run a directory?

    My problem is somewhat different, like an idiot I over wrote my wp-config.php file from a blog that was running with a file I had not created yet.

    I have all the databases through my hosy, but Iam unable to find the right combination of users/pass/DB name.

    My question is this, is there away of retrieving the information in that database and re-installing.

    sorry for butting in but the error message is the same a yours

    “Error establishing a database connection”

    thanks

    Peter

    Im getting the same problem, PLEASE HELP!!!

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