Closed (fixed)
Project:
Drush
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Apr 2009 at 15:28 UTC
Updated:
8 Oct 2010 at 16:45 UTC
Hi,
after upgrading to Drush-HEAD on FreeBSD here, I'm bumping into this
could not find driver [warning]
Drush was not able to start (bootstrap) the Drupal database. [error]
each time I try to do something with Drush. Also, there's
Drush was attempting to connect to :
Drupal Root : /path/to/druparoot
Drupal version : 6.10
Site Path : sites/mysite.com
Site URI : http://www.mysite.com
Database Driver : mysqli
Database Hostname : localhost
Database Username : mysql_user
Database Name : drupal_database
Database Name : mypassword
Cheers,
Nico
Comments
Comment #1
adrian commentedThis is related to the new PDO based db credential test we do.
Which version of php are you using, and could you please do a phpinfo(); and check if you have
the mysql driver for PDO.
Comment #2
adrian commentedKeep in mind. Drupal 7 will also not work if you don't have the necessary PDO driver (mysql)
Comment #3
adrian commentedI added in a test for the driver availability. This avoids the test, but this also removes a layer of protection from drupal messing things up.
Comment #4
dennys commentedI have this question too and I think my PDO is enabled (from phpinfo()). My php is 5.2.9 and I just download newest version. Any suggestion for it? thanks.
PDO support enabled
PDO drivers sqlite, pgsql, mysql, sqlite2
Comment #5
nschloe commentedOkay, I installed PDO now, phpinfo() says
and
The boostrap error does indeed disappear! :)
The next error I bumped into is
:( I'm not challenged for a user password at all, might that be the reason?
Comment #6
moshe weitzman commentedthere is no command `pm update` anymore. you want `updatecode` or `update`. please run `drush help` to review the list of commands. Names have changed.
Comment #7
nschloe commentedOh gosh, that's right, sorry for the noise.
It would possibly be useful to give some error message about that, like `drush: unrecognized option 'pm update'`, and then the output of `drush help` or something like that.