In this tutorial I’m going to describe how to fix “unknown database in laravel Bug”
Unknown database:- SQLSTATE[HY000] [1049] Unknown database ‘laravel’ (1049)
Whenever you migrate in laravel and its showing unknown database name, please follow some easy steps its helpful for you.
php artisan migrate
When you stuck this kind of bug you have to go .env folder and check your database name and put same name as “edureka” in .env folder
then go to phpmyadmin and put database name “edureka” then run this command —
php artisan c:cache
php artiasn:migrate php artiasn:serve
http://127.0.0.1:8000/
Login successfully …
Latest posts by rajeshkumar (see all)
- AWS Error: Access denied by EC2 Instance Connect - December 4, 2023
- How to get Blackduck Trial version? - December 3, 2023
- PHP ionCube Error: cannot be decoded by this version of the ionCube Loader - December 2, 2023