I develop a laravel site in localhost. I'm very interested in the best way to migrate database to production site without losing current data.
Asked
Active
Viewed 76 times
3 Answers
1
If you are using phpmyadmin you can just export the database. It will create a .sql file. Then you need to go into the phpmyadmin of your server and import this .sql file.

Risul Islam
- 804
- 1
- 12
- 24
0
You can just save local database with mysqldump
to file on the localhost and restore it from dump on the remote one, using ssh (by mysql host database < dump.sql
) or phpmyadmin kind of tool.

Ilia Kondrashov
- 715
- 2
- 9
- 14
-2
Backup your database and storage;
Use a git repository- BitBucket or GitHub;
Any more information on your production server? Development Server?
Example: XAMPP, WAMP, or other local server
Are you going to use LAMP?

Swaylay
- 19
- 1
- 8