MySQL Basic parameter query

Source: Internet
Author: User

[Email protected]~]# mysqladmin-f--socket=/opt/mysql.sock-uroot-p********* status; uptime:1296722 # MySQL run time (s) threads:30 #mysql连接数Questions: 97170647 #客户端请求mysql总的次数Slow queri        es:8787 #慢查询的次数Opens: 3451 #数据库打开表的次数Flush tables:1 #执行flush table number of open tables:2917 #现在打开表的个数Queries per second avg:74.935 #mysql平均每秒请求的个数 [[email protected] ~]#
Work in combat: fault handling: MySQL reported the number of connections over, to solve the idea 1. View the command above the current number of connections 2. Modify the my.cnf max-connection = n parameter (restart effective [mysqld] module) 3. Temporary effect in (mysql> set GLO BAL max_connections=n) (temporary entry into force) 4. All two changes will not be effected directly after the restart.


This article is from the "Brick Blog" blog, please be sure to keep this source http://wsxxsl.blog.51cto.com/9085838/1892773

MySQL Basic parameter query

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.