Databases 4 min read

Explore Yearning: A Lightweight MySQL SQL Audit Platform for SMEs

Yearning is a lightweight, self‑contained MySQL SQL audit platform that offers query auditing, SQL review, permission management, and automated rollback, with simple installation steps and no reliance on third‑party tools, making it ideal for small and medium enterprises.

Programmer DD
Programmer DD
Programmer DD
Explore Yearning: A Lightweight MySQL SQL Audit Platform for SMEs

Today I share what may be the most popular MySQL SQL audit platform, Yearning.

Yearning is a lightweight MySQL SQL statement audit platform aimed at small and medium enterprises, offering query auditing, SQL review and other functions.

Current features include:

SQL Query

Query tickets

Export

Auto‑completion, intelligent suggestions

Query statement audit

Result desensitization

SQL Review

Workflow tickets

SQL syntax checking

Compliance checking based on rules

Automatic generation of DDL/DML rollback statements

Historical review records

Push

E‑mail ticket push

DingTalk webhook robot ticket push

User permissions and management

Role division

Fine‑grained user permissions

Registration

Other

TodoList

LDAP login

Dynamic audit rule configuration

Custom audit hierarchy

AutoTask automatic execution

Yearning does not rely on any third‑party SQL audit tools; it implements its own audit and rollback logic and only depends on a MySQL database at runtime.

Usage is simple and requires three steps:

1. Fill the configuration file

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

[General]   # Database encryption key, can be changed only once.
SecretKey = "dbcjqheupqjsuwsm"

2. Initialize and install

./Yearning install

3. Start the service

# default start
./Yearning run

# start with parameters
./Yearning run --push "172.27.80.35" -port "8000"

Then open a browser at http://127.0.0.1:8000; the default username/password is admin/Yearning_admin.

Yearning welcomes secondary development, so interested users can try it out.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

BackendmysqlSQL auditDatabase Tools
Programmer DD
Written by

Programmer DD

A tinkering programmer and author of "Spring Cloud Microservices in Action"

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.