Login issue: SQLSTATE[HY000] [2002]

Until yesterday my API was working perfectly. Today whenever i try to login to dreamfactory console i get the error message: SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from lookup)
I have no idea why this is happening. My VM is running normaly, and my database is also running smoothly.
Any help is welcome.