Title: Fatal error &#8211; MYSQL_ATTR_INIT_COMMAND
Last modified: January 24, 2018

---

# Fatal error – MYSQL_ATTR_INIT_COMMAND

 *  Resolved [Sardeh](https://wordpress.org/support/users/sardeh/)
 * (@sardeh)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-mysql_attr_init_command/)
 * I got the same error as listed in the FAQ (see below), but the line extension
   =pdo_mysql.so isn’t commented in my php.ini.
 * What do I do?
    _____________________
 * FAQ:
    I get this error: PHP Fatal error: Undefined class constant ‘MYSQL_ATTR_INIT_COMMAND’
 *  You have to enable PDO_MySQL in php.ini on the WordPress host. That means uncomment
   the line extension=pdo_mysql.so in php.ini
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-mysql_attr_init_command%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Kerfred](https://wordpress.org/support/users/kerfred/)
 * (@kerfred)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-mysql_attr_init_command/#post-9900945)
 * If you use PHP < 5.3 on Windows, it may be:
    extension=php_pdo.dll extension=
   php_pdo_mysql.dll

Viewing 1 replies (of 1 total)

The topic ‘Fatal error – MYSQL_ATTR_INIT_COMMAND’ 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: [8 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-mysql_attr_init_command/#post-9900945)
 * Status: resolved