Error 'MYSQL_ATTR_INIT_COMMAND'

Ask all your questions regarding OC 5.x Please read the Support Forum Rules
Forum rules
ownCloud 5.x reached end of life and is officially unsupported. For details see Wiki page.

Please upgrade your ownCloud.
ahevans
Newbie
Posts: 7
Joined: Thu Aug 02, 2012 9:43 pm

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!

FordPrefect
Helpful Elf
Posts: 144
Joined: Tue Feb 28, 2012 12:10 am

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.

ahevans
Newbie
Posts: 7
Joined: Thu Aug 02, 2012 9:43 pm

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

FordPrefect
Helpful Elf
Posts: 144
Joined: Tue Feb 28, 2012 12:10 am

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!

ahevans
Newbie
Posts: 7
Joined: Thu Aug 02, 2012 9:43 pm

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

FordPrefect
Helpful Elf
Posts: 144
Joined: Tue Feb 28, 2012 12:10 am

Re: Error 'MYSQL_ATTR_INIT_COMMAND'

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

Cool ... so this works now for you?


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Community Edition 5.x and older”

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 1 guest