sql 代码排查
- 作者仓库星标 316
- 作者仓库 WordPress-Simple-History
Run SQL Queries
Run SQL queries against the WordPress development database.
Security: Development database only. Always confirm UPDATE/DELETE with user first.
Command Pattern
docker compose exec mariadb mysql -u<USER> -p<PASSWORD> <DATABASE> -e "YOUR_SQL_HERE"
Credentials are in CLAUDE.local.md under "Database Access".
Common Queries
# Show all tables
docker compose exec mariadb mysql -u<USER> -p<PASSWORD> <DATABASE> -e "SHOW TABLES;"
# Recent Simple History events
docker compose exec mariadb mysql -u<USER> -p<PASSWORD> <DATABASE> -e "SELECT * FROM wp_simple_history ORDER BY id DESC LIMIT 10;"
# Describe table structure
docker compose exec mariadb mysql -u<USER> -p<PASSWORD> <DATABASE> -e "DESCRIBE wp_simple_history;"
Table Prefixes
| Prefix | Installation |
|---|---|
wp_ |
Main install |
wp_nightly_ |
Nightly build |
wp_multisite_ |
Multisite |
Simple History Tables
wp_simple_history- Main events tablewp_simple_history_contexts- Event context/metadata
Workflow
- Read credentials from
CLAUDE.local.md - Ask user for query (if not specified)
- Run query and display results
- For UPDATE/DELETE: Always confirm with user first
- 流狐分类
- 通用
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @bonny · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需手动接入
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- Docker
- 底层运行要求
- Docker
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Command Pattern
Credentials are in CLAUDE.local.md under "Database Access".
Common Queries
Common Queries
Table Prefixes
Prefix · Installation wp · Main install wpnightly · Nightly build
Simple History Tables
wpsimplehistory - Main events table wpsimplehistorycontexts - Event context/metadata
Workflow
Read credentials from CLAUDE.local.md Ask user for query (if not specified) Run query and display results
# Run SQL Queries
Run SQL queries against the WordPress development database.
**Security:** Development database only. Always confirm UPDATE/DELETE with user first.
## Command Pattern
```bash
docker compose exec mariadb mysql -u<USER> -p<PASSWORD> <DATABASE> -e "YOUR_SQL_HERE"
```
Credentials are in `CLAUDE.local.md` under "Database Access".
## Common Queries
```bash
# Show all tables
docker compose exec mariadb mysql -u<USER> -p<PASSWORD> <DATABASE> -e "SHOW TABLES;"
# Recent Simple History events
docker compose exec mariadb mysql -u<USER> -p<PASSWORD> <DATABASE> -e "SELECT * FROM wp_simple_history ORDER BY id DESC LIMIT 10;"
# Describe table structure
docker compose exec mariadb mysql -u<USER> -p<PASSWORD> <DATABASE> -e "DESCRIBE wp_simple_history;"
```
## Table Prefixes
| Prefix | Installation |
| --------------- | ------------- |
| `wp_` | Main install |
| `wp_nightly_` | Nightly build |
| `wp_multisite_` | Multisite |
## Simple History Tables
- `wp_simple_history` - Main events table
- `wp_simple_history_contexts` - Event context/metadata
## Workflow
1. Read credentials from `CLAUDE.local.md`
2. Ask user for query (if not specified)
3. Run query and display results
4. **For UPDATE/DELETE:** Always confirm with user first 证据边界与执行链路
作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Command Pattern → Common Queries → Table Prefixes → Simple History Tables → Workflow
要点 -> Security · For UPDATE/DELETE · Run SQL queries against the WordPress development database. · Security: Development database only. · Credentials are in CLAUDE.local.md under "Database Access". · 1. Read credentials from CLAUDE.local.md 2.
文件/命令 -> CLAUDE.local.md · wpnightly · wpmultisite · wpsimplehistory · wpsimplehistorycontexts
内容 SHA-256 -> 31d38c4388e6
方法与流程
适用与边界
原文中的明确线索
CLAUDE.local.md、wpnightly、wpmultisite、wpsimplehistory、wpsimplehistorycontexts