input statement.mysql> show databases;+--------------------+| Database |+--------------------+| Information_schema || MySQL || Performance_schema || Test |+--------------------+4 rows in Set (0.00 sec)[[email protected] ~]# cp-arp/opt/tong/var/lib/mysql/--Move the backed up data to the MySQL data root directory[Email protected] ~]#
MySQL backup tool-mysqlhotcopy
Mysqlhotcopy uses lock tables, flush tables and cp or scp to quickly back up the database. it is the fastest way to back up a database or a single table. It is a physical backup, but it can only be used to back up the MyISAM storage engine and run on the machine where the database directory is located. different from mysqldump backup, mysqldump is a logical backup that runs SQ
-p123456Test the performance of the different storage engines at the same time:# mysqlslap-a--concurrency=50,100--number-of-queries--iterations=5--engine=myisam,innodb--debug-info-uroot- p123456Perform a test, respectively, 50 and 100 concurrently, and perform 1000 total queries:# mysqlslap-a--concurrency=50,100--number-of-queries--debug-info-uroot-p12345650 and 100 concurrently get a test result (Benchmark), the more concurrent the number, the longer
, long_query_time, and log-slow-queries. You can runShow variables like '% slow % ';Check the specific configuration of the current version.
You can also set global variables on the terminal to enable slow query logs:
set @@global.slow_query_log = ON;Save slow query logs to the table
MySQL supports saving slow query logs to the mysql. slow_log table. You can use @ global. log_output to set the default valu
MySQL itself provides command line export tool mysqldump and MySQL source Import command for SQL data import and export work, through the MySQL command line export tool mysqldump command to export MySQL data into text Format (TXT)
MySQL itself provides command line export tool mysqldump and MySQL source Import command for SQL data import and export work, through the MySQL command line export tool mysqldump command to export MySQL data into text Format (TXT)
MySQL has a lot of graphical management tools, in the end which is better to use it? This article will introduce several commonly used MySQL graphical management tools, some of the use and download methods, see below for details. If you feel useful, you can share it with more people.
MySQL has a lot of management and maintenance tools, in addition to the system
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 commands for SQL data import and export. The
Mysql Backup Tools Xtraback full-volume and incremental testingXtrabackup is an open source project for Percona, can be hot backed up InnoDB, XtraDB, and MyISAM (Will lock the table)Official website Http://www.percona.com/docs/wiki/percona-xtrabackup:startXtrabackup is an open source software developed by Percona , which can be said to be an open source alternative to the InnoDB hot standby tool Ibbackup .
These tools may have been used, especially the system administrator or Linux Server maintenance students may know these gadgets, there will be a little more, in addition to the system monitoring gadgets, including some MySQL tools, and even in-depth tools will be mentioned.1, probably will tell the contentVmstat/iostat/mpstat/ifstat/dstat:stat class, view system status,Pstack: This command displays the stack trace for each process. The Pstack command
MySQL's first backup tool mysqldump, we have talked to you in the last article, if you still have doubts, please click MysqldumpMySQL's second backup tool LVM snapshot, so today we'll talk about it. LVM Snapshot Volume Win BeiMysqldump is able to implement hot standby for InnoDB storage engine, but it can't implement hot standby for MyISAM engine;And today we're going to introduce LVM to achieve almost hot
= tpch
Modify the Tpcd.h file to add a few lines of macro definition:#ifdef MYSQL#define Gen_query_plan ""#define Start_tran "START TRANSACTION"#define End_tran "COMMIT"#define SET_OUTPUT ""#define SET_ROWCOUNT "Limit%d;\n"#define SET_DBASE "Use%s;\n"#endifThe make compilation is then performed and two executables are generated when the compilation is completed:dbgen: Data Generation tool. When testing
Label:PS: Today a colleague asked me to have a more reliable MySQL stress test tool available. In fact, MySQL comes with a pressure test tool called Mysqlslap, or a good simulation. Let me give you an example. Mysqlslap is an official MySQL-provided stress testing
Import large MySQL database backup files with Bigdump tool
created in 2010-07-01, Thursday 00:00
author
Bai Jianpeng
In the joomla! 1.5 website anti-Black 9 commandments "The first thing we mentioned in this article is: Backup your joomla! in a timely and regular manner. Website. We also recommend using the Backup
Recently, I have been getting familiar with MySQL and it is imminent to understand how to optimize it. To do this, you must first sharpen the tool. Recently, I plan to learn about several frequently used tools to optimize MySQL. Today, I will give a brief introduction to EXPLAIN.Content navigation
Id
Select_type
Table
Type
Possible_keys
Key
Key_len
Ref
Tags: mysql backup tool xtrabackup1. Backup Xtrabackup tool installation (only data can be backed up and table structure cannot be backed up)http://tongcheng.blog.51cto.com/6214144/15625382.xtrabackup Basic Parameters--defaults-file--The default configuration file for the database--target-dir--Directory where backup files are stored--backup--Back up to the--targe
One, MySQL use:MySQL tool is the official MySQL connection tool, the user can connect to the MYSQLD via MySQL a series of SQL operations. There are two modes of the MySQL tool: interact
MySQLStudy-MySQLinnodb engine backup tool XtraBackup (Install) Xtrabackup is a tool for InnoDB data backup and supports online hot backup (data read/write is not affected during backup ), it is a good commercial backup tool InnoDBHotbackup for MySQL Study-one of MySQL innodb
MySQL server-side Use tool program
mysqld-SQL Daemon (that is, the MySQL server process). The program must start running to connect to the server to access the database.
mysqld_safe-Server startup script, you can start the MYSQLD server through Mysqld_safe. Mysqld_safe adds some security features, such as restarting the server and writing run time in
GitHub has officially announced the release of Gh-ost:github's MySQL no-trigger online Change table Definition tool in open source mode!Gh-ost was developed by GitHub in recent months to address a frequently encountered problem: changing product requirements constantly require changes to the MySQL table structure. Gh-ost changes the structure of the online table
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.