mysqldump command Introduction: A database backup program Format: mysqldump [options] [db_name [tbl_name ...]] Description: The mysqldump client utility performs a logical backup, generating a set of SQL statements that can be executed to reproduce the original database object definitions and table data. It dumps one or more MySQL databases for backup or transfer to another SQL server. The mysqldump command can also generate output in CSV, other delimited text, or XML formats. The following figure shows the renamed image name uoj. Now we need to export mysql in this image. Run the following command: docker exec -it uoj mysqldump -uroot -proot app_uoj233 >/data/database_bak/app_uoj233.sql #Note: uoj is the image name -u is the database username -p is the database password app_uoj233 is the data name in the project, /data/database_bak/ is the export directory, app_uoj233.sql is the exported sql file, i.e. the database Summarize The above is what I introduced to you. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: MySQL 8.0.16 installation and configuration tutorial under CentOS7
>>: MySQL 8.0.16 installation and configuration method graphic tutorial under Windows
Table of contents 1. Dep 2. Understand obverser 3...
Table of contents 1. What is scrapy_splash? 2. Th...
In the development process of Vue project, for th...
Table of contents 1. Why NanoID is replacing UUID...
Table of contents 01. Use useState when render is...
Recently, when I was modifying the intranet porta...
Three ways to introduce CSS 1. Inline styles Adva...
Table of contents jQuery's $.ajax The beginni...
Table of contents Update the image from an existi...
1. Overview of DDL Atomicity Before 8.0, there wa...
Preface: MySQL is a relational database managemen...
Table of contents background Function Purpose Ide...
Install CentOS 7 after installing VirtualBox. I w...
Table of contents 1. Lock and Latch 2. Repeatable...
How to use the code in NetEase Blog: First log in...