Mysqldump is often used in MySQL database logical backups.
1. Various usage instructions
A. The simplest use:
Mysqldump-uroot-ppassword [database name]
> [dump file]
The above command backs up the specified database to a dump file
When you use mysqldump to back up MySQL, the backup file is a text file in SQL format, consisting of a series of CREATE TABLE and INSERT statements. When recovering, just use the SQL file as input to the MySQL program, as follows:
Mysqldump mydb
A few days ago received a business project, MySQL database logical backup mysqldump backup failed mail, this is on vacation, but in the spirit of serious and responsible work, 7x24 hours of uninterrupted operation of the noble professional sentiment,
Mysql, mysqldump, export, export table, compress and export mysql, mysqlhotcopy, and mysql restore table
This article discusses the backup and recovery mechanisms of MySQL and how to maintain data tables, including the two most important types of
Use mysqldump to export a database
Mysqldump is a client program used by mysql to store databases. It mainly produces a series of SQL statements that can be encapsulated into a file. This package contains all the SQL commands required to reconstruct
Mysqldump back up and restore a MySQL database
Brief Introduction:
The mysqldump command can be used to export all specified databases and tables as SQL scripts, which can be used on Mysql in different sections. For example, to upgrade the Mysql
Use mysqldump command line tool to create logical backup
The mysqldump command creates a logical backup, and the result set has two formats: one is to convert data into standard SQL statements (a bunch of CREATE, DROP, INSERT, and other statements ),
Mysql,mysqldump, exporting, exporting tables, compressing export mysql,mysqlhotcopy,mysql restoring tables
This article discusses MySQL's backup and recovery mechanism, and how to maintain data tables, including the two most important types of
mysql| detailed
MySQL has a lot of ways to import data, but these are only half of that data transfer, and the other thing is to export it from the MySQL database. There are many reasons why we need to export the data. One important reason is to
MySQL has a lot of ways to import data, but these are only half of that data transfer, and the other thing is to export it from the MySQL database. There are many reasons why we need to export the data. One important reason is to back up the
ParametersParameter description--all-databases,-AExport all databases.Mysqldump-uroot-p--all-databases--all-tablespaces, YExport all table spaces.Mysqldump-uroot-p--all-databases--all-tablespaces--no-tablespaces, YNo table space information is
The importance of backups is self-evident, especially for database administrators, where backups are especially important. Backup has a lot of different methods, and here I am not very much like to tell them all, here is a general talk about hot and
if you want to back up, make sure that MySQL opens Log-bin, with Binarylog,mysql to do full recovery when necessary, or point-in-time recovery, or location-based recovery. My data storage directory is:mysql> SHOW VARIABLES like '%datadir% '; +-------
We will certainly encounter the backup database in the course of running the project, restore the database situation, we generally use two ways to deal with:1. Import and export backup data using into outfile and load data infileThe advantage of
Export the Mysqldump tool that you want to use with MySQL, basic usage:
Copy Code code as follows:
Shell> mysqldump [OPTIONS] database [tables]
If you do not give any tables, the entire database will be exported.
By executing
Mysqldump backup description mysqldump is a utility used by mysql to store databases. It mainly generates an SQL script, including the CREATETABLEINSERT command required to re-create a database from scratch, and is suitable for backing up databases
Parametersparameter Description--all-databases,-AExport all databases.Mysqldump-uroot-p--all-databases--all-tablespaces, yExport all table spaces.Mysqldump-uroot-p--all-databases--all-tablespaces--no-tablespaces, yNo table space information is
Export the Mysqldump tool that you want to use with MySQL, basic usage:
The code is as follows
Copy Code
Shell> mysqldump [OPTIONS] database [tables]
If you do not give any tables, the entire database will be
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.