Title: Conection error database &#8211; Import
Last modified: October 14, 2023

---

# Conection error database – Import

 *  Resolved [marquillos](https://wordpress.org/support/users/marquillos/)
 * (@marquillos)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/conection-error-database-import/)
 * Hello!
 * How do I fix this error when trying to import:
 * Connection error. Visit the admin area for more details or open the config.php
   file and check the database information. Message: Access denied for user ‘test’@’localhost’(
   using password: YES).
 * I’m importing to a subdomain for testing
 * Thanks

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

 *  Plugin Author [Yani](https://wordpress.org/support/users/yaniiliev/)
 * (@yaniiliev)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/conection-error-database-import/#post-17124412)
 * When do you encounter this error exactly? Can you describe the steps you are 
   taking and when you see this message?
    Thank you!
 *  Thread Starter [marquillos](https://wordpress.org/support/users/marquillos/)
 * (@marquillos)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/conection-error-database-import/#post-17124414)
 * Hi Yani,
 * When the plugin is importing the database it does not go above 96%. I waited 
   15 minutes and nothing. I opened the url from another tab and it showed me this
   message.
 *  Plugin Author [Yani](https://wordpress.org/support/users/yaniiliev/)
 * (@yaniiliev)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/conection-error-database-import/#post-17124425)
 * It appears that the issue might stem from plugins or themes that are trying to
   make direct database connections, bypassing WordPress’s `$wpdb` object and the
   credentials in `wp-config.php`. Another possibility is that the database server
   is crashing post-import.
 * Here’s how you can troubleshoot this:
 * 1. Rename the `wp-content/plugins` folder to `wp-content/plugins-disabled`. This
   will deactivate all the plugins.
 * 2. Similarly, rename `wp-content/themes` to `wp-content/themes-disabled`. This
   will revert your site to a default WordPress theme.
 * By doing these steps, you can isolate whether a specific plugin or theme is causing
   the database connection issue. If the site works successfully after this, you
   can rename the folders back to their original names and activate each plugin 
   and theme one by one to identify the culprit.
 *  Thread Starter [marquillos](https://wordpress.org/support/users/marquillos/)
 * (@marquillos)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/conection-error-database-import/#post-17125060)
 * The error persists, I think it is something of the current version of the plugin,
   because I imported a backup of October 4 and it imported successfully.
 *  Plugin Author [Yani](https://wordpress.org/support/users/yaniiliev/)
 * (@yaniiliev)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/conection-error-database-import/#post-17129755)
 * Think about what changed on the website between October 4 and the date of the
   backup that does not work. If you installed a plugin or made some changes then
   likely that’s the cause of it.

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

The topic ‘Conection error database – Import’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-wp-migration/assets/icon-256x256.png?rev=2458334)
 * [All-in-One WP Migration and Backup](https://wordpress.org/plugins/all-in-one-wp-migration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-wp-migration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-wp-migration/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-wp-migration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-wp-migration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-wp-migration/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Yani](https://wordpress.org/support/users/yaniiliev/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/conection-error-database-import/#post-17129755)
 * Status: resolved