By Rajesh Vishwakarma


2016-06-19 14:45:09 8 Comments

I have installed Drush 8.1.2 on Windows 7, but it doesn't work. Few command are working, but few are not working.

  • drush uli 1 works
  • drush dl <project name> works
  • drush en <project name> doesn't work
  • drush cc all doesn't work

Running drush en "module name", I get the following:

Command pm-enable needs a higher bootstrap level to run - you will need to invoke drush from a more functional Drupal environment to run this command. The drush command 'en fieldupdate' could not be executed.
Drush was not able to start (bootstrap) the Drupal database.
Hint: This may occur when Drush is trying to:

  • bootstrap a site that has not been installed or does not have a configured database. In this case you can select another site with a working database setup by specifying the URI to use with the --uri parameter on the command line. See drush topic docs-aliases for details.
  • connect the database through a socket. The socket file may be wrong or the php-cli may have no access to it in a jailed shell. See http://drupal.org/node/1428638 for details.

    Drush was attempting to connect to:
    Drupal version : 7.34
    Site URI : http://default
    Database driver : mysql
    Database hostname : localhost
    Database port :
    Database username : root
    Database name : staticpages
    PHP configuration : C:\xampp\php\php.ini
    PHP OS : WINNT
    Drush script : C:\Users\ins237\AppData\Roaming\Composer \vendor\drush\drush\drush
    Drush version : 8.1.2
    Drush temp directory : C:/Users/ins237/AppData/Local/Temp
    Drush configuration :
    Drush alias files :
    Drupal root : C:\xampp\htdocs\cms-staticpages
    Drupal Settings File : sites/default/settings.php
    Site path : sites/default

Related Questions

Sponsored Content

3 Answered Questions

[SOLVED] "drush up" fails with "pm-updatestatus failed."

  • 2016-08-20 23:34:41
  • George Blackburn
  • 1067 View
  • 1 Score
  • 3 Answer
  • Tags:   drush updating

1 Answered Questions

[SOLVED] Beginner Drush question. Can't get Drush to do anything!

  • 2015-04-24 21:28:19
  • Subcitizen
  • 809 View
  • 2 Score
  • 1 Answer
  • Tags:   drush

1 Answered Questions

The database is not bootstrapped in another docker container

  • 2018-09-13 14:55:45
  • aib-dit
  • 273 View
  • 1 Score
  • 1 Answer
  • Tags:   drush

2 Answered Questions

[SOLVED] Drush php-script | Drupal functions such as node_load() are not being found

  • 2014-06-28 07:51:17
  • Francisco Luz
  • 970 View
  • 1 Score
  • 2 Answer
  • Tags:   drush

3 Answered Questions

[SOLVED] Drush enable module | not working | Drupal 7 on WAMP with PostgreSQL

  • 2014-03-02 17:20:53
  • Cmweb
  • 3170 View
  • 1 Score
  • 3 Answer
  • Tags:   drush database

1 Answered Questions

2 Answered Questions

Error in executing drush command

  • 2013-12-25 08:00:06
  • Harshil
  • 144 View
  • 0 Score
  • 2 Answer
  • Tags:   7 drush

1 Answered Questions

Drush cannot connect to mysql

  • 2015-03-04 12:38:47
  • weristsam
  • 753 View
  • 0 Score
  • 1 Answer
  • Tags:   drush

Sponsored Content