mysql replicate database


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. # mysqladmin create DB_name -u DB_user --password=DB_pass && \
  2. mysqldump -u DB_user --password=DB_pass DB_name | mysql -u DB_user --password=DB_pass -h DB_host DB_name

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.