php artisan migrate returns nothing Hi, Im am new to laravel and working my way through laravel 5.4 from scratch.
When I attempt to pass the command php artisan migrate in mac terminal it does nothing at all. No error messages or anything.
I also tried to connect to the mysql database via sequelpro.
my .env file has the following:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=blog
DB_USERNAME=root
DB_PASSWORD=
Is there something i've missed in this process?
Are you sure there are any migrations to run? They should be in the database/migrations directory.
Yeah, these two files are under database/migrations
- 2014_10_12_100000_create_password_resets_table.php
- 2014_1012 000000_create_users_table.php
Have you run php artisan migrate:install? first?
I've tried running php artisan migrate:install but nothing happens. There isn't a response in terminal at all.
Do you get the list of artisan commands when you run php artisan?
Yeah I get the list of commands
lachlanmckelvie@Lachlans-MBP:~/code/blog$ php artisan migrate:install
I am having the exact same problem and there seems no answer here so far - I have exactly the same outputs as lachiem4.
Nevermind, the solution: Set a password for the database user you are using for laravel, set DB_PASSWORD environment variable to the new password and then run migrate again
Try setting up the DB_ constants in .env file to your specific project's values.
I noticed DB_DATABASE is set to "laravel" by default. When I changed it to the actual database name I am using, it started to migrate.
Please sign in or create an account to participate in this conversation.