我的postgres yaml
部分看起来像这样:
postgres:
container_name: 'postgres'
image: postgres:10.1
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=root
- POSTGRES_DB=myids
ports:
- "5432:5432"
networks:
- app-network
然后,当我使用HeidiSQL使用该凭据登录时,我无法看到我的数据库:
有任何想法吗?
感谢这个答案更新我设法使用此选择找到我的数据库https://dba.stackexchange.com/a/1304:
SELECT datname FROM pg_database
WHERE datistemplate = false;
现在问题为什么HeidiSQL不会显示出来?