Two (02) Ways To Fix [Illuminate Database QueryException] | Laravel

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
what's good everybody brittle speed and i'm back with another tutorial so um i was following brad traverse's laravel tutorial the crash course and i run through this error um like when i do php uh artisan migrate i get this error let me just pull this up a little bit so that you can see it a little better anyways you can hear it that means you had this error okay so uh it's saying this it's saying eliminate blah blah blah query exception okay so when you um if you search this error they're going to get you um here for example right here okay and this guy gave a solution i mean there are other solutions but this guy's solution kind of works for some people because it gets upvoted here so you can do this you can use this one and so you gotta go to the app service provider so you gotta go here for example you go here and go to app service provider okay and here let me just drag this one back down here now and um yeah that's perfect so all you do is just copy this one okay actually there are two methods okay so don't don't run away in case this one doesn't work for you so you just come here i already tried this method this one didn't work for me so here so you just paste it it's this one i already did it so um here the boot you just copy this one and paste it here right here normally this one is going to be just like this okay then you replace it with this one um if this method doesn't work which didn't work for me uh all you gotta do is um go to your env files so you go here and you're gonna notice that um here for it like suppose you're using my sql in my case i'm using my sql maybe you using something else like postgres or something so make sure that you got your mysql running it needs to be running so in my case i had zamp okay examples right here where is them zombies right here okay so i'm using them and you make sure that your servers are running so my sequel is here so it's running the apache server is also running okay the service all of them they're just running both of them are running and uh here you gotta make sure the port is 3306 right 3306 right here and now the reason why you get this error from what i knew from what i noticed or from what i discovered since i'm a beginner in this largo it's because the database is not created so if i do it here let me just do it again php artisan migrate it doesn't work but now if you go to your um let me just do it here so you go to localhost go to localhost and then you go to phpmyadmin um let's wait for it to come yeah okay you go to phpmyadmin and then here you're gonna create a database and the name of the database is the name of the data that you have here mine is going to be posted since i'm following a tutorial so here uh you click new and you put here posty and you can once that's done you come here again and you do the same command php doesn't migrate and then you hit enter and now everything works perfectly the error is gone alright so i hope this method helps you uh if it does please leave a like so that people know that it's working because you can't unlike anymore so people need to follow the number of likes and know whether it's legit or not so just please hit the like button let's have a good ratio view like and uh people gonna it's gonna be you're gonna be able to help some other people all right hope you liked it hit the like button subscribe if you want and i'll see you guys in the next video peace
Info
Channel: BERTDELASPEED
Views: 19,851
Rating: undefined out of 5
Keywords: laravel, laravel migrate, php artisan migrate error, php artisan migrate, illuminate database error, laravel queryexception, illuminate database queryexception, laravel beginners error, laravel illuminate, laravel database, laravel query, laravel exception, laravel illuminate database queryexception migrate
Id: NNnV_YAbUFo
Channel Id: undefined
Length: 3min 59sec (239 seconds)
Published: Thu Mar 17 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.