mysql - bootstrap error trying to enable drupal module with drush -
trying install first drupal module. following book did not work because of "ftp" error installed drush. download seemed work enable command gives me error. i'm noob ubuntu , every part of drupal. help. thanks.
nnh@comp:/var/www/drupal$ sudo drush en module_filter command pm-enable needs higher bootstrap level run - [error] need invoke drush more functional drupal environment run command. drush command 'en module_filter' not executed. [error] drush not able start (bootstrap) drupal database. [error] hint: error occurs when drush trying bootstrap site has not been installed or not have configured database.and tried it. drush attempting connect : drupal version : 7.14 site uri : http: //default database driver : mysql database hostname : localhost database username : drupal7 database name : drupal7 default theme : garland administration theme: garland php configuration : drush version : 5.3 drush configuration: drupal root : /var/www/drupal site path : sites/default modules path : sites/all/modules themes path : sites/all/themes file directory path: sites/default/files %paths : array can select site working database setup specifying uri use --uri parameter on command line or $options['uri'] in drushrc.php file. possibly related:
nnh@comp:~$ sudo dpkg-reconfigure -plow phpmyadmin [sudo] password nnh: /usr/sbin/dpkg-reconfigure: phpmyadmin broken or not installed
drush command-line interface interact, manage , configure drupal , modules. if use drush operations pertaining database, have go through loop address ie., localhost. seems drush understands 127.0.0.1 loop address not localhost.
simply defining these in settings.php allowing drush proceed database related operations.
instead of this
'host' => 'localhost', use this,
'host' => php_sapi_name() == 'cli' ? '127.0.0.1' : 'localhost',
Comments
Post a Comment