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

Detect MySQL service information through shell script

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

Today, a version of the script has been changed, and there is a relatively clear way to collect the basic information of MySQL.

Let me briefly explain the script.

The whole is divided into two parts.

The first part is to parse the basic information of MySQL through the system level, through the information obtained by ps-ef | grep mysql.

The second part is the information obtained by logging in to MySQL, including server_id,log_bin and so on.

The script reads as follows:

Ps-ef | grep mysql | grep-w mysqld | grep-v grep | awk-for

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

Internet Technology

Wechat

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

12
Report