Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

MySQL patrol inspection

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Query tables that are not innodb engines

Select TABLE_NAME,TABLE_SCHEMA,engine from information_schema.tables where engine='MyISAM' and TABLE_SCHEMA not in ('mysql','performance_schema','information_schema')

Check the current qps and tps, and so on #! / bin/bash/usr/bin/mysqladmin-P3306-uroot-p extended-status-i1 | awk 'BEGIN {local_switch=0 Print "QPS Commit Rollback TPS Threads_con Threads_run\ nMurray -"} $2 ~ / Queries$/ {QQ quotation 4;} $2 ~ / Com_commit$/ {caterpillar 4 } $2 ~ / Com_rollback$/ {if 4;} $2 ~ / Threads_connected$/ {tc=$4;} $2 ~ / Threads_running$/ {tr=$4; if (local_switch==0) {local_switch=1; count=0} else {if (count > 10) {count=0 Print "- -\ nQPS Commit Rollback TPS Threads_con Threads_run\ nMurray -" } else {count+=1; printf "%-6d%-8d%-7d%-8d%-10d% d\ n", qmeme crecedence cprecedence tcjurisdiction trr;} 'View multiple instance select insert update delete conditions #! / bin/bashsetup_select () {clearcat

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report