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

---

# Problems with wp-config.php

 *  [dwieeb](https://wordpress.org/support/users/dwieeb/)
 * (@dwieeb)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/problems-with-wp-configphp/)
 * I’m really new to this kind of stuff, so what do I have to do to set it up.
 * My site is here: [http://24.31.236.57/dwieeb/](http://24.31.236.57/dwieeb/)
 * DB_NAME ??
    DB_USER ?? DB_PASSWORD ?? DB_HOST ??
 * Do I make these up or what?

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

 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/problems-with-wp-configphp/#post-480628)
 * no you dont.
 * have you installed mysql?
 * I reccomend you take a look at this:
 * [http://wordpress.org/about/requirements/](http://wordpress.org/about/requirements/)
 *  Thread Starter [dwieeb](https://wordpress.org/support/users/dwieeb/)
 * (@dwieeb)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/problems-with-wp-configphp/#post-480630)
 * It doesn’t look like you’ve installed WP yet. Try running install.php.
 * Is what it says. When I clicked install.php it said:
 * Parse error: parse error, unexpected $end in C:\Program Files\xampp\htdocs\dwieeb\
   wp-includes\locale.php on line 40
 * What do I have to do with sql stuff? Doesn’t my host manage that?
 *  [alains](https://wordpress.org/support/users/alains/)
 * (@alains)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/problems-with-wp-configphp/#post-480631)
 * You have to make a new MySQL database with name “mywordpress” then create & assign
   a user “sampleuser” to it.
 * Then you should edit the wp-config.php:
 * DB_NAME mywordpress
    DB_USER sampleuser DB_PASSWORD asigned_password DB_HOST 
   localhost
 * Just an example.
 *  Thread Starter [dwieeb](https://wordpress.org/support/users/dwieeb/)
 * (@dwieeb)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/problems-with-wp-configphp/#post-480633)
 * Ok I created a mysql account, and filled in my username and pass. Now its saying:
 * 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.
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/problems-with-wp-configphp/#post-480634)
 * for starters:
 * this IP, that you provided in your first post : [24.31.236.57 >> cpe-24-31-236-
   57.we.res.rr.com] — thats YOUR ip, or the IP of someone else thats trying to 
   host a wordpress on a cable site.
 * So lets clarify things, where is your blog being hosted?
 *  Thread Starter [dwieeb](https://wordpress.org/support/users/dwieeb/)
 * (@dwieeb)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/problems-with-wp-configphp/#post-480635)
 * One of my friends.
 *  Thread Starter [dwieeb](https://wordpress.org/support/users/dwieeb/)
 * (@dwieeb)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/problems-with-wp-configphp/#post-480637)
 * * 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?
 * Yes, yes and yes.
 *  Thread Starter [dwieeb](https://wordpress.org/support/users/dwieeb/)
 * (@dwieeb)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/problems-with-wp-configphp/#post-480638)
 * What do I need to do with the mysql account? Thats my username and password right?
 *  Thread Starter [dwieeb](https://wordpress.org/support/users/dwieeb/)
 * (@dwieeb)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/problems-with-wp-configphp/#post-480673)
 * Anyone care to help? 😛
 *  [tyrebagger](https://wordpress.org/support/users/tyrebagger/)
 * (@tyrebagger)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/problems-with-wp-configphp/#post-480681)
 * DB_PASSWORD assigned_password
    DB_HOST localhost
 * These will be provided by your hosting provider. The password is just that, and
   the host will be something like db1.myfriendhosting.com
 * Input that info & see what happens.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [19 years, 6 months ago](https://wordpress.org/support/topic/problems-with-wp-configphp/#post-480682)
 * Alright. Short version:
 * WordPress is the blog. However, it is not the *content* of the blog. The content
   is actually stored in the mySQL database.
 * In order for it to find the content so it can then display it, it needs to know
   where the database is. So you need to give it the username and password, the 
   database name, and the name or IP of the box where the database is running. All
   that is in the wp-config.php file.
 * This is not something you can guess at. If you have a database running somewhere,
   then these four bits of information are going to come from wherever you have 
   that database running. If the database is on the same machine as the webserver,
   then the host will be “localhost”, because that means that it’s connecting to
   itself. If it’s on a different machine, you need to use the name or IP of that
   different machine instead.
 * The database name and username and password are all something you configure. 
   The hostname is not.
 * The four bits of info have to be put in by you before you can do anything at 
   all. Nothing works unless this information is correct.

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

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

## Tags

 * [wp-config.php](https://wordpress.org/support/topic-tag/wp-config-php/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 11 replies
 * 5 participants
 * Last reply from: [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * Last activity: [19 years, 6 months ago](https://wordpress.org/support/topic/problems-with-wp-configphp/#post-480682)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
