Title: Database connection error
Last modified: May 22, 2024

---

# Database connection error

 *  Resolved [corytraina](https://wordpress.org/support/users/corytraina/)
 * (@corytraina)
 * [2 years ago](https://wordpress.org/support/topic/database-connection-error-59/)
 * I have a local environment running on docker, and I’ve downloaded the drupal 
   database and added it to my local phpmyadmin. When I try testing the database
   connection, I get the following error:
 * “Fatal error: Uncaught Error: Undefined constant PDO::MYSQL_ATTR_INIT_COMMAND
   in /var/www/html/wp-content/plugins/fg-drupal-to-wp/admin/class-fg-drupal-to-
   wp-admin.php:638”
 * Any idea how to resolve this error?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Kerfred](https://wordpress.org/support/users/kerfred/)
 * (@kerfred)
 * [2 years ago](https://wordpress.org/support/topic/database-connection-error-59/#post-17774910)
 * Yes, the answer is in the FAQ: [https://www.fredericgilles.net/support/kb/faq.php?id=9](https://www.fredericgilles.net/support/kb/faq.php?id=9)

Viewing 1 replies (of 1 total)

The topic ‘Database connection error’ 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: [2 years ago](https://wordpress.org/support/topic/database-connection-error-59/#post-17774910)
 * Status: resolved