High Performance MySQL Reading Notes-query performance optimization, high performance mysql
For high-performance database operations, it is not enough to design the optimal database table structure and build the best index. You also need to design
Mysql stored procedures and common functions, mysql stored procedures
I. Functions
1. mathematical functions
CEIL () into one integer
Select ceil (1, 1.2); 2
FLOOR () Rounding
Select floor (1, 1.9); 9
MOD remainder (Modulo)
Select mod (3,8); 3-3
Recently, I buy a tablet called HP touchpad, it has excellent hardware: 1.2 GHz CPU, 1g RAM, 9.7 inch screen. the built-in operating system for touchpad is HP WebOS. in point of UI view, WebOS is beautiful and apple-like. but there is main weakness
{Describe | DESC} table_name[Col_name -- supports wildcard % _]: Show columns from; this statement is provided to be compatible with Oracle.
Explain table_name: Describe table_name | show columns from table_name.
Explain[Extended |
MySQL must know the v1cn learning Summary----Blog, http://blog.csdn.net/shunqiziranhao007/article/details/8730477Date, January 1, March 28, 2013----Official website,Http://forta.com/books/0672327120/---- This book is suitable for getting started
MySQL basic learning Summary1. Basic concepts of MySQL
The logical architecture of mysql is as follows:
Each client connection will have a thread in the server, and the query of this connection will only be executed in this separate thread.
MySQL
MySQL has many basic commands, and the show command is also one of them. In many users, the use of the show command is also prone to confusion,This article brings together the many usage of the show command. 1. show tables or show tables from
MySQL timestamp type and Time Zone instance details, mysqltimestamp
MySQL timestamp type and Time Zone
Timestamp type time range of MySQL: between '2017-01-01 00:00:01 'and '2017-01-19 03:14:07 ', if the value exceeds this range, the record is '2017-
New Features of MySQL 5.6 GTID and new features of gtid
GTID Overview
What is GTID?
GTID (Global Transaction ID) is the ID of a committed Transaction and a globally unique ID.
GTID is actually composed of UUID + TID. UUID is the unique identifier of
MySQL Slow Query Log)
Like most relational databases, log files are an important part of MySQL databases. MySQL has several different log files, such as error log files, binary logs, common logs, and slow query logs. These logs help us locate the
MySQL improves the buffer for reading abnormal errors (MySQL5.6)
What is an error buffer?
In MySQL, the Error Buffer only records the last error. If a new error is generated, the old one will be overwritten. If you want to know what errors are
MySQL lock Blocking analysis, mysql lock Blocking
During routine maintenance, threads are often blocked, resulting in slow database response. Let's take a look at how to obtain which thread causes blocking.
Blog: http://blog.csdn.net/hw_libo/article/
Brief description and example of MySQL Replication
Master-slave replication is widely used in MySQL. It is mainly used to synchronize data on one server to multiple slave servers. It can be used for load balancing, high availability and failover,
[SQL chapter -- DATABASE/EVENTS], -- databaseevents[SQL chapter] [SQL statement sorting: -- Based on MySQL5.6] [sorted: DATABASE/EVENTS] [will be improved] directory:1. Data Definition Statements:1.1 create database, alter database, show databases 1.
EXPLAIN the usage of MySQL Execution Plan Analysis ToolFamiliar with SQL Execution Plan analysis skills for DBAs is vital for quickly locating database performance problems. The following describes how to analyze MySQL execution plans.1. EXPLAIN how
This article introduces the character length and related parameters of the varchar data type in mysql. For more information, see this article.
This article introduces the character length and related parameters of the varchar data type in mysql. For
Showprocesslist result filtering bitsCN.com
Show processlist result filtering
In MySQL
Show variables where variable_name like '% auto %'
This statement can be executed normally,
Show processlist where host like '% 100'
An error is reported:
Summary of the msyqlshow command bitsCN.com
MySQL has many basic commands, and the show command is also one of them. in many users, the use of the show command is also prone to confusion,This article brings together the many usage of the show
in MySQL show variables where variable_name like '%auto% ' this statement can execute normally, but show processlist where Host like '%192% ' will error: error Code:1064you has an error in your SQL syntax; Check the manual-corresponds to your
In order to quickly synchronize data needs, I staged two Python scripts, that is, two process synchronization data opened, the results of the server reported the database deadlock exception, through the troubleshooting Code and database log
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.