Error 'MYSQL_ATTR_INIT_COMMAND'

Ask all your questions regarding OC 4.x and older. Please read the Support Forum Rules
Forum rules
Version 4 is not supported anymore! Please upgrade your ownCloud for security and support.
Before you post; make sure you are using at least PHP Version 5.3.x - Also read Support Forum - Read this before posting

Error 'MYSQL_ATTR_INIT_COMMAND'

Postby ahevans » Thu Aug 02, 2012 10:58 pm

Hi, this is my setup

Owncloud 4.0.6
WHM 11.32.3
Cent OS 5.8
Apache 2.2.22
Php 5.3.15
MySQL 5.1.63
IE 9

I have a VPS with WHM and CPanel

I have edited the php.ini in usr/local/lib/ and added
extension=pdo_mysql.so
at the end

Restarted Apache numerous times, reuploaded installed files

At install I get the error:
Fatal error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' in /home/****/public_html/****
/lib/db.php on line 123

Completley baffled, please help!
ahevans
Newbie
 
Posts: 5
Joined: Thu Aug 02, 2012 9:43 pm

Re: Error 'MYSQL_ATTR_INIT_COMMAND'

Postby FordPrefect » Thu Aug 02, 2012 11:09 pm

isn't there a

Code: Select all
extension=php_mysql.so
extension=php_mysqli.so


needed? Really I am not sure, but vaguely remember something like this.
FordPrefect
Helpful Elf
 
Posts: 144
Joined: Tue Feb 28, 2012 12:10 am

Re: Error 'MYSQL_ATTR_INIT_COMMAND'

Postby ahevans » Sat Aug 04, 2012 5:31 pm

Those are related to mysql and the error is related to a php feature, really stuck, please someone help before I bin owncloud and have to think about another solution
ahevans
Newbie
 
Posts: 5
Joined: Thu Aug 02, 2012 9:43 pm

Re: Error 'MYSQL_ATTR_INIT_COMMAND'

Postby FordPrefect » Sat Aug 04, 2012 11:44 pm

Well, to me it sounded mySQL related ... hope you can solve the problem!
FordPrefect
Helpful Elf
 
Posts: 144
Joined: Tue Feb 28, 2012 12:10 am

Re: Error 'MYSQL_ATTR_INIT_COMMAND'

Postby ahevans » Sun Aug 05, 2012 10:55 am

Infact, you were right, the PHP build on the server didnt have PDO MySQL enabled
ahevans
Newbie
 
Posts: 5
Joined: Thu Aug 02, 2012 9:43 pm

Re: Error 'MYSQL_ATTR_INIT_COMMAND'

Postby FordPrefect » Sun Aug 05, 2012 7:04 pm

Cool ... so this works now for you?
FordPrefect
Helpful Elf
 
Posts: 144
Joined: Tue Feb 28, 2012 12:10 am


Return to ownCloud Community Edition 4.x and older

Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 9 guests