getting an error when following instructions on module page https://www.drupal.org/project/drupalmoduleupgrader
Drupal in installed locally in MAMP
drush is installed via: composer global require webflo/drush-shim
drush en drupalmoduleupgrader
Command pm-enable needs a higher bootstrap level to run - you will need to invoke [error]
drush from a more functional Drupal environment to run this command.
The drush command 'en drupalmoduleupgrader' could not be executed. [error]
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
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedbrody created an issue. See original summary.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedI was able to fix the issue by adding unix socket in setting.php like:
'unix_socket' => '/Applications/MAMP/tmp/mysql/mysql.sock',
however a new issue has arise when running drush dmu-analyze MODULE_NAME from Drupal root folder
Comment #3
HongPong CreditAttribution: HongPong at kor group commentedCan you give the results of
drush status
when that command is run from the root of the drupal installation? This module requires a working Drupal environment be available to drush. Putting this as "needs more info" until we know what is going on with drush status.Comment #4
jcnventura CreditAttribution: jcnventura at 1xINTERNET commented