Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Apr 23, 2011 2:22 am 
Offline
Newbie

Joined: Sat Apr 23, 2011 2:11 am
Posts: 2
I have just followed the guide to setting up LAMP on Ubuntu 10.04 here http://library.linode.com/lamp-guides/u ... .04-lucid/

I am trying to move a Drupal 7 site to this install but am getting an error -
Fatal error: Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY' in /srv/www/mysite.com/public_html/includes/database/mysql/database.inc on line 43

I googled the error and it looks like I need to install pdo - so I tried
pecl install pdo
pecl install pdo_mysql

but get "make" failed for the pdo install and
`/root/tmp/pear/temp/PDO_MYSQL/configure' failed for the pdo_mysql install

Any help is greatly appreciated!


Top
   
 Post subject:
PostPosted: Sat Apr 23, 2011 6:15 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Use
Code:
aptitude install php5-mysql
always install php extensions from apt if possible. here is a list of them

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject: Thanks!
PostPosted: Sat Apr 23, 2011 7:14 am 
Offline
Newbie

Joined: Sat Apr 23, 2011 2:11 am
Posts: 2
Thanks a million!!!!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group