Use the --all-database parameter when performing a full backup of MySQL for example: #mysqldump -u root -h localhost -p --all-database > /root/all.sql When importing data, you can first log in to the MySQL database and use source /root/all.sql to import. question: I want to filter out certain libraries when backing up the database with mysqldump. In this case, you cannot use --all-database when backing up mysqldump, but use --database instead . As follows: When backing up the database , filter out the information_schema, mysql, test, and jkhw_db libraries [root@fangfull-backup ~]# mysql -uroot -p -e "show databases" +--------------------+ How to do it: [root@fangfull-backup ~]# mysql -uroot -p -e "show databases"|grep -Ev "Database|information_schema|mysql|test|jkhw_db" The above method of filtering out certain libraries during a complete MySQL backup is all I have to share with you. I hope it can give you a reference, and I also hope that you will support 123WORDPRESS.COM. You may also be interested in:
|
<<: JavaScript Dom implements the principle and example of carousel
>>: Detailed explanation of configuring keepalived log to another path in centos7
MySQL 5.7.17 installation and configuration metho...
Table of contents 1. Quick understanding of conce...
Table of contents 1. Problem 2. Solution Option 1...
I recently deployed MySQL 5.6 and found that by d...
There are too much knowledge to learn recently, a...
This tutorial shares the installation and configu...
Contents of this article: Page hollow mask layer,...
Gird layout has some similarities with Flex layou...
Installation of Python 3 1. Install dependent env...
Table of contents 1. What is a design pattern? 2....
In this blog, I will walk you through the process...
The props of the component (props is an object) F...
Recently, when doing homework, I needed to nest a ...
1 Introduction In the article "Start Postgre...
Table of contents Preface🌟 1. API Introduction 2....