Configs2026年5月29日·1 分钟阅读

Yearning — Open Source MySQL SQL Audit Platform

Yearning is a web-based MySQL SQL audit and query platform written in Go, providing a streamlined workflow for database change reviews, approvals, and execution with role-based access control.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
Yearning Overview
直接安装命令
npx -y tokrepo@latest install 52cf4c57-5b37-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

Yearning is a self-hosted MySQL SQL audit platform that adds a review and approval workflow to database changes. It targets teams that need controlled access to production databases with full audit trails and automated SQL syntax checking.

What Yearning Does

  • Provides a web UI for submitting, reviewing, and executing SQL changes
  • Enforces approval workflows before SQL runs against production databases
  • Checks SQL syntax and performance implications before execution
  • Supports role-based access control with separate DBA and developer roles
  • Maintains complete audit logs of all queries and schema changes

Architecture Overview

Yearning is a Go application with a Vue.js frontend. It connects to target MySQL databases through a connection pool and proxies all SQL operations through its audit engine. The audit engine validates statements against configurable rules (naming conventions, index requirements, dangerous operations) before allowing execution.

Self-Hosting & Configuration

  • Deploy with Docker using the official image for quick setup
  • Configure MySQL connection details for each target database
  • Set up LDAP or local authentication for user management
  • Define audit rules for SQL validation (naming, indexing, etc.)
  • Configure approval chains with required reviewer counts

Key Features

  • SQL syntax validation with customizable rule sets
  • Multi-level approval workflow (developer, reviewer, DBA)
  • Query result export to CSV and Excel
  • Auto-completion and syntax highlighting in the SQL editor
  • Scheduled SQL execution for maintenance windows

Comparison with Similar Tools

  • DBeaver — general database client; Yearning adds audit and approval workflows
  • Bytebase — schema migration focus; Yearning focuses on ad-hoc SQL audit
  • Archery — similar SQL audit tool; Yearning has a more modern UI and active maintenance
  • Chat2DB — AI-powered queries; Yearning focuses on governance and audit compliance

FAQ

Q: Does Yearning support databases other than MySQL? A: Currently Yearning focuses on MySQL and MariaDB. PostgreSQL support is community-requested.

Q: Can I integrate Yearning with my CI/CD pipeline? A: Yes. Yearning provides a REST API for programmatic SQL submission and approval status checks.

Q: How does the approval workflow work? A: Developers submit SQL statements, reviewers validate them, and DBAs execute approved changes against the target database.

Q: Is there support for scheduled execution? A: Yes. Approved SQL can be scheduled to run during defined maintenance windows.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产