简体   繁体   中英

Export Specific Records from MySql Workbench

I have databases in my system and also put database on web server also, so when I update my system database data I ll have to then replace or add data into web database .

but

problem is that I am doing changes in database to some specific record frequently for testing purpose. So I want some mechanism that will used to export some specific records to sql file with insert statement.

Suppose I have made change in table tbl1 and added 10 records to it. So right now I am manually adding or replacing whole table on web database.

So is there any mechanism in MySql or in Workbench using that I can export specific records.

Any Help for that.

The only automatic solution is to use replication, but that is probably not a good solution for your scenario. So what remains is some manual process. Here are some ideas:

  1. Write a script that writes specific records into a dump file . Then use a different script to load this dump file into your target server.
  2. If you frequently change the same records you could create a script with insert statements that you edit for each new value and run against both your local and your remote (web) server.

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