D
Asked
I am using laravel 9.5 and mysql 5.7.3. running php artisan migrate command generate this error:
C:\laragon\www\warehouse>php artisan migrate
**************************************
* Application In Production! *
**************************************
Do you really wish to run this command? (yes/no) [no]:
> yes
Migration table created successfully.
Loading stored database schema: C:\laragon\www\warehouse\database\schema/mysql-schema.dump
Symfony\Component\Process\Exception\ProcessFailedException
The command "mysql --user="${:LARAVEL_LOAD_USER}" --password="${:LARAVEL_LOAD_PASSWORD}" --host="${:LARAVEL_LOAD_HOST}" --port="${:LARAVEL_LOAD_PORT}" --database="${:LARAVEL_LOAD_DATABASE}" < "${:LARAVEL_LOAD_PATH}"" failed.
Exit Code: 1(General error)
Working directory: C:\laragon\www\warehouse
Output:
================
Error Output:
================
'mysql' is not recognized as an internal or external command,
operable program or batch file.
at C:\laragon\www\warehouse\vendor\symfony\process\Process.php:267
263▕ */
264▕ public function mustRun(callable $callback = null, array $env = []): static
265▕ {
266▕ if (0 !== $this->run($callback, $env)) {
➜ 267▕ throw new ProcessFailedException($this);
268▕ }
269▕
270▕ return $this;
271▕ }
1 C:\laragon\www\warehouse\vendor\laravel\framework\src\Illuminate\Database\Schema\MySqlSchemaState.php:77
Symfony\Component\Process\Process::mustRun()
2 C:\laragon\www\warehouse\vendor\laravel\framework\src\Illuminate\Database\Console\Migrations\MigrateCommand.php:145
Illuminate\Database\Schema\MySqlSchemaState::load("C:\laragon\www\warehouse\database\schema/mysql-schema.dump")
Please help.
C:\laragon\www\warehouse>php artisan migrate
**************************************
* Application In Production! *
**************************************
Do you really wish to run this command? (yes/no) [no]:
> yes
Migration table created successfully.
Loading stored database schema: C:\laragon\www\warehouse\database\schema/mysql-schema.dump
Symfony\Component\Process\Exception\ProcessFailedException
The command "mysql --user="${:LARAVEL_LOAD_USER}" --password="${:LARAVEL_LOAD_PASSWORD}" --host="${:LARAVEL_LOAD_HOST}" --port="${:LARAVEL_LOAD_PORT}" --database="${:LARAVEL_LOAD_DATABASE}" < "${:LARAVEL_LOAD_PATH}"" failed.
Exit Code: 1(General error)
Working directory: C:\laragon\www\warehouse
Output:
================
Error Output:
================
'mysql' is not recognized as an internal or external command,
operable program or batch file.
at C:\laragon\www\warehouse\vendor\symfony\process\Process.php:267
263▕ */
264▕ public function mustRun(callable $callback = null, array $env = []): static
265▕ {
266▕ if (0 !== $this->run($callback, $env)) {
➜ 267▕ throw new ProcessFailedException($this);
268▕ }
269▕
270▕ return $this;
271▕ }
1 C:\laragon\www\warehouse\vendor\laravel\framework\src\Illuminate\Database\Schema\MySqlSchemaState.php:77
Symfony\Component\Process\Process::mustRun()
2 C:\laragon\www\warehouse\vendor\laravel\framework\src\Illuminate\Database\Console\Migrations\MigrateCommand.php:145
Illuminate\Database\Schema\MySqlSchemaState::load("C:\laragon\www\warehouse\database\schema/mysql-schema.dump")
Please help.
- DAnsweredSolved. No worries. Thanks
- MSAnsweredHello,
WIMS requires MySQL v5.7.8+ as `json` support was added to v5.7.8
Thank you - Login to Reply