我有两个 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 上应该可以正常工作。
最佳答案
根据example.drushrc.php文件中有一个 $options['dump-dir']
选项,如果临时目录不是 /tmp
关于mysql - Drush Drupal 临时文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29659891/