【问题标题】:Drush Drupal temp folderDrush Drupal 临时文件夹
【发布时间】:2015-06-21 23:37:32
【问题描述】:

我有两个 Drupal 7 站点。我想让它们与 drush 命令保持同步:

drush sql-sync SOURCE DEST

当我回答 y 覆盖数据库时,我收到以下错误:

mysqldump: Can't create/write to file '/tmp/filename.sql' (errorcode 2 - no such file or directory)

我的两个站点都在 Windows 2012 R2 服务器上运行。所以临时文件夹应该是 d:\temp。如果我转到命令提示符并键入echo %TEMP%,它将返回 d:\temp。

有人有什么建议吗?根据我能找到的一切,这在 Windows 上应该可以正常工作。

【问题讨论】:

    标签: mysql windows drupal-7 drush


    【解决方案1】:

    根据example.drushrc.php文件有一个$options['dump-dir']选项,如果临时目录不是/tmp,你应该设置它

    【讨论】:

      猜你喜欢
      • 2015-03-08
      • 1970-01-01
      • 2014-03-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-12-06
      相关资源
      最近更新 更多