Laravel getting started ?
-
Hi All,
I've installed a fresh installation of Laragon, and created a new Laravel project
I ran:
php artisan make:auth
Authentication scaffolding generated successfully.All good...
But when I ran php artisan migrate - I get:[Illuminate\Database\QueryException]
SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES) (SQL: select * from information_schema.tables where table_schema = homestead and table_name = migrations)[PDOException]
SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES)I would have assumed that this would have all been configured - any help on what to do ?
TIA, Dave
-
@daveporter : By default, MySQL username is
root
and password is empty - You should change your.env
file before migrating:Ref: https://www.youtube.com/watch?v=pHQOdXY2AZU&list=PL0Nx259JjLcGqXg5kpTifqQ9GFoQ2qGPy