gpt4 book ai didi

database - 一般错误 : 'mysqldump' is not recognized as an internal or external command

转载 作者:搜寻专家 更新时间:2023-10-30 19:45:24 25 4
gpt4 key购买 nike

我正在尝试使用 Spatie 包 从我的 Laravel 应用程序进行备份,但是在运行 backup:run commend 时,我得到了这个错误:

Backup failed because The dump process failed with exitcode 1 : General error : 'mysqldump' is not recognized as an internal or external command,
operable program or batch file.

如何在本地主机和生产环境中解决这个问题?

最佳答案

在您的 config/database.php 文件中,编辑 mysql 数据库配置并添加:

'dump' => [
'dump_binary_path' => 'C:/xampp/mysql/bin/', // only the path, so without `mysqldump` or `pg_dump`
'use_single_transaction',
'timeout' => 60 * 5, // 5 minute timeout
],

关于database - 一般错误 : 'mysqldump' is not recognized as an internal or external command,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38085933/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com