Files
atlas-seller-kit/docs/guides/连接数据库.md
2026-09-04 10:27:29 +08:00

946 B
Raw Permalink Blame History

在Cursor中连接数据库

可以。为这次手工维护 Ozon 币种,请在 SQLTools 用迁移专用账号连接:

字段 填写内容
Connection name Atlas Local - Migrator
Connection group 可留空,或填 Local
Connect using Server and Port
Server Address localhost
Port 根目录 .env 的 POSTGRES_PORT(通常是 5432)
Database 根目录 .env 的 POSTGRES_DB(通常是 atlas)
Username atlas_migrator
Use password 选择 SQLTools Driver Credentials,并填根目录 .env 的 ATLAS_MIGRATOR_PASSWORD 值

不要使用 atlas_app_login:它给 API/Worker 用,权限不足以执行迁移或平台配置维护。

连上后,先执行:

SELECT code, name, capabilities
FROM atlas.platforms
WHERE code = 'OZON';

确认能读到 Ozon 后,再执行我前一条消息提供的事务 SQL。密码不要贴到聊天里。