In the Windows environmentAdd "System environment variables". My Computer > Properties > Advanced > environment variable, under the "System Variables" section, find the path double-click Edit. Add, (semicolon), and then add the path to the Bin folder (containing files such as Mysql.exe and Mysqldump.exe) in the MySQL installation directory, such as F:\wamp\bin\mysql\mysql5.0.45\bin.After that, start > run, enter CMD to open the Command line window,Be sure to note that this is not a MySQL command
Use mysqldump to export databases.
First, I met a database named mydb,
There are two tables, mytable and mytabletwo.
Both tables have data.
C: \ Program Files \ mysql \ MySQL Server 5.1 \ bin> mysqldump-uroot-proot-D mydb> C:/KUjiegou. SQL// Export the structure of all tables in the specified database.(Specifically, d
recovery policies need to be developed based on the actual situation.
What data does MySQL Backup need to back up?
It mainly includes data, configuration files, binary logs, and transaction logs.II. Introduction of backup tools: 2.1 MySQL backup tools:
Mysqldump: Logical backup tool, MyISAM (temperature), InnoDB (hot backup)Mysqlhotcopy: physical backup tools and warm backup2.2 file system tools:
Cp: Cold backup
Lv: logical volume snapshot function,
tools:
Cp: Cold backup
Lv: logical volume snapshot function, which can achieve almost hot backup. The backup process is as follows:
Mysql> flush tables;Mysql> LOCK TABLES
Create a snapshot: Release the lock and then copy the data.2.3 Third-party tools:
Ibbackup: A commercial tool that provides fast backup and supports hot backup, but it is also very expensive.Xtrabackup: Open-Source Tool
Iii. Back up MySQL using mysqldump: 3.1 basic syntax: B
Mysqldump-uroot-p111111-q-e-R-x -- databasesaccountgame_s1game_s2 ...... d: backup. SQL # self-used backup parameters for your reference. For more use of mysqldump, refer to blog. csdn. netallen_aarticledetails51330658-quick,-q this option is useful when exporting large tables
Mysqldump-uroot-p111111-q-e-R-x -- databases
The following articles mainly introduce one of the frequently used backup methods in MySQL Databases: MySQLdump and description of related matters that should be paid attention to during the actual operation of MySQLdump, the following is a description of the specific solution. I hope it will help you in your future study.
My
Requirements Description :A few databases in the MySQL server are backed up by the mysqldump tool.Or, you can back up one of the databases.Operation Process :1. Back up with the name of the database appended to the--databases parameter[Email protected] mysqldb_backup]$ mysqldump-uroot-p--single-transaction--master-data
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 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 database operations, backup is required first. If there is no backup, your
Because MYSQLDUMP adds a global lock for the entire database.If MYSQLDUMP is used for full-database backup, the following three factors may be affected.1. The server CPU is severely blocked.2. the disk I/O line is increased.3. All queries become slow queries.My current website database is about 5 GB and increases every day.The table structure is a mixture of MYIS
My backup scripts are executed in the early morning, and I often see this information in the slow query log: select * from table1;I have been wondering before, and finally I learned that it was the ghost of MYSQLDUMP.Because MYSQLDUMP adds a global lock for the entire database.If MYSQLDUMP is used for full-database backup, the following three factors may be affected.1. The server CPU is severely blocked.2.
Because mysqldump adds a global lock for the entire database.
If mysqldump is used for full-database backup, the following three factors may be affected.
1. The server CPU is severely blocked.
2. the disk I/O line is increased.
3. All queries become slow queries.
My current website database is about 5 GB and increases every day.
The table structure is a mixture o
Tags: MySQL comes with tool ase ... Mode mysqldump two Databases Connections commandMySQL database provides a very useful tool mysqldump to back up the database, the following will use the mysqldump command to back up all the databases
Mysqldump-uroot-p111111-q-e-r-X--databases account game_s1 game_s2 ... > D:\backup.sql #自己用过的备份参数 for everyone's referencemysqldump More usage Reference http://blog.csdn.net/allen_a/article/details/51330658–quick,-qThis option is useful when exporting large tables, forcing mysqldump to cache records directly from the server query instead of getting
Tags: standard database dump Zip class false redirect www.Original: http://www.open-open.com/code/view/1420121471484This method can be used to back up the local database to the remote host via mysqldump, and the transfer of intermediate data is encrypted via SSH. The standard input is read by cat on the remote host and the mysqldump is redirected to the file.Mysqldump M
Label:MyISAM to InnoDB ALTER TABLE boblog_blogs Engine=innodb;ALTER TABLE Boblog_calendar Engine=innodb; Max connections Show global variables like "%max_con%";Set global max_connections xxx; GRANT All PrivilegesGRANT all privileges on * * to ' root ' @ '% ' identified by ' sa123 ' with GRANT OPTION;GRANT all privileges on * * to ' myuser ' @ ' percent ' identi
[Email protected] ok]# mysqldump-uemove-h xx.xx.xx.xx-p9906 DBname t_name-p >2t_tname.sqlPass--set-gtid-purged=off. To make a complete dump, pass--all-databases--triggers--routines--events. [[emailprotected] desktop]# mysqldump--versionmysqldump Ver 10.13 distrib 5.6 . 34 , for After Linux (x86_64) about GTID is 5.
Label: This article goes to: http://blog.csdn.net/cug_jiang126com/article/details/49824471
In the mysqldump process, before in fact has not been very understanding why add--single-transaction can ensure that the InnoDB data is exactly the same, and MyISAM engine can not guarantee, must add--lock-all-tables, The previous period of time has been spent looking at the entire
Label: The show Databases command is used to display all databases.Show databases command format: show databases; (Note: There is a last s)For example:mysql> show databases;Note: To modify the default encoding of the database in order not to be garbled at the time of display
Tags: windows7 databases data mys base mysql5.5 font Choice LogLi Wu:Heng Learn to think together, honouring teachers save Thanksgiving. Leaf See root three return to one, rivers the same oneness.Meekness Conscience Lord, willing to do without regrets to the most bitter. Reading exercises to keep the body and mind, sincere advice and the line and cherish.
Data,
data, Lingen on the data. You must be cautious about operating the database. Giv
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.