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

Native JavaScript carousel implementation method

This article shares the implementation method of ...

Detailed explanation of common commands in MySQL 8.0+

Enable remote access Enable remote access rights ...

Basic principles for compiling a website homepage

1. The organizational structure of the hypertext d...

Are the value ranges of int(3) and int(10) the same in mysql

Table of contents Question: answer: Reality: Know...

WeChat applet realizes left-right linkage

This article shares the specific code for WeChat ...

js to achieve a simple magnifying glass effect

This article shares the specific code of js to ac...

MySQL uses the Partition function to implement horizontal partitioning strategy

Table of contents 1 Review 2 Five strategies for ...

New usage of watch and watchEffect in Vue 3

Table of contents 1. New usage of watch 1.1. Watc...

3 different ways to clear the option options in the select tag

Method 1 Copy code The code is as follows: documen...

How to add Nginx to system services in CentOS7

Introduction After compiling, installing and solv...

Detailed tutorial on setting password for MySQL free installation version

Method 1: Use the SET PASSWORD command MySQL -u r...

Detailed steps to delete environment variables in Linux

How to delete environment variables in Linux? Use...

How to view the storage location of MySQL data files

We may have a question: After we install MySQL lo...