Share a set of SQL automatic checking artifacts, complete functions such as automatic completion, rollback, etc., from now on SQL errors are far away from you!

Introduction

Yearning MYSQL is a SQL statement review platform. Provide query audit, SQL audit and other functions, support Mysql, can solve the link between operation and development to a certain extent, feature rich, open source code, easy to install and deploy!

Open source address

https://gitee.com/cookieYe/Yearning

Features

  • SQL query query export query auto completion

  • SQL audit process chemical single SQL statement detection SQL statement execution SQL rollback

  • Historical audit record

  • Query audit

  • Push E-mail work order push Dingding webhook robot work order push

  • Other LDAP login user permissions and management puzzle-like fine-grained permissions division (a total of 12 independent permissions, which can be combined at will)

Module introduction

Dashboard

The dashboard mainly displays Yearning's various data including the number of users/data sources/work orders/query numbers and other charts. In the personal information column, users can modify passwords/emails/real names, and can view the user permissions and apply for permissions.

My ticket

Display the work order information submitted by the user. For the work order that failed/rejected, you can re-modify the SQL and submit after clicking the detailed information

For successfully executed work orders, you can view rollback statements and quickly submit SQL

Ticket DLL

DDL related SQL submission review, view table structure/index, SQL syntax highlighting/auto-completion

DML audit

DML related SQL submission review, SQL syntax highlighting/auto-completion

Inquire

Query/export data SQL syntax highlighting/auto-completion fast DML statement submission

Work order review

DDL/DML administrator review and execute

Query review

User query review

Permission review

User permission review

User Management

Create/modify/delete users

Database management

Add/Edit/Delete data source

User rights

User permission modification/clear

Basic settings and advanced settings

Set up message push related information including Dingding robot/email, set up LDAP related information, global configuration information, global configuration switch

Audit rules

Set SQL detection rules

Review process

Yearning adopts a two-level/multi-level audit mode, which can change the relevant use process according to actual needs. The executor role must be specified after the multi-level audit is turned on (please go to the settings page to open). If you need to change the multi-level audit to two Level audit, please make sure that all multi-level audit work orders have been confirmed and executed. Otherwise, the unexecuted work order cannot be retrieved. When the multi-level audit is closed, the system will not automatically reset the role of the user whose role is the executor, please reset the corresponding user role yourself

Secondary review process:

  • The user submits a work order to the corresponding work order submission unit (DDL, DML) according to his own authority

  • After receiving the message, the administrator reviews the work order request on the review work order page and executes/rejects the corresponding work order

  • The execution record will be recorded under the administrator user

Multi-level review process:

  • The user submits a work order to the corresponding work order submission unit (DDL, DML) according to his own authority,

  • After receiving the message, the administrator reviews the work order request on the review work order page and agrees/rejects the corresponding work order and selects the corresponding executor (the executor must be a user with the role of executor)

  • The executor executes/rejects the work order after receiving the work order

  • The execution record will be recorded under the executor user

Installation (this part can be directly connected to the code cloud or the official website for viewing)
Yearning does not rely on any third-party SQL audit tool as the audit engine, and has implemented audit/rollback related logic internally. Only rely on Mysql database. The mysql version must be version 5.7 and above. Please install it yourself and create the Yearning library in advance. The character set should be UTF-8/UTF8mb4 (only the mysql version required by Yearning). ! Yearning is developed based on 1080p resolution and only supports 1080p and above display access (you can download the binary file from the official website)

Fill in the configuration file

cat conf.toml
[Mysql]
Db = "Yearning"
Host = "127.0.0.1"
Port = "3306"
Password = "xxxx"
User = "root"

[General] #数据库加解密key,只可更改一次。
SecretKey = "dbcjqheupqjsuwsm"
Initialize the database

./Yearning -m

Start service

Start by default

Parameter start

Open the corresponding port of the browser, the default password: admin/Yearning_admin

to sum up

Finally, I prepared the Java architecture learning materials for everyone. The learning technology content includes: Spring, Dubbo, MyBatis, RPC, source code analysis, high concurrency, high performance, distributed, performance optimization, microservice advanced architecture development, etc. Friends in need can click here to remark csdn and download by themselves !
There are also Java core knowledge points + a full set of architect learning materials and videos + first-line interview collections + interview resume templates + Alibaba Meituan Netease Tencent Xiaomi Iqiyi Kuaishou Bilibili interview questions + Spring source code collection + Java architecture actual combat electronics Share the book with everyone for free!

Guess you like

Origin blog.csdn.net/jiagouwgm/article/details/111702290