The following articles mainly introduce three very useful methods to optimize MySQL database queries. We all know that in MySQL database query optimization queries, database applications (such as MySQL (the best combination with PHP) actually mean
**************************************** ******************
The first part is to build a multi-mysql service on a server.
**************************************** ******************
I. xuyan
There is a mysqld_multi command in Mysql that can be used
Run multiple MySQL services on the same machine
Run multiple MySQL services on the same machine
**************************************** ******************
The first part is to build a multi-mysql service on a server.
*****************************
Similarly, using the goods table to practice subqueries, the table structure is as follows:All data (cat_id associated with category.cat_id):Category table:Mingoods (test when connecting queries)First, sub-query 1,where sub-query: The result of the
This article mainly introduces the MySQL log settings and viewing methods, the need for friends can refer to the following MySQL logs: error log:-log-err query log:-log slow query log:-log-slow-queries update log:- Log-update binary log:-log-bin by
MySQL Study Notes summary, mysql Study Notes
Slow SQL: A Query whose execution time exceeds the specified time range is called a slow query.In MySQL, how does one record slow SQL statements?A: You can set the following information in my.
Excerpt from: http://www.jb51.net/article/33736.htmWith the help of explain, you know when to add an index to the table to use the index to find records and make the select run faster.If some problems arise due to improper use of the index, you can
From: The asynchronous implementation of MySQL query via the co-processObjectiveRecently studied Ben Linders's speech and learned that Facebook's MySQL query can be asynchronous to improve performance. Because Facebook was implemented earlier, they
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.