# RedFoxDB **Repository Path**: redfox_vip/RedFoxDB ## Basic Information - **Project Name**: RedFoxDB - **Description**: RedFoxDB是一个通用的数据库管理和SQL客户端工具。 基于经典 SQLyog Community Edition 二次开发的 Windows 桌面端 MySQL/MariaDB 数据库管理工具。 在保留原版稳定内核的基础上,融入了大量现代化的功能增强——从 AI 智能助手 到 实时 SQL 编辑器,从 可视化数据对比到WinUI3/Fluent主题,让数据库管理更高效、更智能、更美观。 - **Primary Language**: C++ - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: https://gitee.com/redfox_vip/RedFoxDB - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 21 - **Created**: 2026-08-03 - **Last Updated**: 2026-08-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: RedFoxDB, 数据库管理工具, db, SQLyog, Navicat平替 ## README # RedFoxDB

🦊 免费开源 · 功能增强 · 开箱即用的 MySQL/MariaDB 可视化管理工具

License Platform Database AI Ready

快速开始功能介绍对比原版开源协议

--- ## 🦊 项目简介 **RedFoxDB** 是一款基于经典 [SQLyog Community Edition](https://github.com/webyog/sqlyog-community) 二次开发的 **Windows 桌面端 MySQL/MariaDB 数据库管理工具**。 我们在保留原版稳定内核的基础上,融入了大量现代化的功能增强——从 **AI 智能助手** 到 **实时 SQL 编辑器**,从 **可视化数据对比** 到 **WinUI3 Fluent Design 主题**,让数据库管理更高效、更智能、更美观。 ### ⚡ 技术栈与性能哲学 RedFoxDB 采用 **纯 C/C++ + Win32 API** 原生构建,不依赖 Electron、JVM 或任何 Web 运行时——这意味着: | 对比维度 | RedFoxDB(原生 C/C++) | Electron 方案 | Java 方案 | |---------|----------------------|--------------------------|------------------------| | 启动速度 | **秒开**,无冷启动延迟 | 需加载 Chromium 引擎,启动慢 | 需初始化 JVM,启动慢 | | 内存占用 | **极低**,典型 30-60 MB | 200 MB 起步,多标签可达 GB | 300 MB+,随项目增长 | | 安装包体积 | **精简**,无需捆绑运行时 | 捆绑完整浏览器引擎,体积庞大 | 捆绑 JRE,体积大 | | 渲染性能 | **GDI+ 抗锯齿**,60fps 流畅滚动 | Web 渲染,大数据量下卡顿 | Swing/JavaFX,高 DPI 适配差 | | 系统融合度 | **原生 Win32 窗口**,完美适配高 DPI | 模拟原生,细节有差异 | 非原生控件,风格割裂 | 我们在**极致性能**与**现代美观**之间不做二选一的妥协——通过自研 `wyFluent` 视觉引擎,在原生 GDI+ 画布上实现了 WinUI3 Fluent Design 的磨砂渐变、圆角卡片和抗锯齿图标,**既保留了原生应用的轻快响应,又拥有了现代 UI 的精致观感**。 > **完全免费,完全开源,遵循 GPL 2.0 协议。** > 无需注册、无需激活、无功能阉割——下载即用,所有功能一步到位。 --- ## ✨ 核心亮点 ### 🤖 AI 智能助手 内置可配置的多模型 AI 对话面板,支持所有 OpenAI 兼容 API——**国内外大模型自由切换**(OpenAI、Claude、通义千问、DeepSeek、文心一言等)。 - **数据库上下文感知** — 自动附带当前连接库的表结构,AI 回答更精准 - **流式 SSE 响应** — 逐字输出,实时可见,告别漫长等待 - **SQL 代码块高亮** — 深色主题 + 行号 + 语法高亮,附「复制 / 发送到编辑器 / 继续追问」快捷按钮 - **多会话管理** — 支持新建、切换、历史回看,会话记录持久化保留近一年 - **模型配置面板** — 可视化管理多个 API 端点,API Key 采用 DPAPI 加密存储,安全可靠 - **快捷指令芯片** — 一键「优化 SQL / 解释表结构 / 生成测试数据」,降低使用门槛 > 写 SQL 不再只靠手写——让 AI 帮你理解表结构、生成查询、优化语句。 ### 🔍 实时筛选过滤器 每个数据表都拥有**独立的嵌入式筛选面板**,直接嵌入数据网格上方,无需弹窗。 - **可视化条件组合** — 支持 AND / OR 逻辑运算,下拉选择字段与操作符 - **实时 SQL 合成** — 筛选条件即时转化为 SQL WHERE 子句,所见即所得 - **多表独立** — 切换数据表时各自保留筛选状态,互不干扰 > 告别手动拼 WHERE,数据筛选从未如此直观。 ### 📝 实时 SQL 编辑器 在筛选面板中点击「应用查询」,可视化条件即刻转化为**可编辑的 SQL 语句**,支持即时修改和执行。 - 可视化操作与手写 SQL **无缝衔接** - 适合从「拖拽筛选」平滑过渡到「手写查询」的学习场景 ### 🛠️ 高级工具套件(SqTools) 原版社区版缺失、仅在付费版提供的高级功能,RedFoxDB **全部解锁**: | 工具 | 说明 | |------|------| | **数据库同步向导** | 跨库结构对比与同步,一键生成 DDL 差异脚本 | | **模式同步** | 表结构差异可视化对比,精确到列级别 | | **数据对比** | 逐行可视化数据差异比较,支持合并方向选择 | | **CSV 外部导入** | 灵活的 CSV 数据导入,支持字段映射与编码选择 | | **定时备份 / 任务引擎** | 30 秒精度隐藏定时器,任务持久化于 `redfoxdb_jobs.txt`,重启不丢失 | ### 📊 SQL 格式化器 一键切换**紧凑模式**(单行)和**格式化模式**(美化缩进),仅针对选中的查询生效,不影响其他 SQL 窗口。 ### 📋 EXPLAIN 查询分析 社区版直接激活 **EXPLAIN 结果网格**,直观查看查询执行计划——性能优化不再被版本限制。 ### 🎨 WinUI3 Fluent Design 主题 自封装 `wyFluent` 视觉引擎,基于 GDI+ 抗锯齿渲染: - **Mica 磨砂渐变背景** — 类 Windows 11 原生质感 - **圆角卡片 + 浅灰表头** — 现代化视觉层次 - **Fluent 线条图标** — 加号 / 齿轮 / 时钟 / 漏斗 / 发送等全套图标 - **深色 / 浅色自适应** — 随系统主题自动切换 ### 📌 对象浏览器增强 数据库列表支持**置顶 / 置底**排序,常用数据库一键固定,大型项目也能快速定位。 ### 🌐 默认简体中文界面 开箱即用,无需额外配置语言。同时保留完整英文界面支持。 ### 📋 结果网格「复制为」 右键结果集行,支持以 **CSV / JSON / SQL INSERT / 制表符分隔** 等多种格式快速复制数据。 --- ## 🚀 快速开始 ### 环境要求 - Windows 10 / 11 64-bit - MySQL 5.7+ / MariaDB 10.x ### 📥 下载运行(推荐)

Download Latest Release

1. 点击上方按钮,或前往 [Releases 页面](../../releases/) 下载 `Release.zip` 2. 解压到任意目录 3. 双击 `RedFoxDB.exe` 即可运行——**无需安装、无需注册、无需运行时环境** > 💡 如果仓库内下载不便,也可直接使用本仓库中的 `bin/x64/Release/Release.zip` 文件。 ### 编译构建 ``` Visual Studio 解决方案:build/RedFoxDB.sln(项目 build/RedFoxDB.vcxproj) 编译配置:Release | x64 输出路径:bin/x64/Release/RedFoxDB.exe ``` 命令行编译: ```cmd MSBuild.exe build/RedFoxDB.vcxproj /p:Configuration=Release /p:Platform=x64 ``` 运行时需要 `bin/x64/Release/` 目录下的 DLL 文件(MySQL 客户端库、OpenSSL、SciLexer、HTMLayout 等)。 --- ## 📖 功能对比 | 功能 | SQLyog Community | RedFoxDB | |------|:---:|:---:| | 基础连接管理 / 查询编辑器 | ✅ | ✅ | | 对象浏览器 | ✅ | ✅ 支持置顶/置底 | | 数据导入/导出 | ✅ | ✅ | | **AI 智能助手(多模型)** | ❌ | ✅ | | **实时筛选过滤器** | ❌ | ✅ | | **实时 SQL 编辑器** | ❌ | ✅ | | **数据库同步向导** | ❌ Community未开放 | ✅ | | **模式同步 / 数据对比** | ❌ Community未开放 | ✅ | | **定时备份 / 任务引擎** | ❌ Community未开放 | ✅ | | **SQL 格式化器** | ❌ | ✅ Community未开放 | | **EXPLAIN 查询分析** | ❌ Community未开放 | ✅ | | **WinUI3 Fluent 主题** | ❌ | ✅ AI助理/筛选过滤器/其他模块持续迭代中 | | **默认简体中文** | ❌ | ✅ | | **复制为(多种格式)** | ❌ | ✅ | > 加粗行为 RedFoxDB 新增功能或基于原版未开放功能修改而来,全部免费开放。 --- ## 📂 项目结构 ``` sqlyog/ ├── src/ # 源代码(.cpp) │ ├── AiAssistant.cpp — AI 智能助手面板 │ ├── InlineFilterBar.cpp — 实时筛选过滤器 │ ├── SqTools.cpp — 高级工具套件 │ ├── ConnectionCommunity.cpp — 社区版连接入口 │ └── ... ├── include/ # 头文件(.h)与资源 │ ├── AiAssistant.h │ ├── wyFluent.h — WinUI3 Fluent 视觉引擎 │ ├── SQLyog.rc — 对话框资源 │ └── ... ├── build/ # Visual Studio 解决方案 │ ├── RedFoxDB.sln │ └── RedFoxDB.vcxproj └── bin/x64/Release/ # 编译输出 & 运行时依赖 DLL ``` --- ## 📜 开源协议 Copyright (C) 2001-2025 Webyog Inc. / Idera, Inc. — 原始 SQLyog Community Edition Copyright (C) 2026 RedFoxDB project — 二次开发修改与新模块 RedFoxDB 是自由软件:您可以在 GNU 通用公共许可证(GPL)第 2 版的条款下重新分发和/或修改它。 本程序 distributed in the hope that it will be useful, but **WITHOUT ANY WARRANTY**; 详情请参阅 [GNU General Public License](LICENSE.md)。 第三方组件列表见 [NOTICE](NOTICE)。 "SQLyog" 是 Webyog Inc. / Idera, Inc. 的商标。本项目是独立的分支版本,与 Webyog、Idera 或 Quest Software 无关,也未获得其认可或赞助。 --- ## 🙏 致谢 RedFoxDB 基于 [SQLyog Community Edition](https://github.com/webyog/sqlyog-community)(GPL v2, Copyright (C) Webyog Inc. / Idera, Inc.)二次开发。感谢 Webyog 团队开源了这一优秀的数据库管理工具,为我们提供了坚实的开发基础。 --- # RedFoxDB (English)

🦊 Free & Open Source · Enhanced · Ready-to-Use MySQL/MariaDB GUI Client for Windows

--- ## About **RedFoxDB** is a Windows desktop GUI client for MySQL and MariaDB, forked from [SQLyog Community Edition](https://github.com/webyog/sqlyog-community) (GPL v2, Copyright (C) Webyog Inc. / Idera, Inc.). Built on the stable core of SQLyog Community, RedFoxDB brings modern productivity features — from an **AI-powered assistant** to a **live SQL editor**, from **visual data comparison** to a **WinUI3 Fluent Design theme** — making database management smarter, faster, and more beautiful. ### ⚡ Tech Stack & Performance Philosophy RedFoxDB is built with **pure C/C++ + Win32 API** — no Electron, no JVM, no web runtime. The result: | Dimension | RedFoxDB (Native C/C++) | Electron-based (e.g. DBeaver) | Java-based (e.g. DataGrip) | |-----------|------------------------|-------------------------------|---------------------------| | Startup | **Instant**, no cold-start lag | Loads Chromium engine, slow boot | JVM initialization, slow boot | | Memory | **Minimal**, typically 30-60 MB | 200 MB+, can reach GBs with tabs | 300 MB+, grows with project | | Installer size | **Compact**, no runtime bundled | Bundles full browser engine | Bundles JRE, heavy | | Rendering | **GDI+ anti-aliased**, 60fps smooth scroll | Web rendering, laggy on large datasets | Swing/JavaFX, poor HiDPI | | OS integration | **Native Win32 windows**, perfect HiDPI | Simulated native, minor inconsistencies | Non-native widgets, visual mismatch | We refuse to choose between **extreme performance** and **modern aesthetics**. Through our custom `wyFluent` visual engine, WinUI3 Fluent Design — mica gradients, rounded cards, anti-aliased icons — is rendered entirely on native GDI+ canvas. The result: **the snappy responsiveness of a native app with the refined look of a modern UI**. > **100% free. 100% open source. Licensed under GPL 2.0.** > No registration, no activation, no feature gating — download and run. --- ## Features Everything in SQLyog Community Edition, plus the following self-developed enhancements: ### 🤖 AI Assistant Built-in configurable multi-model chat panel supporting all OpenAI-compatible APIs. Switch freely between international and domestic LLMs (OpenAI, Claude, Qwen, DeepSeek, ERNIE, etc.). - Database context awareness — auto-attaches current schema for precise answers - Streaming SSE responses — real-time token-by-token output - SQL code blocks with syntax highlighting, plus Copy / Send to Editor / Ask Again buttons - Multi-session management with persistent history (up to 1 year) - Visual model configuration panel with DPAPI-encrypted API key storage - Quick-action chips: Optimize SQL / Explain Table / Generate Test Data ### 🔍 Inline Filter Bar Per-table embedded filter panel directly above the data grid — no popups needed. - Visual condition builder with AND/OR logic - Real-time SQL WHERE clause composition - Independent state per table — switching tabs preserves each filter ### 📝 Live SQL Editor Click "Apply Query" in the filter bar to convert visual conditions into editable SQL. Modify and execute instantly — seamless bridge between drag-and-drop filtering and hand-written queries. ### 🛠️ Advanced Tools Suite (SqTools) Premium features from the paid edition, fully unlocked: - **Database Sync Wizard** — cross-database schema comparison and synchronization - **Schema Sync** — column-level structural diff visualization - **Data Comparison** — row-by-row visual data diff with merge direction control - **CSV External Import** — flexible CSV import with field mapping and encoding options - **Scheduled Backup / Job Engine** — 30-second precision hidden timer, persisted in `redfoxdb_jobs.txt` ### 📊 SQL Formatter Toggle between compact (single-line) and formatted (beautified indent) SQL for the selected query only. ### 📋 EXPLAIN Query Analysis Community edition now includes the EXPLAIN results grid for query execution plan analysis. ### 🎨 WinUI3 Fluent Design Theme Custom `wyFluent` visual engine with GDI+ anti-aliased rendering: - Mica gradient backgrounds — native Windows 11 look and feel - Rounded cards + light-gray headers — modern visual hierarchy - Fluent line icons — full set including plus, gear, clock, filter, send, and more - Dark / Light mode auto-switching ### 📌 Object Browser Enhancement Pin databases to top or bottom for quick access in large projects. ### 🌐 Simplified Chinese UI by Default Ready to use out of the box. Full English interface also available. ### 📋 Copy As Context Menu Right-click result grid rows to copy in multiple formats: CSV, JSON, SQL INSERT, Tab-separated, and more. --- ## 📥 Download & Run

Download Latest Release

1. Click the button above, or go to the [Releases page](../../releases/) to download `Release.zip` 2. Extract to any directory 3. Double-click `RedFoxDB.exe` — **no installation, no registration, no runtime required** > 💡 You can also find the release package directly in this repository at `bin/x64/Release/Release.zip`. --- ## Building ``` Visual Studio solution: build/RedFoxDB.sln (project build/RedFoxDB.vcxproj) Configuration: Release | x64 Output: bin/x64/Release/RedFoxDB.exe ``` Command-line build: ```cmd MSBuild.exe build/RedFoxDB.vcxproj /p:Configuration=Release /p:Platform=x64 ``` The executable requires the DLLs shipped in `bin/x64/Release/` (MySQL client libraries, OpenSSL, SciLexer, HTMLayout, etc.). --- ## Comparison | Feature | SQLyog Community | RedFoxDB | |---------|:---:|:---:| | Basic connection / query editor | ✅ | ✅ | | Object browser | ✅ | ✅ Pin to top/bottom | | Data import/export | ✅ | ✅ | | **AI Assistant (multi-model)** | ❌ | ✅ | | **Inline filter bar** | ❌ | ✅ | | **Live SQL editor** | ❌ | ✅ | | **Database sync wizard** | ❌ | ✅ | | **Schema sync / data comparison** | ❌ | ✅ | | **Scheduled backup / job engine** | ❌ | ✅ | | **SQL formatter** | ❌ | ✅ | | **EXPLAIN query analysis** | ❌ | ✅ | | **WinUI3 Fluent theme** | ❌ | ✅ | | **Simplified Chinese default** | ❌ | ✅ | | **Copy As (multi-format)** | ❌ | ✅ | --- Highlighted Features:​ All new additions and modifications unlocking RedFoxDB's previously unavailable capabilities are made freely accessible to everyone. ## License Copyright (C) 2001-2025 Webyog Inc. / Idera, Inc. — original SQLyog Community Edition Copyright (C) 2026 RedFoxDB project — modifications and new modules RedFoxDB is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 (GPL-2.0-only). This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the [GNU General Public License](LICENSE.md) for more details. Third-party components are listed in [NOTICE](NOTICE). "SQLyog" is a trademark of Webyog Inc. / Idera, Inc. This project is an independent fork and is not affiliated with, endorsed by, or sponsored by Webyog, Idera, or Quest Software. --- ## Acknowledgments RedFoxDB is based on [SQLyog Community Edition](https://github.com/webyog/sqlyog-community) (GPL v2, Copyright (C) Webyog Inc. / Idera, Inc.). Thanks to the Webyog team for open-sourcing this excellent database management tool, providing us with a solid foundation for development.