Frequently Asked Question

I get this error: PHP Fatal error: Undefined class constant ‘MYSQL_ATTR_INIT_COMMAND’
Last Updated about a month ago

PDO and PDO_MySQL libraries are required. You must enable them on the WordPress host.

If you use CPanel:

Enable the PHP extensions:

  • pdo
  • pdo_mysql

Or if your Web server is on Windows:

Edit php.ini and uncomment the line:

 extension=pdo_mysql.so

Or if your Web server is on Ubuntu:

sudo php5enmod pdo
sudo service apache2 reload

If you don’t have access to these commands, please contact the system administrator of your WordPress server.

Please Wait!

Please wait... it will take a second!