简体   繁体   中英

MySQL Copy Table Data of one Database Table to another AUTOMATICALLY; as table gets updated or by some specific time interval, schedule

Copy Table Data of one Database Table to another AUTOMATICALLY; as table gets updated or by some specific time interval, schedule

Database MySQL; Language PHP

I've got TWO databases; A and B

Database A contains a table USERS

I want to copy table data of USERS to Database B; by some routine, service, scheduly after some specific time that can be set dynamically. Aim is to get table data automatically.

So, Database B will have USERS table data same as Database A

If you need copy data from one table to another you could use MySQL triggers called after INSERT/UPDATE/DELETE row in your source table.

If you nedd to copy data periodically you could use CRON .

Another options is replication .

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