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
Table of contents 1. Background 2. Slow query cau...
There is a requirement for a list containing mult...
First: action is an attribute of form. HTML5 has d...
This article mainly introduces the implementation...
Preface I believe that everyone has had a simple ...
There is no doubt that containers have become an ...
Introduction to JWT What is JWT The full name is ...
Table of contents Defining the HTML structure Inp...
How to reset the initial value of the auto-increm...
Preface When making a top menu, you will be requi...
lsof (list open files) is a tool to view files op...
Table of contents 1 Create mount directories and ...
Preface After this blog post was published, some ...
The general way of writing is as follows: XML/HTM...
Forms are a major external form for implementing ...