Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lachiem4's avatar

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?

0 likes
10 replies
rawilk's avatar

Are you sure there are any migrations to run? They should be in the database/migrations directory.

2 likes
lachiem4's avatar

Yeah, these two files are under database/migrations - 2014_10_12_100000_create_password_resets_table.php - 2014_1012000000_create_users_table.php

Tray2's avatar

Have you run php artisan migrate:install? first?

lachiem4's avatar

I've tried running php artisan migrate:install but nothing happens. There isn't a response in terminal at all.

Tray2's avatar

Do you get the list of artisan commands when you run php artisan?

lachiem4's avatar
lachlanmckelvie@Lachlans-MBP:~/code/blog$ php artisan migrate:install


kingcontent's avatar

I am having the exact same problem and there seems no answer here so far - I have exactly the same outputs as lachiem4.

kingcontent's avatar

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

OzgurUnat's avatar

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 or to participate in this conversation.