The title description pretty much says it all. When I run php artisan migrate
inside my project's folder (in my Macbook), it errors out with the following:
[PDOException]
SQLSTATE[HY000] [2002] No such file or directory
I have taken the time to browse around the error and try some fixes, but the only way I got it to work is if I actually ssh into my vagrant box (homestead) and run the migration from there, but I am trying to actually run it from my terminal window locally without ssh-ing into homestead.
Do you know what can be causing this problem?
Thank you for all your help in advance!
Cheers!
UPDATE:
Before I thought it was due to MAMP being installed in my computer. But currently I am not using any servers or anything like that that can be messing with port 3306 since I have a fresh El Capitan install.