In real life, backing up the database on a regular basis is an extremely important task. When we use MySQL, there is a lot of choice in database backup, and this article will show readers how to use MySQL's mysqldump to back up the database.
First,
Mysqldump backing up a database is a simple and convenient method, but it also consumes a certain amount of memory. But then again, the database of which work does not consume memory, if not consume memory to complete the management of the DBA that
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
PHP uses the mysqldump command to export the database. PHP uses the mysqldump command to export the database. PHP uses the external command to export the database. the code is very simple, so there is not much nonsense. 123456789101112131415161718192
Documentation for mysqldump: http://dev.mysql.com/doc/refman/5.1/zh/client-side-scripts.html#mysqldump
MysqldumpIt is most commonly used to back up an entire database:
shell> mysqldump db_name >backup-file.sql
You can read the dump file back to the
CopyCodeThe Code is as follows: mysqldump-u user-P dB tab1 tab2> dB. SQL
RestoreCopy codeThe Code is as follows: mysql-u user-P dB
Refer:
1. copy backup files: (ensure that the database has no write operations (you can lock the Table). Copying
Note: Backup files and binary log files cannot be placed under the same disk as MySQL
Node 1
1, Node 1 modify the MySQL configuration file, open binary log Save
Here I put the binary log in the/data/mysql/directory,/data/is another LVM disk I
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
Document Introduction
This document uses Mysqldump to back up the database, mysqldump is a SQL-level backup mechanism that guides the data tables into SQL script files and is relatively appropriate when upgrading between different versions of MySQL,
Copy codeThe Code is as follows:Mysqldump-u user-p db tab1 tab2> db. SQL RestoreCopy codeThe Code is as follows:Mysql-u user-p db Refer:1. copy backup files: (ensure that the database has no write operations (you can lock the Table). Copying files
If a qualified O & M engineer or dba engineer is engaged in database operations, backup is required first. If there is no backup, your business will go wrong, your job may even be ..
If a qualified O & M engineer or dba engineer is engaged in
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
Mysqldump is a tool used by mysql for logical backup. During database backup, you need to back up the data and binary files of the database.
Mysqldump is a tool used by mysql for logical backup. During database backup, you need to back up the data
Old rule: In the opening remarks, I started to use mysqldump to back up 100G + databases, coupled with the busy server, and the backup speed is like a snail bait, so I am looking for a more efficient backup method. The Internet says that xtrabackup
MySQL performs logical backup and Restoration Based on mysqldump and binary log-bi, and mysqldumplog-bi
Source: http://www.cnblogs.com/wy123/p/6956464.html
This article only simulates the use of mysqldump and log-bin binary logs for a simple
During PHP website development, Mysql database backup or database migration is often encountered. At this time, it is critical to import and export data from the database, mysql provides the command line export tool Mysqldump and Mysql Source import
Mysqldump can be used to back up and restore databases. By default, mysqldump creates droptable, createtable, and insertinto SQL statements.
Mysqldump can be used to back up and restore databases. By default, mysqldump creates drop table, create
Mysql backup policies can be divided into four types:
1) directly copy database files (not recommended)
2) use mysqlhotcopy to back up the database
3) Use mysqldump to back up the database
4) use the master-slave replication mechanism (for real-time
in front of date-time text. Corresponding to class name 'sun' & 'moon'-->
MySQL backup and recovery policy (ii) 12:00:08 big label: knowledge/exploration MySQL backup and recovery MySQL backup policy MySQL recovery policy
Backup Policy 3. Use
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.