Title: Socket Error on Import
Last modified: June 13, 2018

---

# Socket Error on Import

 *  Resolved [sierranevada](https://wordpress.org/support/users/sierranevada/)
 * (@sierranevada)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/socket-error-on-import/)
 * When I run the connection test I get the following error:
 * === START test_database 2018-06-13 18:48:49 ===
    [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] Can’t connect to local MySQL server through socket ‘/var/
   lib/mysql/mysql.sock’ (2)
 * I checked the FAQ but didn’t see a solution that would work. I’m trying to import
   an old site using drupal 5.7 into wordpress.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Kerfred](https://wordpress.org/support/users/kerfred/)
 * (@kerfred)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/socket-error-on-import/#post-10398229)
 * Is Drupal located on the same server as WordPress?
    And what did you put in the
   database parameters fields?

Viewing 1 replies (of 1 total)

The topic ‘Socket Error on Import’ 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: [7 years, 11 months ago](https://wordpress.org/support/topic/socket-error-on-import/#post-10398229)
 * Status: resolved