big problem Undefined class constant 'MYSQL_ATTR_INIT_COMMAN

For programming and general questions on Zend Framework
Post Reply
jobsfan
Posts: 23
Joined: Sat Sep 08, 2012 3:15 am

big problem Undefined class constant 'MYSQL_ATTR_INIT_COMMAN

Post by jobsfan » Mon Dec 24, 2012 10:39 am

When I upgrade my php version from 5.3.8 to 5.4.8, the application works ok now shows errors.

Fatal error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' in E:\zf2\config\application.config.php on line 19

line 19 is PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES \'UTF8\''

who has encountered this problem?

jobsfan
Posts: 23
Joined: Sat Sep 08, 2012 3:15 am

Re: big problem Undefined class constant 'MYSQL_ATTR_INIT_CO

Post by jobsfan » Tue Dec 25, 2012 1:50 pm

ok,I have solved this problem

mfjqgs2hraztuzs-s414
Posts: 1
Joined: Sat Jan 19, 2013 4:37 pm

Re: big problem Undefined class constant 'MYSQL_ATTR_INIT_CO

Post by mfjqgs2hraztuzs-s414 » Sat Jan 19, 2013 4:38 pm

Hi,

I am having the same problem. Can you tell me how was this fixed?

Post Reply