MySQL data backup? -


i have database tons of data in it. wrote new program change data in database. there way make copy of database before run program? or there other solution?

what i'm thiking making copy of database, run program, modified main database. if things goes wrong, how use copied database data revert main database?

please provide steps , commands on linux. i'm new database mysql , commands.

read following link tell how dump database via different ways , restore it.

http://www.thegeekstuff.com/2008/09/backup-and-restore-mysql-database-using-mysqldump/

basic command dump single database is:
mysqldump -u root -p[root_password] [database_name] > dumpfilename.sql


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -