首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >命令实体-更新需要更高的引导级别才能运行。

命令实体-更新需要更高的引导级别才能运行。
EN

Drupal用户
提问于 2015-10-29 19:25:39
回答 1查看 2K关注 0票数 0

我试图使德比安8与Drupal 8钻孔工作。

不幸的是,执行drush entity-updates会返回以下错误消息:

命令实体-更新需要更高的引导级别才能运行--您需要从功能更强的Drupal环境中调用drush来运行此命令。命令实体-更新要求8+核心版本run.的run.命令‘实体-更新’无法执行。

drush -vd status执行的.../sites/default返回以下内容:

代码语言:javascript
复制
.../sites/default# drush -vd status
Starting Drush preflight. [0.04 sec, 2.09 MB]                        [preflight]
Loading drushrc "/etc/drush/drushrc.php" into "system" scope. [0.04  [bootstrap]
sec, 2.09 MB]
Cache MISS cid: 7.1.0-commandfiles-0-81cc86c1995ab7206f383ec28ad43baf    [debug]
[0.09 sec, 2.14 MB]
Cache SET cid: 7.1.0-commandfiles-0-81cc86c1995ab7206f383ec28ad43baf     [debug]
[0.12 sec, 2.16 MB]
Bootstrap to phase 0. [0.53 sec, 6.04 MB]                            [bootstrap]
Found command: core-status (commandfile=core) [0.54 sec, 6.05 MB]    [bootstrap]
Loading outputformat engine. [0.54 sec, 6.06 MB]                        [notice]
Calling hook drush_core_status [0.55 sec, 6.11 MB]                       [debug]
Returned from hook drush_core_status [0.55 sec, 6.11 MB]                 [debug]
 PHP executable         :  /usr/bin/php
 PHP configuration      :  /etc/php5/cli/php.ini
 PHP OS                 :  Linux
 Drush script           :  /root/.composer/vendor/drush/drush/drush.php
 Drush version          :  7.1.0
 Drush temp directory   :  /tmp
 Drush configuration    :  /etc/drush/drushrc.php
 Drush alias files      :

Command dispatch complete [0.63 sec, 6.25 MB]                           [notice]

运行从drush sqlc执行的.../sites/default将得到以下结果:

代码语言:javascript
复制
Unable to load class Drush\Sql\Sql                                   [error]
exception 'Drush\Sql\SqlException' with message 'Unable to find a    [error]
matching SQL Class. Drush cannot find your database connection
details.' in
/root/.composer/vendor/drush/drush/commands/sql/sql.drush.inc:597
Stack trace:
#0
/root/.composer/vendor/drush/drush/commands/sql/sql.drush.inc(454):
drush_sql_get_class()
#1 [internal function]: drush_sql_cli()
#2 /root/.composer/vendor/drush/drush/includes/command.inc(359):
call_user_func_array('drush_sql_cli', Array)
#3 /root/.composer/vendor/drush/drush/includes/command.inc(210):
_drush_invoke_hooks(Array, Array)
#4 [internal function]: drush_command()
#5 /root/.composer/vendor/drush/drush/includes/command.inc(178):
call_user_func_array('drush_command', Array)
#6
/root/.composer/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(62):
drush_dispatch(Array)
#7 /root/.composer/vendor/drush/drush/drush.php(70):
Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#8 /root/.composer/vendor/drush/drush/drush.php(11): drush_main()
#9 {main}

我读过其他的话题,但没有一种解决方案看起来可行。

我已经按照这里提供的说明安装了钻孔,如何在Debian 8上正确安装drush 8?

EN

回答 1

Drupal用户

回答已采纳

发布于 2018-01-04 13:27:23

这里也有同样的问题。

在我的例子中,我发现drush使用的是原生mysql命令,而不是php。然后我安装了

apt-获取安装mysql-client

而且效果很好。

对于windows用户,我认为必须安装mysql cli命令这里

票数 0
EN
页面原文内容由Drupal提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://drupal.stackexchange.com/questions/179201

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档