Skip to Content
MySQL 8 Cookbook
book

MySQL 8 Cookbook

by Karthik Appigatla
January 2018
Intermediate to advanced
446 pages
12h 57m
English
Packt Publishing
Content preview from MySQL 8 Cookbook

Full backup

The following command takes a backup of all databases into the /backups folder:

shell> mydumper -u root --password=<password> --outputdir /backups

Several files are created in the /backups folder. Each database has its CREATE DATABASE statement as <database_name>-schema-create.sql and each table will have its own schema and data files. Schema files are stored as <database_name>.<table>-schema.sql and data files are stored as <database_name>.<table>.sql.

The views are stored as <database_name>.<table>-schema-view.sql. Stored routines, triggers, and events are stored as <database_name>-schema-post.sql (use sudo mkdir –pv /backups if directory is not created):

shell> ls -lhtr /backups/company*-rw-r--r-- 1 root root 69 Aug 13 10:11 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

MySQL Cookbook

MySQL Cookbook

Paul DuBois
Advanced MySQL 8

Advanced MySQL 8

Eric Vanier, Birju Shah, Tejaswi Malepati

Publisher Resources

ISBN: 9781788395809Other