util.dumpInstance()
util.dumpSchemas()
dump an entire database instance, including users
dump a set of schemas
mysqlsh
\c root@localhost
\js
util.dumpInstance("/backup/mydump")
Where /backup/mydump is an empty local directoryutil.dumpInstance()
load a dump into a target database
mysqlsh
\c root@localhost
\js
util.loadDump("/backup/mydump",
{ ignoreVersion: true,
threads: 4,
loadData: true,
resetProgress: true } )
Where /backup/mydump is a local directory containing a backup made using util.dumpInstance or util.dumpSchemaStart MySQL Shell
Connect as root@localhost
javascript
Tell loadDump where to find the backup
Allow restore of a backup made using an older version (e.g. import a MySQL 5.7 backup into MySQL 8.0)
Number of parallel threads
Load the data
Don't try to continue a previous interrupted backup