The error that occurs is:
Fatal error: Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY' in /www/drupalhead/includes/database/mysql/database.inc on line 31

This same instance of drush works perfectly on my localhost d6 and d5 sites, so I assume we're just chasing head here, but I wanted to report it anyway for sanity's sake. :)

Comments

Senpai’s picture

Title: Fatal error in D7 HEAD whie running 'drush update' » Fatal error in D7 HEAD while running 'drush update'
macattack2k’s picture

I'm receiving the same message running drush update on 7.x-dev. Elsewhere in the world, PHPers were complaining about it: http://bugs.php.net/bug.php?id=47224

I'm not savvy enough to handle this one personally.

moshe weitzman’s picture

Status: Active » Closed (fixed)

drush is not d7 compatible for the most part. and anyway, db updates from head to head are not supported by drupal.

mgifford’s picture

I got the same error with the latest CVS version while using simpleTest:

$ /usr/bin/php ./scripts/run-tests.sh --url http://localhost:8888/drupal-cvs/ --clean

Fatal error: Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY' in /Applications/MAMP/htdocs/drupal-cvs/includes/database/mysql/database.inc on line 31

scor’s picture

I had the same problem on Mac OS using MAMP when I tried to run the run-test.sh on D7 like in #4. The problem was simply due to a bad version of PHP. Using the MAMP php binary works:

/Applications/MAMP/bin/php5/bin/php ./scripts/run-tests.sh

hope that helps.

vosechu’s picture

To get d7's installer going edit /Applications/MAMP/conf/php5/php.ini and uncomment the pdo_mysql extension to get MySQL running.

tajh’s picture

On FreeBSD, you need to install the pdo_mysql module on top of your PHP installation:

portmaster databases/php5-pdo_mysql

or

cd /usr/ports/databases/php5-pdo_mysql; make install;

If you haven't already installed mbstring do that too: portmaster converters/php5-mbstring

The ports automatically edit your php/extensions.ini file for you.

Restart your webserver, then start the installation.

sukr_s’s picture

works if php_pdo_mysql is enabled. You can do this by uncommenting extension=php_pdo_mysql.dll in php.ini and restarting apache

anand’s picture

Component: Code » PM (dl, en, up ...)

Received the same error on linux (Ubuntu 10.10), solution was to install php5-mysql . Note that /etc/php5/conf.d/pdo.ini already enabled the pdo option.