Copy/duplicate/backup database tables effectively - mysql

烂漫一生 提交于 2019-12-06 15:33:46

However Sometimes the script fails and the result gets corrupted, therefore I must backup 10 tables in question before i execute the script.

Probably you need to use another solution here: transactions. You need to wrap up all queries you are using in failing script into transaction. If transaction fails all data will be the same as in the beginning of the operation. If queries got executed correctly - you are OK.

why are you every time duplicating the table.. CLUSTERS are good option which can make duplicate copies of your table in distributed manner and is much more reliable and secure.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!