Title: Database connection failed
Last modified: January 15, 2025

---

# Database connection failed

 *  Resolved [rujuta999](https://wordpress.org/support/users/rujuta999/)
 * (@rujuta999)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/database-connection-failed-4/)
 * I’m not able to connect with Drupal database. Getting following error. I checked
   FAQ but couldn’t understand where the changes are supposed to be made.
 * === START test_database 2025-01-15 21:32:32 ===
   [ERROR] Couldn’t connect to the
   Drupal database. Please check your parameters. And be sure the WordPress server
   can access the Drupal database.SQLSTATE[HY000] [2002] Connection refused

Viewing 1 replies (of 1 total)

 *  Plugin Author [Kerfred](https://wordpress.org/support/users/kerfred/)
 * (@kerfred)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/database-connection-failed-4/#post-18246903)
 * If Drupal and WordPress are not installed on the same host, you can do this:
    - export the Drupal database to a SQL file (with phpMyAdmin for example)
    - import this SQL file on the same database as WordPress
    - run the migration by using WordPress database credentials (host, user, password,
      database) instead of the Drupal ones in the plugin settings. You can find 
      the WordPress credentials in the wp-config.php file.

Viewing 1 replies (of 1 total)

The topic ‘Database connection failed’ is closed to new replies.

 * ![](https://ps.w.org/fg-drupal-to-wp/assets/icon-256x256.png?rev=1490014)
 * [FG Drupal to WordPress](https://wordpress.org/plugins/fg-drupal-to-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/fg-drupal-to-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/fg-drupal-to-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/fg-drupal-to-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fg-drupal-to-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fg-drupal-to-wp/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kerfred](https://wordpress.org/support/users/kerfred/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/database-connection-failed-4/#post-18246903)
 * Status: resolved