So I'm trying to upgrade our system from using Drush 6 to Drush 8, as that is the currently supported version of Drush that supports Drupal 7. I have managed to get drush working, however it does not recognize any of our environments as a Drupal environment.
If I run
drush cc all I get back:
No Drupal site found, only 'drush' cache was cleared.
If I run any other Drush command (from my sites directory) I get back:
Command 'command' needs a higher bootstrap level to run.
drush status returns no DB information at all.
Now there seems to be quite a few questions out there like this, and lots of recommended solutions, but nothing is pertinent to my environment. I'm using IIS on a Windows Server machine, with SQL Server (not MySQL), so none of the solutions are applicable. I'm wondering if anyone has any ideas for solving this within my current environment?
Keeping in mind, all of these environments worked fine with no issue prior to upgrading to Drush 8 (using Drush 6).
drush -v status:
Loading outputformat engine. [notice] PHP configuration : "C:\Program Files (x86)\PHP\5.6.26\php.ini" PHP OS : WINNT Drush script : location/of/drush Drush version : 8.1.13 Drush temp directory : temp/location Drush configuration : Drush alias files : Command dispatch complete [notice]
settings.php file database settings:
$databases['default']['default'] = array( 'database' => 'databasename', 'username' => 'username', 'password' => 'password', 'host' => 'hostName', 'driver' => 'sqlsrv', );
drush sql-connect command returns:
Unable to load class
Unable to find matching SQL Class.
Drush cannot find your database connection details.
I should also mention that
drush site-install works fine, it's just running Drush inside a newly created area that doesn't work.
To clarify, I am using a multi-tenant install, so I have multiple tenants such as
For example I am running
drush from the
sites/tenant directory and Drush doesn't recognise my Drupal installation. Traditionally, before updating, I could run
drush from inside any of those and everything would work.