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

mehmetanbaki's avatar

Database Deploy

How can I deploy my database from localhost with the application when I upload it to the server

0 likes
4 replies
TheRealHyveMind's avatar

Are you wanting to preserve the data you have on your localhost? If not, you can simply run php artisan migrate on production and it'll run any migrations it needs too.

If you do want to keep some data from localhost, you're going to need to export and import it.

mehmetanbaki's avatar

I want it to deploy directly to the global server how is that ???

mehmetanbaki's avatar

I have a vps on a2hosting.com and I want to deploy my database on it with the app directly from xampp localhost

Please or to participate in this conversation.