Search code examples
laravelmigrate

Not work "Migrate" and mysql in laravel project


I install laravel and create project. I Configed configuration file database and create database in mysql(mysql runnig in wamp server). I want use migrate for create table in mysql,but i should wait a lot of time and see error. What shoud i do?


Solution

  • This could help you run these command in terminal:

        php artisan migrate --force
    

    The migrate:refresh will roll back all of your migrations then execute the migrate command.this will re-creates your entire database.

           php artisan migrate:refresh 
    

    This will absolutely help you,run this command:

     php artisan migrate:fresh
    

    if it did't help please chick out this: https://laravel.com/docs/5.7/migrations