Detailed explanation of MySQL monitoring tool mysql-monitor

Detailed explanation of MySQL monitoring tool mysql-monitor

1. Overview

mysql-monitor MYSQL monitoring tool, optimization tool, various tools in one java spring boot project

Git address: https://github.com/lccbiluox2/mysql-monitor.git

2. Code Architecture

insert image description here

3. Backend Services

The main class of the backend service is com.neo.MySQLMointorApplication

3.1 Database of backend services

spring.datasource.driverClassName = com.mysql.jdbc.Driver
spring.datasource.url = jdbc:mysql://localhost:3306/mysql_monitor?useUnicode=true&characterEncoding=utf-8&useSSL=true
spring.datasource.username = root
spring.datasource.password = 12345678

Modify this according to your needs.

The SQL script is in doc/sql/mysql_monitor.sql Please create a table first, and then run the main class.

4. Front-end service

Front-end main page: web-provider/html/database/database-list.html

Because the front-end and back-end are separated, the most primitive html+jquery+ajax is used to operate the back-end and display it, which solves the cross-domain problem. Just open the page directly.

4.1 Configuration

The front-end configuration file is as follows: web-provider/js/constant.js

//Define several global variables var AppUrl = "http://localhost:8090"; //The request page of the entire page

Mainly configure the address of the backend request.

5. The effect is as follows

5.1 Database List Page

insert image description here

5.2 Database Details Page

insert image description here

5.3 Table List Page

[External link image transfer failed. The source site may have an anti-hotlink mechanism. It is recommended to save the image and upload it directly (img-02scH5o2-1595137037936)(doc/images/image-20200718132514464.jpg)]

5.4 Table Details Page

[External link image transfer failed. The source site may have an anti-hotlink mechanism. It is recommended to save the image and upload it directly (img-KPBFeyN8-1595137037938)(doc/images/image-20200718132536443.jpg)]

5.5 SQL analysis interface

insert image description here

More features will be developed later. . . Waiting. .

7. Goals

The ultimate goal is to achieve integrated MySQL operation, maintenance and monitoring, and only for MySQL, not other databases. The main goal is to enable developers to only need to know how to use MySQL and this tool, which will automatically help us analyze the shortcomings of the table and the shortcomings of SQL writing, so that developers can become MySQL DBA with this.

Features currently considered

  • SQL execution optimization: developers write a SQL statement, but do not know whether the performance is good or not. They only need to click on the page to enter the SQL statement, and then various
  • Execute and draw a table to show various optimized SQL executions. This requires the use of Antlr for lexical analysis and grammatical analysis.
  • Automatically analyze the table structure. For example, if you set varchar(100), and your data only uses 50 bytes, then calculate the space lost by this field and the disk space.
  • The automatically sampled index forms a tree diagram and displays it on the page, giving us a rough idea of ​​what the index we created looks like.
  • A large number of performance monitoring graphs

This is the end of this article about the MySQL monitoring tool mysql-monitor. For more relevant MySQL monitoring tool content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Detailed explanation of the binlog log analysis tool for monitoring MySQL: Canal
  • 5 MySQL GUI tools recommended to help you with database management
  • A detailed introduction to the construction and use of the tool Anemometer graphically displays MySQL slow logs
  • How to use MySQL stress testing tools
  • Pycharm tool failed to connect to MySQL database
  • How to quickly repair corrupted MySQL database files using the myisamchk and mysqlcheck tools
  • Analysis of Mysql data migration methods and tools
  • A quick solution to accidentally delete MySQL data (MySQL Flashback Tool)
  • KTL tool realizes the method of synchronizing data from MySQL to MySQL
  • How to connect to MySQL visualization tool Navicat
  • Recommend several MySQL related tools

<<:  Detailed explanation of how to run jmeter under Linux system and optimize local memory

>>:  React's method of realizing secondary linkage

Recommend

Use pictures to realize personalized underline of hyperlinks

Don't be surprised if you see some kind of und...

CSS3 sample code to achieve element arc motion

How to use CSS to control the arc movement of ele...

Detailed explanation of overflow-scrolling to solve scrolling lag problem

Preface If you use the overflow: scroll attribute...

How to use nginx to build a static resource server

Taking Windows as an example, Linux is actually t...

Correct way to load fonts in Vue.js

Table of contents Declare fonts with font-face co...

XHTML introductory tutorial: text formatting and special characters

<br />This section introduces how to impleme...

CentOS 8 installation diagram (super detailed tutorial)

CentOS 8 is officially released! CentOS fully com...

MySQL derived table (Derived Table) simple usage example analysis

This article uses an example to describe the simp...

MySQL 8.0.13 decompression version installation graphic tutorial under Windows

This article shares with you the MySQL 8.0.13 ins...

Javascript scope and closure details

Table of contents 1. Scope 2. Scope Chain 3. Lexi...

The problem of Vue+tsx using slot is not replaced

Table of contents Preface Find the problem solve ...

Install centos7 virtual machine on win10

1. Download VMware Workstation 64 version https:/...

JS+Canvas realizes dynamic clock effect

A dynamic clock demo based on Canvas is provided ...

js implements custom drop-down box

This article example shares the specific code of ...