I'm trying to get drush working on my ubuntu laptop because I want to try out the omega theme in Drupal, but some commands just don't work.
For example: drush en omega
or drush omega-wizard
The Error I get: Drush was not able to start (bootstrap) the Drupal database. or Command pm-enable needs a higher bootstrap level to run - you will [error] need to invoke drush from a more functional Drupal environment to run this command.
I've read in other threads, that this has something to do with drush not being able to connect to my mysql database and that I should change 'localhost' to '127.0.0.1' in my settings.php.
I am using XAMPP and drush v 7.0-dev on my ubuntu 14.04.
I've also tried setting drush up on my windows 8.1 machine with xampp and ran into the same error.
Please help me, I ve been trying the whole weekend to set drush up and I am getting really desperate :(
The full error msg for 'omega-wizard'
The drush command 'omega-wizard' could not be found. Run drush [error]
cache-clear drush
to clear the commandfile cache if you have
installed new extensions.
Drush was not able to start (bootstrap) the Drupal database. [error]
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.31
Site URI : http:// default
Database driver : mysql
Database hostname : localhost
Database port :
Database username : root
Database name : drupal1
PHP executable : /usr/bin/php
PHP configuration : /etc/php5/cli/php.ini
PHP OS : Linux
Drush version : 7.0-dev
Drush temp directory : /tmp
Drush configuration :
Drush alias files :
Drupal root : /home/trautmann/websites/mywebsite
Site path : sites/default