Zend Framework: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'

Posted by Awan on Stack Overflow See other posts from Stack Overflow or by Awan
Published on 2010-03-24T18:07:15Z Indexed on 2010/03/24 18:13 UTC
Read the original article Hit count: 586

Filed under:
|
|

As you may have known that I switched from ubuntu to windows from my previous questions. I was working on Zend Framework on ubuntu and now working on same project in windows. Because of this switching I facing some problems in windows which was not occurred in ubuntu.

Now I have the following error in firebug console when I go to login page:

<b>Fatal error</b>:  Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' in <b>C:\wamp\www\vcred\library\Zend\Db\Adapter\Pdo\Mysql.php</b> on line <b>93</b><br />

Do you people know that what type of error is this and what is the solution?

I have the following configuration for database.

resources.db.adapter = "Pdo_Mysql"
resources.db.params.host = "localhost"
resources.db.params.username = "root"
resources.db.params.password = ""
resources.db.params.dbname = "test"
resources.db.params.charset = "utf8"

Thanks

© Stack Overflow or respective owner

Related posts about zend-framework

Related posts about Windows