kfirba
179
16
General

php artisan returns SQLSTATE[HY000] [2002] No such file or directory

Posted 3 years ago by kfirba

Hello.

I've recently noticed that I just can't even run php artisan on my local machine without the VM being on.

I run php artisan and I get

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

When I try to deploy my code I just can't deploy it because it always returns that error when I try to deploy it from my git repository.

Why is that happening? I'm just trying to run the normal php artisan without ANY attempt to touch the DB with some command. That's super weird!

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.