简体   繁体   中英

Migrate MySQL DB tables/data from local to production server Laravel

What I want to do is migrate my tables and data from phpmyadmin/MySQL from a local server to a production server.

For example if I was on my local and I made a change to the database how would I also push those changes to the production server/ testing server so that the changes will also be there? Does the Laravel migration functions do this in a handy way? Also I know for WordPress this can be difficult so just wondering if Laravel has some handy tool that can do this.

Thanks.

Hi IneedToAskQuestions

Have a look at migrations as suggested by @Devon and @Peter

https://laravel.com/docs/5.7/migrations

I use migrations to change data in a database the same as you do in a controller.

might not be best practice but works well.

hope this helps

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM