- this app enables you to
dump MySQL data
andrestore MySQL data
- the data is cloned from
source_db
totarget_db
- the data is cloned from
- this app has only above function
- install gem
$ gem install mysql2
- overwrite
config.yml
as your environment- the data of
source_db
is dumped - the dumped data is restored to
target_db
- the data of
- ok, now you can execute this app
$ ruby app.rb
- both MySQLs have the same data
source_db (MySQL) ----- clone -----> target_db (MySQL)
- without SQL to READ(SELECT) data
- because of using
mysqldump
command
- because of using
- without SQL to INSERT data
- because of using dumped data directly
- it takes a long time
- because of using
mysqldump
command - because of using dumped data directly
- because of using
- test is not written