0

I have a local Laravel installation that works fine on Windows, but when I move the project to Linux, I get this error:

Illuminate \ Database \ QueryException (2002) SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from users where email = bk@gmail.com and status = 1 limit 1)

Previous exceptions:

SQLSTATE[HY000] [2002] No such file or directory (2002) SQLSTATE[HY000] [2002] No such file or directory (2002)

What could be the reason?

Note: Linux system is newly set up.

Elisha Senoo
  • 3,489
  • 2
  • 22
  • 29

1 Answers1

1

I have clone project from github fresh and run

-- composer update -- php artisan cache:clear -- php artisan view:clear -- php artisan route:clear -- php artisan clear-compiled -- php artisan config:cache -- php artisan config:clear

-- php artisan migrate:refresh -- php artisan migrate:refresh --seed -- php artisan db:seed

-- composer dump-autoload

-- php artisan key:generate

and it work fine for me Thank all for your valuable time

Community
  • 1
  • 1