Title: Connection Failed (database)
Last modified: July 17, 2023

---

# Connection Failed (database)

 *  Resolved [Volvera](https://wordpress.org/support/users/emresert86/)
 * (@emresert86)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/connection-failed-database/)
 * I enter the correct credentials of the drupal “**Connection failed**
   **See the
   errors in the log below**” message and the log is completely empty. I can’t get
   past this step.

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

 *  Thread Starter [Volvera](https://wordpress.org/support/users/emresert86/)
 * (@emresert86)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/connection-failed-database/#post-16900635)
 * I enter the correct credentials of the drupal site’s database*
 *  Thread Starter [Volvera](https://wordpress.org/support/users/emresert86/)
 * (@emresert86)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/connection-failed-database/#post-16900696)
 * i exported drupal site’s database and imported to the wordpress site’s database
   and entered wordpress site’s database credentials and it says the connection 
   is successful but when i click on import it starts and stops immediately. the
   log is always empty so i can’t see what the error is!
 *  Plugin Author [Kerfred](https://wordpress.org/support/users/kerfred/)
 * (@kerfred)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/connection-failed-database/#post-16900975)
 * You can find the log file in the directory wp-content/uploads. What is its content?
 *  Thread Starter [Volvera](https://wordpress.org/support/users/emresert86/)
 * (@emresert86)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/connection-failed-database/#post-16900985)
 * It imported the text based content and pages but it does not import any media
   files for some reason
 *  Plugin Author [Kerfred](https://wordpress.org/support/users/kerfred/)
 * (@kerfred)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/connection-failed-database/#post-16901007)
 * In this case, please check the URL field ; it must contain the URL of the original
   Drupal site. And this site must be online.
 *  Thread Starter [Volvera](https://wordpress.org/support/users/emresert86/)
 * (@emresert86)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/connection-failed-database/#post-16901507)
 * yeah it doesn’t work. i noticed it only imported pages with the urls “…/content/…”
   but the images are under “…/photos/…” . does it have to do with anything?
 *  Plugin Author [Kerfred](https://wordpress.org/support/users/kerfred/)
 * (@kerfred)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/connection-failed-database/#post-16901554)
 * If the media files are not stored in the default directory, you can change it
   with the field “Public file path”.
 *  [slasher4k](https://wordpress.org/support/users/slasher4k/)
 * (@slasher4k)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/connection-failed-database/#post-17043238)
 * I also have a problem connecting, I have a database hosted on amazon, I can connect
   to it from my pc via the command line and using beekeeper studio, yet when I 
   put the same credentials into  [FG Drupal to WordPress](https://www.fredericgilles.net/support/kb/faq.php?cid=6)
   it can’t connect
 * ![](https://wordpress.org/62475df4-1fac-4897-afdc-333c1d4fe91d)
 *  Plugin Author [Kerfred](https://wordpress.org/support/users/kerfred/)
 * (@kerfred)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/connection-failed-database/#post-17043608)
 * 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 9 replies - 1 through 9 (of 9 total)

The topic ‘Connection Failed (database)’ 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/)

 * 9 replies
 * 3 participants
 * Last reply from: [Kerfred](https://wordpress.org/support/users/kerfred/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/connection-failed-database/#post-17043608)
 * Status: resolved