SQLSTATE[HY000] [1049] Unknown database ‘Laravel’ (1049)

In this tutorial I’m going to describe how to fix “unknown database in laravel Bug”

SQLSTATE[HY000] [1049] Unknown database ‘laravel’ (1049)

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 …

Tagged : / / /
4 1 vote
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x