:
#mysql-U root-p
>use school;>insert into info (name,score) values (test02,90);>quit//完成数据插入
#mysqladmin-U root-p flush-logs//refresh generate MySQL Incremental backup log file#cd/usr/local/mysql/data/#ls//binary log has been generated
When the worker inadvertently removes t
improve its completion speed. Description: The--copy-back option of the Innobackupex command is used to perform a recovery operation, which performs the recovery process by copying all data-related files to the MySQL server DataDir directory. Innobackupex backup-my.cnf to get information about the DataDir directory. ⑧ officially starts restoring incremental backups ⑨ restarting the binary log and verifying
is very useful for beginners.
After installing the environment, you can directly download mysql workbench from the mysql official website. After installation, open it and you will see the following interface. The first item is for visual SQL editing and query, the second item can be used for visual mysql database design, and the third item is Green Circle.
This article describes how to import, export, and restore a MySQL database. For more information about MySQL database operations, see the following, it can be divided into two situations: virtual host and server.
Virtual host
1. through PHPMyAdmin's import and export function, this software generally only supports export of several megabytes of data, and too muc
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 this method is that the exported data can be self-defined format, and the export is pure data, there is no table inform
MySQL Backup restore summaryIf operating system error number in a file operation occurs when backing up the database. This error indicates that too many files are open.Solution Ulimit-n 1048576You can then make a backup of the database1. IntroductionThe tool used is xtrbackup the tool is open source and very powerful,
MySQL Data backup and restore original sticker: http://www.cnblogs.com/kissdodog/p/4174421.html. Data backup 1. Backup with mysqldump commandThe mysqldump command backs up the data in the database into a text file. The structure of the table and the data in the table are st
user revokes the specified user's database permissions, the user can still connect to the MySQL server after revoking permissions, but the corresponding database operation is forbidden, the statement format is as follows:Revoke permissions list on database name. Table name from user name @ Source AddressFor more information on MySQL statements, refer to the MySQL
Original: xtrabackup backup restore MySQL DatabaseMysqldump Backup In view of some of its own characteristics (lock table, essentially back up the insert script or text, does not support differential backup), is not suitable for high-real-time requirements of the situationXt
, the end of English), don't fall down
The code is as follows
Copy Code
#cmake.
7, installation
The code is as follows
Copy Code
#make#make Install
The installation is complete.
Simple backup-recovery test
Backup
The code is as follows
Copy Code
Mydumper–kill-long-queries-u root-b dbname-t
,innodb_page_size in the file backup-my.cnf, innodb_log_block_size comment out and add datadir=/xxx/ xxx/(backup file decompression path), such as:2.5 reload MySQL system library and modify file owner2.5.1 users can delete the existing MySQL directory, rebuild the MySQL syst
Mysqldump Backup In view of some of its own characteristics (lock table, essentially back up the insert script or text, does not support differential backup), is not suitable for high-real-time requirements of the situationXtrabackup can solve some of the above problems in mysqldump, and the production environment will have more applications.This article simply tests the
-fullback-$(date +%F).sql2. View the binary log
Restore time:--flush-logs, here as long as the view from the beginning of the file can be, each time after scrolling from 154 onwards, there are 4,123 two operations, 4 rollback, 123 is an empty commandChange MASTER to master_log_file= ' master-bin.000023 ', master_log_pos=154;
3. Export Binary Log[[emailprotected] data]# cp /www/data/mysql/log-b
Tags: mysql backup and restoreBackup and restore of MySQLBackup: CopyRAID1,RAID10: Guaranteed hardware corruption without termination of business, no guarantee of logical destructionBackup type:Hot backup, warm backup and cold backupHot
to delete a large table. To restore the table and data, you can restore the backup of the previous night and enter: Mysqlbinlog--stop-date= "2005-04-20 9:59:59"/var/log/mysql/bin.123456 | Mysql-u root-pmypwd The command restores all data as of the date and time given in the
Label:MySQL backup and restore is done using the mysqldump, MySQL, and source commands. Backup and restore of MySQL under 1.Linux 1.1 Backup [[email protected] ~]# cd/var/lib/
Using mysql's own command to implement database backup and restoration method bitsCN.com This article introduces some commonly used mysql commands for data import and export, as long as we hold these commands, we can quickly back up and restore our database.
Import and Export mysql data to MB
Problem: the database an
is executed in the DOS Mysql/bin directory:Export:
SELECT * from AAA into outfile "E:/a.txt";
Import:
Load data local infile "e:/a.txt" into table AAA;
Backup: SELECT into outfile
SELECT * from Hx_9enjoy into outfile '/tmp/9enjoy.txt '
The tab splits the field by default, and the record uses/n split. You can customize three parameters.
SELECT * from Hx_9enj
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.