8.5.2 Optimizing InnoDB Transaction Management optimizing InnoDB Transaction Management
Optimize InnoDB transactions to find the perfect balance between performance overhead and server load. Like what
An application may experience performance problems if it submits thousands of times per second, with different performance issues if it is submitted every 2-3 hours
The example of this article analyzes the MySQL hint the InnoDB feature is disabled need to open the InnoDB solution. Share to everyone for your reference, specific as follows:
First, the question:
Create a data table error:
ERROR 1289:the ' InnoDB ' feature is disabled; You are need MySQL built with ' InnoDB ' to ha
CACTI: Use a template to monitor mysql on a local server or another server
Mysql templates, online are using this address http://mysql-cacti-templates.googlecode.com has not been accessed
File currently downloaded: percona-cacti-templates-1.1.4-1.noarch.rpm
Local server monitoring local mysql:
Go to the cacti directory
cd /var/www/htmlMove the compressed file to the current directory (put it there ):
mv percona-cacti-templates-1.1.4-1.noarch.rpm .Deco
CACTI: Use templates to monitor mysql and cactimysql on local or other servers
Mysql templates, online are using this address http://mysql-cacti-templates.googlecode.com has not been accessed
Google found this URL:
Introduction: http://www.percona.com/doc/percona-monitoring-plugins/1.0/cacti/mysql-templates.html
Download Page: http://www.percona.com/downloads/percona-monitoring-plugins/
To facilitate the download, upload to csdn for download: http:
When configuring InnoDB parameters today, modify the default configuration. As a result, the started server does not support the InnoDB engine. Plugin 'innodb' registry as a storage engine failed.
Error Log:
InnoDB: Data File/usr/local/mysql4/data/ibdata2 did not exist: new to be created
100702 14:34:53
If the data in the MySQL production database on the line is mistakenly deleted, and the DBA goes to recover the data, it is discovered that the database is not backed up, Binlog, or open. Is there any other means to try to recover the data? Percona Company provides an unconventional repair tool that can be used to repair table data. Of course, this tool is limited:1, only for the InnoDB engine table 2, the table Row_format must be redundant or compact
Innodb row lock source code learning (1), innodb row lock source code
Innodb is the most popular storage engine in mysql databases. Compared with other storage engines, innodb supports transactions and row-level locks. Today, I would like to share with you the basic knowledge of in
Tags: author memory read output operation AST inventory OOP databaseInnoDB is the most critical database storage engine ever developed for MySQL database, which not only supports transactional features, but also has rich statistics to make it easy for database managers to understand the state of the recent InnoDB storage engine.Earlier versions of the InnoDB storage engine were implemented by creating a new
InnoDB source code analysis-transaction log (2), innodb source code
Original article, reproduced please indicate the original link: http://www.cnblogs.com/wingsless/p/5708992.html
Yesterday I wrote some basic points about the transaction log (http://www.cnblogs.com/wingsless/p/5705314.html), today combined with my recent learning results continue to summarize the knowledge of the transaction log.3. log stru
14.5.5.1 an InnoDB deadlock Example a InnoDB deadlock instance the following example demonstrates an error that can occur when a lock request causes a deadlock, example design 2 clients, A and b:jekins:/root# MySQL -uroot-p1234567-e "show ENGINE INNODB status\g;" |
Grep-i dead warning:using A password on the command line interface can is insecure.
First, client
Multiple versions of InnoDB and InnoDB
InnoDB is a multi-version storage engine. To support some features of transactions, such as concurrency and rollback, InnoDB maintains the old version of the modified row. This information is stored in a tablespace called "rollback segments" (similar to the rollback segments in Or
InnoDB achieves serialization isolation level, and innodb serializes
Serialization implementation
InnoDB implements serialization in two ways.
First, when the SELECT statement is in an explicit transaction block, such as executing the number 1 in Table 11-9, The LOCK_S lock will be applied, according to table 11-6 (record lock transaction lock compatibility table
insert a large number of record rows, you can use multiple-line (multi-line) inserts to reduce the communication overhead between the client and the server:
INSERT into Yourtable VALUES (1, 2), (5, 5);
This technique works for inserting any table, not just InnoDB.
12. If there is a unique constraint on the secondary key, starting with 3.23.52 and 4.0.3, you can improve the data import speed by closing the unique key check (uniqueness check) in an
[Note] InnoDB memory allocation and innodb Memory Allocation
Original article: http://www.mysqlperformanceblog.com/2006/05/30/innodb-memory-usage/
There are many problems related to how InnoDB allocates memory. Here I try to explain the memory allocation at startup. First, list important constants:
NBLOCKS = number of
InnoDB engineThe InnoDB engine provides support for database acid transactions and implements four isolation levels for the SQL standard. The engine also provides row-level and foreign-key constraints, which are designed to handle a large-capacity database system, which is itself a complete database system based on the MySQL backend, and the MySQL runtime InnoDB
, this is also why many people think that InnoDB is not as useful as MyISAM because innodb_buffer_pool_size = 4G # InnoDB shares the tablespace initialization size. the default value is 10 MB, which is also very bad X and changed to 1 GB, innodb_data_file_path = ibdata1: 1G: autoextend # If you do not know this option, we recommend that you set it to 1 to better protect data reliability and affect performan
Mysql> show InnoDB status\g;1. Row ***************************Type:innodbName:Status:=====================================140423 4:15:38 INNODB MONITOR OUTPUT=====================================Per second averages calculated to the last seconds
The parameter values are basically in seconds and you need to select the appropriate time interval sampling.
==========
basically did not change, can easily be changed to Linux programs, of course, Linux is the command line interface.About the performance, ordinary Pc,i3 550CPU, mechanical hard disk, if sweep cluster scan or scan by sector, the CPU does not have pressure, can reach the maximum speed of reading hard disk, when scanning byte by bit, the CPU single core full load, the speed has a certain impact, and then there is the mechanical hard disk if read and write are on the same block, Speed has a greater
) systems are not suitable for partitioning tables, and partitioning tables are not recommended if disk space and disk IO do not appear to be bottlenecks. OLAP (online analytical processing, such as Data Warehouse, Data mart) is more suitable for partitioning operations.Indexes and algorithmsIndexes and overhead are the need to find a balance, too much or too little will affect performance, resulting in excessive load, wasting hardware resources. And the index should be added at the outset, and
InnoDB storage engine becomes more efficient for storing blobs and text fields.
You can monitor the internal workings of the storage engine through the INFORMATION_SCHEMA table.
You can monitor the performance information of the storage engine through the performance schema table.
You can randomly mix the tables under the
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.