Tag:handler Execution time file max low memory sql query request read err There are many articles on the web to teach how to configure MySQL server, but considering the different server hardware configuration, the
There are a lot of articles on the web to teach how to configure MySQL server, but considering the different server hardware configuration, the specific application of the difference, those articles can only be used as a preliminary setting
mysql> show global status;
The MySQL server can be listed to run various status values, in addition, query the MySQL server configuration information statement:
mysql> show variables;
One, slow query
mysql> show variables
MySQL View database operation log the query log for MySQL logs all requests for MySQL databases. Whether or not these requests have been properly executed. The default file name is Hostname.log. By default, the MySQL query log is turned off.
Day06First, MySQL master-slave synchronizationSecond, the data read and write separationThird, MySQL optimization++++++++++++++++++++++++++++++++First, MySQL master-slave synchronization1.1 Introduction to Master-slave synchronization? Automatically
A basic tutorial on querying logs and slow query logs in MySQL,
I. query logs
Query all the queries in MySQL by using "-- log [= file_name. Because all the queries, including all the select statements, are recorded, and the size is relatively large,
Open the log-bin parameter in the master database to ensure that the server-id parameters of the master and slave are different.
Create a rep user on the master to allow slave access
[Plain] view plaincopyprint?MASTER @ root @ (none) 12:34:34> grant
mysql> show global status; Can list MySQL server running various status values, my personal preferred usage is show status like ' query value% '; One, slow query mysql> show variables like '%slow% '; +------------------+-------+ | variable_name
Analyze MySQL performance optimization points from large to small, from primary to secondary, to achieve the ultimate optimization.Using Mindmanger to organize ideas, such as, each point can be found on the internet to explain, and recorded. The
The company's Nagios monitoring server has been issuing ctritical alarms for MySQL databases on the Intranet for a long time, because I have activated the text message alarms of other colleagues, so my colleagues in the entire system group
MySQL has a lot of 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 summarizes the many usage of the show command.1. Show tables or show tables from
MySQL slow Query
The slow query (slow log) helps us locate specific SQL statements for SQL statement optimization. For example, the slow query log records the SQL statements whose execution time exceeds the given value, locate the problem.
Enable
This article describes how to query logs and slow query logs in MySQL. It also describes how to use the Mysqldumpslow log analysis tool that comes with MySQL. For more information, see
I. query logs
Query all the queries in MySQL by using "-- log [=
DbaDatabase server???? Responding to client connection requests is particularly slow
Hardware configuration is too low--cpu, memory, hard disk
Network transfer speed
Excessive client access, busy database server
Software problem-
mysql> show global status; Can list MySQL server running various status values, my personal preferred usage is show status like ' query value% '; One, slow query mysql> show variables like '%slow% '; +------------------+-------+ | variable_name
Domestic private equity Jiuding Holdings create app to send $20 cash to collect address: http://jdb.jiudingcapital.com/phone.htmlInternal Invitation Code:c8e245j (do not write the invitation code, no cash to send)domestic private equity firm Jiuding
The company's Nagios monitoring Server long-term internal network with the MySQL database issued ctritical alarm, because I will other colleagues of the mobile phone SMS alarm also opened, make the whole system team colleagues are complaining (hehe)
Analyze MySQL performance optimization points from large to small, from primary to secondary, to achieve the ultimate optimization.Using Mindmanger to organize ideas, such as, each point can be found on the internet to explain, and recorded. The
This article "My MySQL Learning experience (15)" will explain the MySQL logThe logs in MySQL are divided into 4 categories, and using these log files, you can see what's happening inside MySQL.respectively is1, error log: Log the MySQL service start,
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.