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
wherestatus
= 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.