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

Hemir's avatar

How to recover db from homestead ?

hi,

I will deploy my web site. I only have ftp access. I used migrations and seeder to create my db into homestead and now i will recover it to put it into php my admin. Is it possible ? And how pls ?

0 likes
1 reply
bobbybouwmann's avatar
Level 88

You can run this command (replace databasename with your databasename)

mysqldump -uhomestead -psecret databasename > dump.sql

Note: if you changed the username or password of homestead then you need to update that here as well! I used the default database settings from homestead in the command above

2 likes

Please or to participate in this conversation.