Great question — answering as the UphillTech team:
This is because you did not grant access to that specific user on localhost. To remedy this, use this: Enter MySQL (watch out: root here is the MySQL root, NOT the ubuntu root - you could also use other users having sufficient access level): $ mysql --user=root --password homestead When prompted, enter the password. In MySQL, grant access like this (in this case, create the user 'homestead'@'localhost' and give him select privileges on everything from DB homestead ): CREATE USER 'homestead'@'localhost' IDENTIFIED BY 'secret'; GRANT SELECT PRIVILEGES ON homestead.* to 'homestead'@'localhost' IDENTIFIED BY 'secret'; Refer to the MySQL manual for more info on other options. This being said,...
Full answer by Marc Vanhoomissen: https://askubuntu.stackexchange.com/a/983770 (CC BY-SA 4.0).
Need it done for your business? UphillTech.