Set FORWARD_DB_PORT=3307 or similar in your .env and try again
You can see it here: https://github.com/laravel/sail/blob/69013b19d554b2aaa1d57b4237a88e9d720e67d7/stubs/mysql.stub#L4
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi, I am running Laravel sail for the first time. I have valet and mysql already running at port 3306. I want to use Laravel sail as well. Is there any way I can run mysql for sail in different port?
I go this error while running: ./vendor/bin/sail up
Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:3306 -> 0.0.0.0:0: listen tcp 0.0.0.0:3306: bind: address already in use
How can I use different port for mysql.?
Thanks
Please or to participate in this conversation.