laravel数据库迁移报错:'mysqldump' is not recognized as an internal or external command
Laravel  /  管理员 发布于 1星期前   145
在windows10系统中使用phpStudy运行laravel项目
环境变量
D:\phpStudy\MySQL\bin
laravel框架执行迁移命令
php artisan schema:dump
报错:
’mysqldump’ is not recognized as an internal or external command,
vendor\symfony\process\Process.php:272
268▕ */
269▕ public function mustRun(callable $callback = null, array $env = []): self
270▕ {
271▕ if (0 !== $this->run($callback, $env)) {
➜ 272▕ throw new ProcessFailedException($this);
273▕ }
274▕
275▕ return $this;
276▕ }
解决方式:
需要在配置文件config/database.php中配置
'connections' => [
'mysql' => [
'driver' => 'mysql'
...,
'dump' => [
'dump_binary_path' => 'D:\phpStudy\MySQL\bin', // only the path, so without `mysqldump` or `pg_dump`
'use_single_transaction',
'timeout' => 60 * 5, // 5 minute timeout
],
],
就可以了
nkt 在
阿里云香港服务器搭建自用vpn:Shadowsocks使用流程步骤中评论 用了三分钟就被禁了,直接阿里云服务器22端口都禁了..熊丽 在
安装docker + locust + boomer压测环境实现对接口的压测中评论 试试水..博主 在
阿里云香港服务器搭建自用vpn:Shadowsocks使用流程步骤中评论 @test 也可能是国内大环境所至,也是好事,督促你该研究学习新技术..test 在
阿里云香港服务器搭建自用vpn:Shadowsocks使用流程步骤中评论 打了一次网页,然后再也打不开了。。是阿里云的缘故吗?..博主 在
centos7中Meili Search搜索引擎安装流程步骤中评论 @鹿 执行以下命令看看你的2.27版本是否存在strin..
Copyright·© 2019 侯体宗版权所有·
粤ICP备20027696号