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
In the lamp architecture of the Web site development process, sometimes we need to understand the MySQL server status information, such as the current MySQL startup run time , the current MySQL client session connections , the current MySQL server
In the lamp structure of the Web site development process, sometimes we need to understand the MySQL server status information, such as the current MySQL startup running time, the current MySQL client session connection number, the current MySQL
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
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)
Mysql show table status method for obtaining table information, mysqlstatus
Usage
mysql>show table status;mysql>show table status like 'esf_seller_history'\G;mysql>show table status like 'esf_%'\G;
Example:
mysql>show table status like
Show [Global | session] status [like ' xxx '];Global option to view all MySQL connection statusSession options, view current connection status, default session optionFlush status; You can reset many status values to zero.Get the total number of
First, let's look at the basics of the SHOW INNODB STATUS output, which prints a lot of counters, statistics, transactional information about INNODB internal performance. In MySQL 5, the performance statistics of InnoDB are also shown in the show
1. View MySQL server configuration informationMysql> Show variables;2. View the various status values running on the MySQL serverMysql> show global status;3, slow query1. mysql> show variables like ‘%slow%‘; 2. +------------------+-------+ 3. |
How to use
Mysql>show table status;
Mysql>show table status like ' Esf_seller_history ' \g;
Mysql>show table status like ' esf_% ' \g;
Sample Example:
Mysql>show table status like ' Esf_seller_history ' \g;
1.Name
Table
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.