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

---

# problems with wp-config.php !!!

 *  [schmuddel](https://wordpress.org/support/users/schmuddel/)
 * (@schmuddel)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/problems-with-wp-configphp-1/)
 * hi!
 * i downloaded the version 2.5.1
    after reading the install instructions i made
   this wp-config.php: ** // \*\* MySQL settings \*\* // define(‘DB_NAME’, ‘xxxxx’);//
   The name of the database define(‘DB_USER’, ‘wxxxxx’); // Your MySQL username 
   define(‘DB_PASSWORD’, ‘xxxxx’); // …and password define(‘DB_HOST’, ‘localhost’);//
   99% chance you won’t need to change this value define(‘DB_CHARSET’, ‘utf8’); 
   define(‘DB_COLLATE’, ”);
 * loaded this file up to webspace and then tried to run the installation link.
   
   i always get the error, that user or password is wrong, or the localhost is not
   connected. but the localhost is okay, and the userdata is okay, too!!
 * where is the mistake?
    THX
 * greetz
    schmuddel

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/problems-with-wp-configphp-1/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/problems-with-wp-configphp-1/page/2/?output_format=md)

 *  [themystical](https://wordpress.org/support/users/themystical/)
 * (@themystical)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/problems-with-wp-configphp-1/#post-753732)
 * Did you write the database and user name in the format cpaneluser_DBname and 
   cpaneluser_DBuser? (cpanel used here just as example).
 *  [metahuman](https://wordpress.org/support/users/metahuman/)
 * (@metahuman)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/problems-with-wp-configphp-1/#post-753754)
 * The new config file has new entries –
 * > // Change SECRET_KEY to a unique phrase. You won’t have to remember it later,
   > //
   > so make it long and complicated. You can visit [http://api.wordpress.org/secret-key/1.0/](http://api.wordpress.org/secret-key/1.0/)//
   > to get a secret key generated for you, or just make something up. define(‘SECRET_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!
 * Please check if you are using the right table prefix if you are updating as it
   may not find the old table and thereby your login id & password.
 *  [davidhogg](https://wordpress.org/support/users/davidhogg/)
 * (@davidhogg)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/problems-with-wp-configphp-1/#post-753783)
 * I have the same problem as Scmuddel. I don’t understand the reply from TheMystical.
   It says “#Did you write the database and user name in the format cpaneluser_DBname
   and cpaneluser_DBuser? (cpanel used here just as example).” What exactly does
   this mean.\? I have written the database and user name as “dhoggpress” and “davidhogg”,
   which is the way they were given to me by the hosting company. Is this not correct?
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/problems-with-wp-configphp-1/#post-753784)
 * davidhogg,
 * some hosts (not all) set up cpanel/mysql/etc so that you username is included
   in the mysql database bits ..
 * in other words, if your username is smith1, and you had a database named abc,
   you would have this inside wp-config.php:
 * >  define(‘DB_NAME’, ‘smith1_abc’); // The name of the database
 * Its done so that hosts can tell, at a glance, what dbs belong to what users.
 *  [davidhogg](https://wordpress.org/support/users/davidhogg/)
 * (@davidhogg)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/problems-with-wp-configphp-1/#post-753795)
 * I get it now. Thanks. I don’t think this is the case with my host. Even so, I
   do not have an explanation of why I get an error message when I try to open the
   wp-admin/install.php file.
 *  [davidhogg](https://wordpress.org/support/users/davidhogg/)
 * (@davidhogg)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/problems-with-wp-configphp-1/#post-753796)
 * OK. I’m not getting any error messages anymore. But when I try the install.php
   file all I get is a blank screen.
 *  [Samgreen](https://wordpress.org/support/users/samgreen/)
 * (@samgreen)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/problems-with-wp-configphp-1/#post-753801)
 * I have seen mentions on here of theme incompatibility. Try using a ftp program
   to rename the theme you are using, wp will then use the default theme. See if
   the blank page goes away then.
 *  [davidhogg](https://wordpress.org/support/users/davidhogg/)
 * (@davidhogg)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/problems-with-wp-configphp-1/#post-753823)
 * OK, thanks, I’ll try this approach.
 *  [goborobo](https://wordpress.org/support/users/goborobo/)
 * (@goborobo)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/problems-with-wp-configphp-1/#post-753826)
 * OK, let’s be clear about this:
    There is a clear problem with the WordPress install
   because:
 * 1. I can login to the MySQL db as Master User from my host control panel.
    2.
   I can login to the MySQL db from a web page as an authorized User. 3. The login
   line in PhpMyAdmin shows either user [@localhost](https://wordpress.org/support/users/localhost/)
   after I’ve logged in.
 * Putting either of these user settings into wp-config.php returns the error:
 * “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”
 * Permissions?
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/problems-with-wp-configphp-1/#post-753827)
 * The user has to be added to the database and must have all the privileges.
 * Despite what you think… 99.99% of the cases it is a user error in the wp-config
   file.
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/problems-with-wp-configphp-1/#post-753828)
 * its not even 99.99%.
 * Its 100%. That file is never wrong 🙂
 *  [goborobo](https://wordpress.org/support/users/goborobo/)
 * (@goborobo)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/problems-with-wp-configphp-1/#post-753829)
 * I thought I wrote the description of the problem clearly:
 * How could I have logged in by control panel and web page for two different users
   if I didn’t have the details right?
 * I’ve tried them both in the config file, and they both have superuser permissions.
 *  [goborobo](https://wordpress.org/support/users/goborobo/)
 * (@goborobo)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/problems-with-wp-configphp-1/#post-753831)
 * And the answer is:
 * Not 100% of the time. My host requires:
 * localhost:/tmp/mysql5.sock
 * for MySQL5.
 * Always excellent support and great hosting: icdsoft.com
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/problems-with-wp-configphp-1/#post-753832)
 * I dont think anyone misunderstood what you wrote.
 * Instead of debating that, why not see if you are actually supposed to be using
   localhost and not an IP or actual hostname.
    Thats where I would start
 * The output from that file isnt wrong — it never is.
 * —
    Edit:
 * The Previous post to this one was posted before I finished this one.
 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/problems-with-wp-configphp-1/#post-753833)
 * Do you mind posting your actual config file without the db name, user name, and
   password?

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/problems-with-wp-configphp-1/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/problems-with-wp-configphp-1/page/2/?output_format=md)

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 21 replies
 * 9 participants
 * Last reply from: [davidhogg](https://wordpress.org/support/users/davidhogg/)
 * Last activity: [18 years, 1 month ago](https://wordpress.org/support/topic/problems-with-wp-configphp-1/page/2/#post-753863)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
