Title: Cannot retrieve WordPress database credentials
Last modified: May 24, 2018

---

# Cannot retrieve WordPress database credentials

 *  Resolved [patricklux](https://wordpress.org/support/users/patricklux/)
 * (@patricklux)
 * [8 years ago](https://wordpress.org/support/topic/cannot-retrieve-wordpress-database-credentials/)
 * Any idea what does that mean? Have other pages on the same server working…
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcannot-retrieve-wordpress-database-credentials%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [8 years ago](https://wordpress.org/support/topic/cannot-retrieve-wordpress-database-credentials/#post-10321278)
 * You can use this script to debug DB errors: [https://nintechnet.com/share/wp-db.txt](https://nintechnet.com/share/wp-db.txt)
 * 1. Rename this file to “wp-db.php”.
    2. Upload it into your WordPress root folder.
   3. Go to [http://YOUR](http://YOUR) WEBSITE/wp-db.php 4. Delete it afterwards.
 *  Thread Starter [patricklux](https://wordpress.org/support/users/patricklux/)
 * (@patricklux)
 * [8 years ago](https://wordpress.org/support/topic/cannot-retrieve-wordpress-database-credentials/#post-10324113)
 * Version: 1.4
    Found /www/htdocs/w01370ce/luxbox/wp-config.php. Opening it for
   reading. Looking for DB_NAME, DB_USER, DB_PASSWORD, DB_HOST and $table_prefix:
   DB_NAME: found ‘d020495d’ DB_USER: found ‘d020495d’ DB_PASSWORD: found (click
   here to view password) DB_HOST: found ‘localhost’ cannot read table_prefix Attempting
   to connect to the DB: OK
 * Attempting to read NinjaFirewall’s options (nfw_options) from the DB:
    Notice:
   Undefined index: table_prefix in /www/htdocs/w01370ce/luxbox/wp-db.php on line
   93 Error: Table ‘d020495d.options’ doesn’t exist Exiting.
 * I was using ithemes security before. Any idea
 *  Thread Starter [patricklux](https://wordpress.org/support/users/patricklux/)
 * (@patricklux)
 * [8 years ago](https://wordpress.org/support/topic/cannot-retrieve-wordpress-database-credentials/#post-10324116)
 * Firewall torubleshooter is returning this:
    NinjaFirewall detection : NinjaFirewall
   is loaded but returned error code #3
 * Loaded INI file : /etc/php70/fpm/php.ini
    user_ini.filename : .user.ini user_ini.
   cache_ttl : 300 seconds User PHP INI : php.ini found – .user.ini found – Warning:
   you have more than one INI file
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [8 years ago](https://wordpress.org/support/topic/cannot-retrieve-wordpress-database-credentials/#post-10324309)
 * It cannot find the `$table_prefix` line in your wp-config.php.
    Can you check
   in your wp-config.php if you see it, and paste the whole line here?
 *  Thread Starter [patricklux](https://wordpress.org/support/users/patricklux/)
 * (@patricklux)
 * [8 years ago](https://wordpress.org/support/topic/cannot-retrieve-wordpress-database-credentials/#post-10324468)
 * /**
    * WordPress Database Table prefix. * * You can have multiple installations
   in one database if you give each * a unique prefix. Only numbers, letters, and
   underscores please! */ $table_prefix = ‘jvgmj_’;
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [8 years ago](https://wordpress.org/support/topic/cannot-retrieve-wordpress-database-credentials/#post-10324603)
 * Move the `$table_prefix = 'jvgmj_';` to a new line so that it looks like this:
 *     ```
       * You can have multiple installations in one database if you give each
       * a unique prefix. Only numbers, letters, and underscores please!
       */ 
       $table_prefix = 'jvgmj_';
       ```
   

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

The topic ‘Cannot retrieve WordPress database credentials’ is closed to new replies.

 * ![](https://ps.w.org/ninjafirewall/assets/icon-256x256.png?rev=976137)
 * [NinjaFirewall (WP Edition) - Advanced Security Plugin and Firewall](https://wordpress.org/plugins/ninjafirewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ninjafirewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ninjafirewall/)
 * [Active Topics](https://wordpress.org/support/plugin/ninjafirewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ninjafirewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ninjafirewall/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/cannot-retrieve-wordpress-database-credentials/#post-10324603)
 * Status: resolved