php - mysql server has gone away error during installing migration (laravel) -
so using cmd on laravel folder , tried (php artisan migrate:install). 2 errors came up.
[pdoexception] sqlstate[hy000] [2006] mysql server has gone away
[errorexception] pdo::__construct(): mysql server has gone away
can please explain did wrong?
this not laravel issue, general mysql issue. maybe server not running. sure you're running mysql in background?
check link: mysql gone away
do following checks in system:
- the database engine running
- you have created database
- you have created user , granted permissions database
- you have setup user , database in laravel's .env file.
after this, try run migrations command again, is:
php artisan migrate
as explained here
let know if helps :).
Comments
Post a Comment