Run cross-database analysis from Claude
언제 쓸까: You need to pull from Postgres (app) AND MySQL (legacy) in one conversation without switching tools.
사전 조건
- config.json with both connections — Repo docs show the shape; store credentials in env refs, not inline
흐름
-
Start the serverRun
./bin/server -t sse -c config.jsonand confirm both connections come up.✓ 복사됨→ Server logs 2 connections ok -
Query eachFrom
prod(Postgres): users signed up last week. Fromlegacy(MySQL): orders attributed to them. Join in memory.✓ 복사됨→ Combined dataset
결과: Cross-system insights without a data warehouse.
함정
- Read-only assumption breaks — agent runs INSERTs — Use DB-level read-only users per connection; don't rely on agent discipline