Drush在本地服务器上安装错误(命令pm-enable需要更高的引导级别) [英] Drush install on local server error (Command pm-enable needs a higher bootstrap level)

查看:351
本文介绍了Drush在本地服务器上安装错误(命令pm-enable需要更高的引导级别)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Drush的本地mamp安装上收到一条错误消息

I am getting an error message in Drush on a local mamp install

PDO::__construct(): [2002] Connection refused (trying to connect via tcp://127.0.0.1:3306)             [warning]
environment.inc:517
Command pm-enable needs a higher bootstrap level to run - you will need to invoke drush from a more    [error]
functional Drupal environment to run this command.
The drush command 'en devel' 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 http://drupal.org/node/1428638 for details.

Drush was attempting to connect to: 
  Drupal version    : 7.21
  Site URI          : http://default
  Database driver   : mysql
  Database hostname : 127.0.0.1
  Database username : root
  Database name     : geoslate
  Default theme     : garland
  Administration theme: garland
  PHP configuration : /private/etc/php.ini
  Drush version     : 5.8
  Drush configuration: 
  Drupal root       : /Applications/MAMP/htdocs/geoslate
  Site path         : sites/default
  Modules path      : sites/all/modules
  Themes path       : sites/all/themes
  File directory path: sites/default/files
  %paths            : Array


推荐答案

我的drupal设置需要一个端口,指定MAMP主页上的哪个,对我来说是8889

my drupal settings needed a port specifying which is on the MAMP home page and for me is 8889

这篇关于Drush在本地服务器上安装错误(命令pm-enable需要更高的引导级别)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆