skip to Main Content

I am following this tutorial here https://www.youtube.com/watch?v=Jbt5bEgv_QM and got stuck in the php artisan migrate part because of this issue. I’m not sure if it’s compatibility issue or something. I am fairly new to laravel.

Here’s the database.php file and .env file.

database.php

env

UPDATE: i managed to perform the migration using the solutions provided by the user PHP. However, i couldn’t find the table in my phpMyAdmin. do i need to change mySQL root password for that? i have actually set the password but in .env and database.php files i left it blank because the migration works that way. if i set the actual password in both files, I’d get access denied error.

Here’s the migration files…
createuser
jobsfail
passwordreset

3

Answers


  1. 1)First you have to Create your related Database.

    2)Then:php artisan cache:clear

    3)Now run php artisan migrate:install

    Login or Signup to reply.
  2. php artisan migrate:rollback then run php artisan migrate.

    If you make changes to your migration files, simply run php artisan migrate:refresh

    Login or Signup to reply.
  3. Had this issue with a Laravel 10 project and running these commands sorted it for me (run them one by one in the order I’ve typed them):

    php artisan config:cache
    php artisan cache:clear
    php artisan config:clear
    php artisan route:clear
    composer dump-autoload
    php artisan migrate:fresh --seed 
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search