Mysqldump usage database export mysqldump
BitsCN.com
Mysqldump usage database export
The mysqldump client can be used to dump databases or collect databases for backup or transfer data to another SQL Server (not necessarily a MySQL server ). Dump
Design and write some design considerations for this script:
This script is suitable for compiling and installing MySQL and installing via yum or Apt-get
The script can be executed repeatedly without overwriting the data repeatedly
Logical Backup MysqldumpThe Mysqldump Backup tool was originally written by Igor Romanenko and is typically used to complete a backup of the dump database and porting between different databases, such as upgrading from a low-version MySQL database
Basic import of the database \ Export command is mysqldump and source under Linux directly with the command line operation can be under windows under normal circumstances there are two ways one is to use the command line and the other is to use
1. Various usage instructions
A. The simplest use:
Copy Code code as follows:
Mysqldump-uroot-ppassword [Database name]
> [Dump file]
The above command backs up the specified database to a dump file (dump file), for
Detailed introduction to mysqldump
Note: mysqldump is a tool used by the database for backup and data transfer. It can be used for backup when the data volume is small (several GB. When the data volume is large, mysqldump is not recommended for
Http://blog.chinaunix.net/u/29134/showart_287899.html
Note: If you use mysqldump, you must have at least select and lock tables permissions. Database or table.
If you want to use the -- tab switch, you must have the file permission.
MySQL backup -- mysqldump, mysql -- mysqldump
Back up MySQL directly by using the mysqldump command to back up it to the SQL format. The simplest command is:
mysqldump databasename > bak.sql
The generated bak. SQL content format is as follows:
--
When using mysqldump to back up MySQL, the backup file is a text file in SQL format, which consists of a series of createtable and insert statements. To restore the SQL file
When using mysqldump to back up MySQL, the backup file is a text file in
In the daily operations, the backup of MySQL database is extremely important, in case the database table is lost or corrupted, can recover the data in time.On-line Database backup scenario:Perform a full backup every Sunday, and then perform a
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.