Drupal MySQL errors on fresh Ubuntu 10.04 + LAMP

I have just followed the guide to setting up LAMP on Ubuntu 10.04 here http://library.linode.com/lamp-guides/u … .04-lucid/">http://library.linode.com/lamp-guides/ubuntu-10.04-lucid/

I am trying to move a Drupal 7 site to this install but am getting an error -

Fatal error: Undefined class constant 'MYSQLATTRUSEBUFFEREDQUERY' 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/PDOMYSQL/configure' failed for the pdomysql install

Any help is greatly appreciated!

2 Replies

Use aptitude install php5-mysql always install php extensions from apt if possible. here is a list of them

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct