I have an database with tons of data in it. I also wrote a new program that will change the data in the database. Is there any way to make a copy of the database before i run my program? Or is there any other solution?
What I'm thiking is making a copy of the database, Run the program, which modified the main database. If things goes wrong, how do I use my copied database data to revert the main database?
Please provide steps and commands on linux. I'm new with the database mysql and its commands.