How to do selective schema Restore Using “Load Dump” Features Introduced in MySQL 8.0.21 ?
In this Blog I will cover below topic:-
1. What is Dump Load features all about.
2. How to take Restore particular database from
Complete Backup?
3. Conclusion.
What is Dump Load features all about?
Dump Load Utility introduced in 8.0.21 version of MySQL Shell , which
will do Import of backup files to
MySQL Instance. Make sure back up files should be created with utility called Instance Dump/Schema Dump Utility. More Info :- https://dev.mysql.com/doc/mysql-shell/8.0/en/mysql-shell-utilities-load-dump.html |
In case if you wanted to know how to take backup using utility Instance Dump
Features of Load Dump
·
You can customize the import with further
options in the dump loading utility: |
Load Dump Examples
util.loadDump("/opt/packages/OnpremisesInstanc/", {dryRun:
true}) Prerequisite 'local_infile' global system variable must be set to ON FIX:- MySQL localhost:33060+ ssl JS > \sql set global local_infile=1; Run the Load Dump Commands MySQL localhost:33060+ ssl JS > util.loadDump("/opt/packages/OnpremisesInstanc/",{excludeSchemas:['sakila','sales']}) |
d
Conclusion
Shell makes MySQL easier to use, by providing an interactive
MySQL client supporting SQL, Document Store, JavaScript & Python interface
with support for writing custom extensions. And with dumpInstance(), dumpSchemas() and loadDump() Shell
now provides powerful logical dump and load functionality. |
References
https://mysqlserverteam.com/mysql-shell-8-0-21-speeding-up-the-dump-process/
https://dev.mysql.com/doc/mysql-shell/8.0/en/mysql-shell-utilities-dump-instance-schema.html
https://mysqlserverteam.com/mysql-shell-dump-load-part-2-benchmarks/
Great blog! This is really helpful for my reference. Do share more such posts and keep us updated.
ReplyDeleteLatest Version Of Android
Latest Android Version