1

I want to export the database, right in laravel 8.x there is a new command for it, namely using php artisan schema:dump, but I found an error, as follows :

sh: 1: mysqldump: not found

Symfony\Component\Process\Exception\ProcessFailedException

The command "mysqldump --user="${:LARAVEL_LOAD_USER}" --password="${:LARAVEL_LOAD_PASSWORD}" --host="${:LARAVEL_LOAD_HOST}" --port="${:LARAVEL_LOAD_PORT}" --skip-add-locks --skip-comments --skip-set-charset --tz-utc "${:LARAVEL_LOAD_DATABASE}" --routines --result-file="${:LARAVEL_LOAD_PATH}" --no-data" failed.

Exit Code: 127(Command not found)

Working directory: /opt/lampp/htdocs/BELAJAR/Laravel8

Output:

Error Output:

sh: 1: mysqldump: not found

at vendor/symfony/process/Process.php:257 253▕ */ 254▕ public function mustRun(callable $callback = null, array $env = []): self 255▕ { 256▕ if (0 !== $this->run($callback, $env)) { ➜ 257▕ throw new ProcessFailedException($this); 258▕ } 259▕ 260▕ return $this; 261▕ }

  +16 vendor frames 

17 artisan:37 Illuminate\Foundation\Console\Kernel::handle()

Rizal ihwan
  • 41
  • 1
  • 4

0 Answers0