docker pgvector 在运行时 报 role "postgres" does not exist

在Docker中运行pgvector时出现角色'postgres'不存在的错误。解决方法:进入容器,使用实际配置的用户名(如xyx)通过psql连接,执行CREATE ROLE postgres WITH SUPERUSER LOGIN;创建超级用户角色,然后退出。

作者:zhuge··预计阅读 1 分钟·1,019 阅读·0 评论
docker pgvector 在运行时 报 role "postgres" does not exist
docker exec -it your_container_id bash
psql -U xyx postgres   # 替换 xyx 为实际配置的用户名
CREATE ROLE postgres WITH SUPERUSER LOGIN;
\q

相关文章

评论

加载中...