Database backup #grammar: # mysqldump -h server-u username-p password database name> backup file.sql #Example: #Single database backup mysqldump -uroot -p123 db1 > db1.sql mysqldump -uroot -p123 db1 table1 table2 > db1-table1-table2.sql #Multi-database backup mysqldump -uroot -p123 --databases db1 db2 mysql db3 > db1_db2_mysql_db3.sql #Backup all librariesmysqldump -uroot -p123 --all-databases > all.sql Data Recovery #Method 1: [root@egon backup]# mysql -uroot -p123 < /backup/all.sql #Method 2: mysql> use db1; mysql> SET SQL_LOG_BIN=0; #Turn off binary logging, only effective for the current session mysql> source /root/db1.sql The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Detailed tutorial on docker-compose deployment and configuration of Jenkins
>>: How to install Nginx in a specified location in Centos system
Apache Tika is a library for file type detection ...
1. All tags must have a corresponding end tag Prev...
1. Problem description The storage installed in t...
1. flex-direction: (direction of element arrangem...
When faced with a SQL statement that is not optim...
When looking at High Performance MySQL Version 3 ...
First, take a look at Alibaba Cloud's officia...
A few days ago, a colleague asked me a question a...
Copy code The code is as follows: <!-- List ta...
Table of contents 1. Global Guard 1. Global front...
Because the project needs to use https service, I...
This article shares the specific code for drawing...
1. Cancel the dotted box when the button is press...
The large-screen digital scrolling effect comes f...
In Vue, we can define (register) local components...