Title: Wrong mysql credentials crash admin panel
Last modified: April 29, 2022

---

# Wrong mysql credentials crash admin panel

 *  Resolved [javfuller](https://wordpress.org/support/users/javfuller/)
 * (@javfuller)
 * [4 years ago](https://wordpress.org/support/topic/wrong-mysql-credentials-crash-admin-panel/)
 * When the mysql credentials are incorrect in XCloner settings, visiting any wp-
   admin page give “Could not connect to database” error message and fails to load.
 * Found this out recently on several sites where GoDaddy managed WordPress hosting
   updated mysql database credentials and wp-config.php but didn’t update Xcloner
   config.
 * Fix was to go into the database itself and update xlconer_mysql_* options in 
   wp_options table. We couldn’t update credentials via the wp-admin interface because
   we would get the “Could not connect to database” error message instead.
 * You can test this by changing the xlconer credentials to invalid credentials.
   Note you will not be able to get back to the credentials page w/o going into 
   the database itself to fix them.
 * It seems XCloner attempts to connect to the database any time any wp-admin page
   is loaded even if you are not in an XCloner page or performing any XCloner action.
 * Can the logic be changed such that connecting to the database is more limited
   and only occur when necessary instead of each visit to wp-admin?

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

 *  Plugin Support [jimiero](https://wordpress.org/support/users/jimiero/)
 * (@jimiero)
 * [4 years ago](https://wordpress.org/support/topic/wrong-mysql-credentials-crash-admin-panel/#post-15609718)
 * Hello,
 * Thanks for your feedback, i’ve passed it to our engineers.
 *  Plugin Author [watchful](https://wordpress.org/support/users/watchful/)
 * (@watchful)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/wrong-mysql-credentials-crash-admin-panel/#post-15905368)
 * Just a follow up that we are unable to reproduce this in the latest version released
   today.

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

The topic ‘Wrong mysql credentials crash admin panel’ is closed to new replies.

 * ![](https://ps.w.org/xcloner-backup-and-restore/assets/icon-256x256.png?rev=2766426)
 * [Backup, Restore and Migrate your sites with XCloner](https://wordpress.org/plugins/xcloner-backup-and-restore/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/xcloner-backup-and-restore/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/xcloner-backup-and-restore/)
 * [Active Topics](https://wordpress.org/support/plugin/xcloner-backup-and-restore/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/xcloner-backup-and-restore/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/xcloner-backup-and-restore/reviews/)

## Tags

 * [database connection](https://wordpress.org/support/topic-tag/database-connection/)
 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)

 * 2 replies
 * 3 participants
 * Last reply from: [watchful](https://wordpress.org/support/users/watchful/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/wrong-mysql-credentials-crash-admin-panel/#post-15905368)
 * Status: resolved