Hey - I'm completely new to Laravel. I'm trying to do Laravel+Vue and make a user login/register with searching included. However, I cannot seem to even get the login to work on a Mac.
Illuminate\Database\QueryException : SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.tables where table_schema = homestead and table_name = migrations)
That is the full error.
I've installed composer and installed Laravel from composer. I downloaded PHP as well.
Note: Make sure you have already started mysql (using apache server or any server you are using) and also make sure you already created your database before running php artisan migrate
Hope it works for you
I did not install mySQL. Whoopsies. I didn't know mySQL workbench and mySQL community server needed to be installed from mySQL Community Downloads after my PHP installation.
When using Docker compose, each service gets a local Docker DNS entry with its service name (unless configured differently), so the service mysql will be reachable at mysql, no need to mess with IPs that might change.