Files
soul-yongping/.cursor/scripts/db-exec
..

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/.envDB_DSN 读取。