Title: localhost install: An error occurred while testing the database connection!
Last modified: February 8, 2018

---

# localhost install: An error occurred while testing the database connection!

 *  Resolved [aquakitty](https://wordpress.org/support/users/aquakitty/)
 * (@aquakitty)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/localhost-install-an-error-occurred-while-testing-the-database-connection/)
 * This is really strange. I’ve used Duplicator hundreds of times transferring from
   local to live installs and back.
 * I recently tried transferring a site from live to local for development. Nothing
   has changed since the last time I used it, but now I can’t get past the ajax 
   popup warning on the test: An error occurred while testing the database connection!
   Contact your server admin to make sure the connection inputs are correct!
 * If I ignore the test and just click “next” I get “MySQL has gone away” error.
   I’ve installed this exact same site before from the exact same remote server 
   with no problem so I have no idea what is going on. I ran through all the troubleshooting
   steps here already: [https://snapcreek.com/duplicator/docs/faqs-tech/#faq-installer-100-q](https://snapcreek.com/duplicator/docs/faqs-tech/#faq-installer-100-q)
 * I can connect just fine to the database with a mysqli connect.
 * I even completely reinstalled and reconfigured XAMPP to see if something got 
   corrupted. FTR my other local WordPress installs were working fine with the databases.
 * Local server (trying to install to): Windows 10 Insider Preview build with latest
   XAMPP version, PHP 7.2
 * Remote server (where archive came from): Identical but on Linux. PHP version 
   might be 5.6 but I have MultiPHP manager set to 7.1 so it should be running on
   that.
 * Firewall: Windows firewall is off.
 * The only thing different about the local server is I am on port 800 since 80 
   is blocked, but that has never been an issue before and my server is set up for
   it, and I’ve been using that port for years with Duplicator.

Viewing 1 replies (of 1 total)

 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/localhost-install-an-error-occurred-while-testing-the-database-connection/#post-9950705)
 * Duplicate thread here:
    [https://wordpress.org/support/topic/local-install-issue-an-error-occurred-while-testing-the-database-connection/](https://wordpress.org/support/topic/local-install-issue-an-error-occurred-while-testing-the-database-connection/)
 * Moderators, can you please remove this thread?
 * Thx

Viewing 1 replies (of 1 total)

The topic ‘localhost install: An error occurred while testing the database connection!’
is closed to new replies.

 * ![](https://ps.w.org/duplicator/assets/icon-256x256.png?rev=2906985)
 * [Duplicator - Backups & Migration Plugin - Cloud Backups, Scheduled Backups, & More](https://wordpress.org/plugins/duplicator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duplicator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duplicator/)
 * [Active Topics](https://wordpress.org/support/plugin/duplicator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duplicator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duplicator/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/localhost-install-an-error-occurred-while-testing-the-database-connection/#post-9950705)
 * Status: resolved