我试图使德比安8与Drupal 8钻孔工作。
不幸的是,执行drush entity-updates会返回以下错误消息:
命令实体-更新需要更高的引导级别才能运行--您需要从功能更强的Drupal环境中调用drush来运行此命令。命令实体-更新要求8+核心版本run.的run.命令‘实体-更新’无法执行。
从drush -vd status执行的.../sites/default返回以下内容:
.../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将得到以下结果:
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?。
发布于 2018-01-04 13:27:23
这里也有同样的问题。
在我的例子中,我发现drush使用的是原生mysql命令,而不是php。然后我安装了
apt-获取安装mysql-client
而且效果很好。
对于windows用户,我认为必须安装mysql cli命令这里。
https://drupal.stackexchange.com/questions/179201
复制相似问题