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.

  1. [pdoexception] sqlstate[hy000] [2006] mysql server has gone away

  2. [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:

  1. the database engine running
  2. you have created database
  3. you have created user , granted permissions database
  4. 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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -