Title: Probems with wp-config.php
Last modified: August 19, 2016

---

# Probems with wp-config.php

 *  [joe07](https://wordpress.org/support/users/joe07/)
 * (@joe07)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/probems-with-wp-configphp/)
 * After edit and upload wp-config.php
    I get this message from my site
 * **Error establishing a database connection**
 * Can somebody help me. Thanks
 * My wp-config.php:
 * <?php
    // ** MySQL settings ** // define(‘DB_NAME’, ‘alexgoh.site90.com’); //
   The name of the database define(‘DB_USER’, ‘xxx’); // Your MySQL username define(‘
   DB_PASSWORD’, ‘xxx’); // …and password define(‘DB_HOST’, ‘localhost’); // 99%
   chance you won’t need to change this value define(‘DB_CHARSET’, ‘utf8’); define(‘
   DB_COLLATE’, ”);
 * // Change each KEY to a different unique phrase. You won’t have to remember the
   phrases later,
    // so make them long and complicated. You can visit [http://api.wordpress.org/secret-key/1.1/](http://api.wordpress.org/secret-key/1.1/)//
   to get keys generated for you, or just make something up. Each key should have
   a different phrase. define(‘AUTH_KEY’, ‘put your unique phrase here’); // Change
   this to a unique phrase. define(‘SECURE_AUTH_KEY’, ‘put your unique phrase here’);//
   Change this to a unique phrase. define(‘LOGGED_IN_KEY’, ‘put your unique phrase
   here’); // Change this to a unique phrase.
 * // You can have multiple installations in one database if you give each a unique
   prefix
    $table_prefix = ‘wp_’; // Only numbers, letters, and underscores please!
 * // Change this to localize WordPress. A corresponding MO file for the
    // chosen
   language must be installed to wp-content/languages. // For example, install de.
   mo to wp-content/languages and set WPLANG to ‘de’ // to enable German language
   support. define (‘WPLANG’, ”);
 * /* That’s all, stop editing! Happy blogging. */
 * if ( !defined(‘ABSPATH’) )
    define(‘ABSPATH’, dirname(__FILE__) . ‘/’); require_once(
   ABSPATH . ‘wp-settings.php’); ?>

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

 *  Thread Starter [joe07](https://wordpress.org/support/users/joe07/)
 * (@joe07)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/probems-with-wp-configphp/#post-877906)
 * I try edit
    ‘AUTH_KEY’ ‘SECURE_AUTH_KEY’ ‘LOGGED_IN_KEY’
 * Still got problem
 * <?php
    // ** MySQL settings ** // define(‘DB_NAME’, ‘alexgoh.site90.com’); //
   The name of the database define(‘DB_USER’, ‘xxx’); // Your MySQL username define(‘
   DB_PASSWORD’, ‘xxx’); // …and password define(‘DB_HOST’, ‘localhost’); // 99%
   chance you won’t need to change this value define(‘DB_CHARSET’, ‘utf8’); define(‘
   DB_COLLATE’, ”);
 * // Change each KEY to a different unique phrase. You won’t have to remember the
   phrases later,
    // so make them long and complicated. You can visit [http://api.wordpress.org/secret-key/1.1/](http://api.wordpress.org/secret-key/1.1/)//
   to get keys generated for you, or just make something up. Each key should have
   a different phrase. define(‘AUTH_KEY’, ‘j<CapPER]?f^\\(Vn]NsiL{=].6)b|&CkboDmTbVxgMYo]
   59ly2\\~px.V\’E&3HJP:’); // Change this to a unique phrase. define(‘SECURE_AUTH_KEY’,‘
   s~\”bb#mOP~gx{\'[`o06v2QW <~@0\'A[5/v(P0oW p-!p,{9nc5+`1jTlZMoZZ&‘); // Change
   this to a unique phrase. define(‘LOGGED_IN_KEY’, ”?Iaq2\’8GK>T,\”FM~Zm3IOH`:+}
   P,H\\$F{N, es, \"^_J`i8yw3O39rOw*t}3y<in’); // Change this to a unique phrase.
 * // You can have multiple installations in one database if you give each a unique
   prefix
    $table_prefix = ‘wp_’; // Only numbers, letters, and underscores please!
 * // Change this to localize WordPress. A corresponding MO file for the
    // chosen
   language must be installed to wp-content/languages. // For example, install de.
   mo to wp-content/languages and set WPLANG to ‘de’ // to enable German language
   support. define (‘WPLANG’, ”);
 * /* That’s all, stop editing! Happy blogging. */
 * if ( !defined(‘ABSPATH’) )
    define(‘ABSPATH’, dirname(__FILE__) . ‘/’); require_once(
   ABSPATH . ‘wp-settings.php’); ?>
 *  Thread Starter [joe07](https://wordpress.org/support/users/joe07/)
 * (@joe07)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/probems-with-wp-configphp/#post-877907)
 * I delete wp-config.php
    get this message
 * **Parse error: syntax error, unexpected ‘:’ in /home/a7301400/wp-config.php on
   line 13**
 *  Thread Starter [joe07](https://wordpress.org/support/users/joe07/)
 * (@joe07)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/probems-with-wp-configphp/#post-877911)
 * delete wp-config-sample.php
    also got problem
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/probems-with-wp-configphp/#post-877936)
 * You are going to have to put your wp-config.php file back!
 * An **Error establishing a database connection** message means:
    1. The database
   server is down–talk to your host 2. DB_HOST value is wrong 3. DB_NAME, DB_USER,
   or DB_PASSWORD is wrong–if you think you are using the correct values–talk to
   your host.

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

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 4 replies
 * 2 participants
 * Last reply from: [MichaelH](https://wordpress.org/support/users/michaelh/)
 * Last activity: [17 years, 6 months ago](https://wordpress.org/support/topic/probems-with-wp-configphp/#post-877936)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
