I used mysqldump for backup, which is easy to store as text files, but it is slow. Of course, the fastest backup method is to copy the data directory directly. But in general, MySQL services must be shut down before you can do it. otherwise, when you copy the data, there will be people reading and writing tables, which will be too much trouble. This friend introduced me to
Article Title: BackInTime: a simple and easy-to-use Linux backup tool. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Do you want to back up your Linux system? Maybe Back In Time is the tool you have prepared. Back In Time is easy to
When using mysqldump for backup, if the storage engine is MyISAM, you can only implement warm backup, and you need to use the option -- lock-all-tables to lock all tables. If the storage engine is Inno
When using mysqldump for backup, if the storage engine is MyISAM, you can only implement warm
We first put the iphone device on the phone to the computer on itunes to identify the iphone icon as shown below.
Then click "Backup" in the interface and click "Back Up Now".
ITunes asks "Do you want to back up the Application" window after clicking "Back up Now".
Finally, just wait for the backup to complete.
If your iOS device is the first time you connect to a computer an
Backup Data method:One: SQL statements.LOCKS TABLES tablename read;//read lockLock tables are not transaction-safe until you attempt to lock the table, implicitly committing all active transactions, and implicitly starting a transaction (for example, using the start TRANSACTION).Therefore, the correct way to use lock tables for a transaction table (such as InnoDB) is to set the autocommit=0FLUSH TABLES,SELE
Use the MySQL database mysqldump tool, can realize the database backup function, if in the Linux system Configuration good crontabs, can realize the automatic backup!
#!/bin/bash
# #配置原数据库连接信息, that is, using a database machine that needs to be backed up.
Source_user=-uroot
# #如果就是在本机ip, that source_host=-h127.0.0.1
source_host=-h10.10.10.12
Source_pass=-pa
descriptions for the tar command.
Options
Description
-F Name
Use name to specify the archive file name or device name.
-V
Lists the processing details.
-Z
Compress the file or unzip it with GNU Gzip.
-j
Use GNU bzip2 to compress files or unzip them.
-C
Directory switches the current directory
PremiseIt should be determined that a single table space is used, otherwise single table backup and recovery is not supported. In the configuration file inside the mysqld section Plusinnodb_file_per_table = 1Environment Description:Main Library: 192.168.0.1From library 1:192.168.0.2From library 2:192.168.0.3Backup utility: Percona xtrabackup version 2.4.8 based on MySQL server 5.7.13 Linux (x86_64) (revision id:97330f7)To create a Chenfeng library on
indicates the database to be backed up on the host. If you want to back up all the databases on a MySQL host, you can use the--all-databases option, as follows:Mysqldump--all-databases> Test.dumpE. Recovering a database from a backup fileMySQL [database name] 2, with Linux cron command to achieve scheduled backupFor example, to back up all the databases on a host and compress the dump file to GZ format eve
indicates the database to be backed up on the host. If you want to back up all the databases on a MySQL host, you can use the--all-databases option, as follows:Mysqldump--all-databases> Test.dumpE. Recovering a database from a backup fileMySQL [database name] 2, with Linux cron command to achieve scheduled backupFor example, to back up all the databases on a host and compress the dump file to GZ format eve
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
Can be added to save disk space by removing backups from N days ago
Make full use of mysqldump's self-locking table function, refresh log, copy and other functions
Scripts for backing up the MySQL
generated.
After all the SQL scripts are generated, the database should be stopped and the log and. copy the MDF file (for fear of damaging the log file, and do not use the database backup mode). The total file size is 5.7 GB.
After that, the formal recovery will begin. To create a new database, run the script for a small table using the SQL query analyzer. However, when a large SQL script file is impo
Use MySQL as the Import and Export commands for Backup recovery,
MysqldumpExport the database using the command line:1. Go to the bin folder under the MySQL Directory: directory from cd MySQL to the bin folderFor example, if the command line I entered is cd C: \ Program Files \ MySQL Server 4.1 \ bin2. Export Database: mysqldump-u username-p Database Name> exported file nameFor example, the command line I e
and overriding (overwriting) a methodMethod overloading means that the return type of the method name and method are the same, but the method parameters are not the same. Parameters differ in the number of arguments and parameter types.Method overrides: Method overrides are relative to inheritance. The overridden method name. The return type, the parameter type, and the number of arguments are required to be the same as in the parent class. This is the difference between overloading and rewriti
I. Introduction
Rsync is a common backup tool, which is currently maintained by rsync.samba.org.
Rsync uses the so-called "rsync
Algorithm ", Provides a very fast file transfer method to synchronize the files between the local and remote hosts. It is mainly used to transfer the changes of the two files, instead of transmitting the entire copy each time, the speed is quite fast.
Rsync can be used with RSH or SSH, or as a direct socket connection in da
In MySQLDump, use the-w statement for backup. mysqldump-w
When we use mysqldump to back up data, we have the option-where/-w. You can specify the backup conditions. The options are described as follows:
-w, --where=name Dump only selected records. Quotes are mandatory
We can perform a test, for example:
mysqldump --si
How to Use rsync in Linux for data backup, linuxrsync
For various organizations and companies, data is the most important to them. Even for e-commerce, data is equally important. Rsync is a tool/software that backs up important data through the network. It is also a network protocol for synchronizing folders and files between systems through the network on Unix-like and Window systems. Rsync can copy or dis
Users who bought the commercial version can use commercial backup tools to back up the MYSQL database. I will demonstrate how to back up and restore the database. This includes full backup and Incremental backup.
Users who bought the commercial version can use commercial
Why is Rman not using the unused block compression feature during the backup process?From:Why is the RMAN not using Unused Block Compression during backup? (Document ID 798844.1)Suitable for:Oracle database-enterprise edition-version 10.2.0.1 to 11.2.0.2 [Release 10.2 to 11.2]Information in this document applies to any platform.Checked for relevance on 27-nov-2013***Goal:In the case of version 10.2, and all
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.