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

Maerus777's avatar

PHP artisan migrate hangs forever

Hey! So I'm new to Laravel and I set up my local environment on my Mac. I parked valet and set up a fresh project to work on, but when I set up my mysql configuration in the .env file and ran the migrate command on my specified database nothing happens. There are no logs and no errors, it just hangs forever. I created a table named testDB and I changed the DB_DATABASE property to match it, I also changed my login credentials to match mysql. I also checked to make sure I was actually running mysql on port 3306, which it is. I tried restarting my computer, restarting mysql, clearing the cache with artisan, nothing seems to work.

Let me know if you need more details!

Thanks for your help!

0 likes
1 reply
Maerus777's avatar
Maerus777
OP
Best Answer
Level 1

Alright! So I finally figured out the issue! The issue seemed to be my mysql installation through the homebrew package. All I had to do to get migrate working was to stop the mysql service, uninstall the homebrew package and reinstall mysql fresh from the dmg file from oracles' website. Once I had it installed and got the service running I tried php artisan migrate again and it worked fine.

Thanks!

2 likes

Please or to participate in this conversation.