Title: Problems with config.php
Last modified: August 18, 2016

---

# Problems with config.php

 *  Resolved [eggs0802](https://wordpress.org/support/users/eggs0802/)
 * (@eggs0802)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/problems-with-configphp/)
 * I’m positive I’ve uploaded everything properly, but I think I may have messed
   up the config.php information.
    This is what is displayed when I go to the installation
   page:
 * 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.
 * My host’s database server is not down so I must have put in the information wrongly?
   
   I’m using Cpanel and when I put in the username and database name, it automatically
   saved with a sarah_ before it.
 * [http://www.fineprintedlove.net/images/mysql.jpg](http://www.fineprintedlove.net/images/mysql.jpg)
   <<screenie of database info.
 * So in config.php, I don’t know whether to fill out the values with the sarah_
   before it. I’ve tried both but they don’t work? :S And I’m not sure whether to
   change the host name or not. And in config.php, do I replace each DB with the
   database name or just keep the DB?
    This is what I have so far: [http://www.fineprintedlove.net/images/config.jpg](http://www.fineprintedlove.net/images/config.jpg)
   <<screenie I’m confused what to fill out the values with. I really appreciate
   if anyone can help =)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/problems-with-configphp/#post-417248)
 * db name: sarah_wordpress
    db user: sarah_Sarah db pass: whatever you made it 
   to be db host: localhost
 * that should do the trick?
 *  [yosemite](https://wordpress.org/support/users/yosemite/)
 * (@yosemite)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/problems-with-configphp/#post-417249)
 * sarah_wordpress is the db name.
    sarah_Sarah is username you know password ;’)
   localhost is the db host.
 * So:
    `define('DB_NAME', 'sarah_wordpress');  define('DB_USER', 'sarah_Sarah');
   define('DB_PASSWORD', 'yourpassword');  define('DB_HOST', 'localhost');
 *  Thread Starter [eggs0802](https://wordpress.org/support/users/eggs0802/)
 * (@eggs0802)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/problems-with-configphp/#post-417257)
 * AHHHH Thank you guys SO much! I finally got into the installation page 😉

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Problems with config.php’ is closed to new replies.

## Tags

 * [installation](https://wordpress.org/support/topic-tag/installation/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 3 replies
 * 3 participants
 * Last reply from: [eggs0802](https://wordpress.org/support/users/eggs0802/)
 * Last activity: [19 years, 11 months ago](https://wordpress.org/support/topic/problems-with-configphp/#post-417257)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
