O'Reilly logo

MySQL 8 Cookbook by Karthik Appigatla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

  1. Shut down the MySQL server:
shell> sudo service mysqld stop
  1. Copy the files into the data directory (your directory may be different):
shell> sudo rsync -av /data/mysql /backupsor do rsync over ssh to remote servershell> rsync -e ssh -az /data/mysql/ backup_user@remote_server:/backups
  1. Start the MySQL server:
shell> sudo service mysqld start

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required