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
I am used to installing MySQL in binary format. today I am eager to install an RPM Package for MySQL. I did not expect that I have encountered some problems. I will share with you the problems I encountered. first, I will download the installation
Case study of failure to log on to the server using the specified MySQL clientI am used to installing MySQL in binary mode. Today I am eager to install MySQL with an RPM package. I did not expect that I have encountered some problems. I will share
MySQL uses show status to view the status of the MySQL server, statusmysql
During website development in the LAMP architecture, we sometimes need to know the MySQL server status information, such as the running time after MySQL is started and the
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.
Directory
I. Optimization Overview
Ii. query and index optimization Analysis
1. performance bottleneck locating
Show command
Slow query log
Explain analysis Query
Profiling Analysis Query
2 Index and Query Optimization
Iii. Configuration
Role of the master and slave:
1. It can be used as a backup method.
2. read/write splitting to relieve the pressure on a database
MySQL master-slave backup principle:
Mysql master-slave replication requires at least two Mysql services. Of course,
Slow sql: Queries that run longer than a given time range are called slow queries.How do I record slow sql in MySQL?A: You can set the following information in MY.CNF:
[Mysqld]
; Enable the slow query log, default
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
Detailed steps for implementing mysql hot backup in linux (mysql master-slave replication) bitsCN.com
Role of the master and slave:
1. it can be used as a backup method.
2. read/write splitting to relieve the pressure on a database
MySQL
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.