Skip to content

重新恢復sql 資料時遇到問題 #114

Closed
@tiruhsu

Description

螢幕快照 2024-06-28 18-28-51
執行完docker cp db_backup_xxxxxxx.sql onlinejudgedeploy_oj-postgres_1:/root
docker exec -it onlinejudgedeploy_oj-postgres_1 bash
之後,遇到psql: FATAL: role "postgres" does not exis 的問題
我不知道是不是我不熟悉bash或是container拉錯了
因為原本的onlinejudgedeploy_oj-postgres_1 是寫oj-postgres

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions