2015-02-08 8 views
0

мне нужно изменить пользовательский проход администратора в Друпала серверами opehsift RHC с помощью Drush команды, так что я использовал:OpenShift пароль пользователя изменить Drush

drush user-password admin --password="newpasswordhere" 

и я получил ошибку:

[drush2-drupal4ss.rhcloud.com openpublic]\> drush user-password admin --passwor 
d="newpasswordhere" 
Command user-password needs a higher bootstrap level to run - you [error] 
will need to invoke drush from a more functional Drupal environment 
to run this command. 
The drush command 'user-password admin' 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.34 
Site URI    : drush2-drupal4ss.rhcloud.com 
Default theme   : garland 
Administration  : garland 
theme 
PHP executable  : /usr/bin/php 
PHP configuration  : /var/lib/openshift/54d7161ffcf933c4b30000 
          60/php/configuration/etc/php.ini 
PHP OS    : Linux 
Drush version   : 6.2.0 
Drush configuration : /var/lib/openshift/54d7161ffcf933c4b30000 
          60/.drush/drushrc.php 
Drush alias files  : 
Drupal root   : /var/lib/openshift/54d7161ffcf933c4b30000 
          60/app-root/runtime/repo/php 
Site path    : sites/default 
File directory path : sites/default/files 

И в чем проблема, кто должен сделать configure drush доступ к моей базе данных mysql? Итак, спасибо большое

ответ

0

Выход команды drush не показывает настройки подключения к базе данных. Я полагаю, файл settings.php не находится в папке sites/default/. Вы должны добавить аргумент drush -l your.website.url и предоставить базовый URL вашего сайта, чтобы drush мог найти местоположение вашего settings.php.

Попытайтесь использовать псевдонимы сайтов, они определяют корневую папку, а также базовый URL-адрес вашего (-а) установки drupal. Запустите drush topic docs-aliases для получения дополнительной информации.