Fatal Error - MySQL_ATTR_INIT_COMMAND

User 6573 Photo


Ambassador
2,649 posts

The Error:

Fatal error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' in /home/myusername/public_html/bealert/fbapp/php/datasavemysql.cls.php on line 72

The Solution:

I finally figured out that my hosting just updated to php 5.3 and when they upgraded they did not enable PDO_MYSQL in php.ini file. I just emailed support and they enabled it and it fixed the error problem.

Thought I share that info in case anyone else comes across the same thing.

Kim :)


Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.