db-exec - MySQL 直接执行脚本
当 MCP MySQL 因端口非 3306 无法连接时,用此脚本执行 SQL。
首次使用
cd .cursor/scripts/db-exec
npm install
用法
# 从项目根目录执行
node .cursor/scripts/db-exec/run.js "SELECT 1"
node .cursor/scripts/db-exec/run.js -f migrations/xxx.sql
凭证自动从 soul-api/.env 的 DB_DSN 读取。