首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从sql格式转储恢复pythonanywhere上的postgresql

从sql格式转储恢复pythonanywhere上的postgresql
EN

Stack Overflow用户
提问于 2019-08-01 01:15:54
回答 1查看 118关注 0票数 1

我将PythonAnywhere升级到99美元的启动计划,并创建了一个PostgreSQL数据库。PythonAnywhere数据库页面显示:Address: magula6-1249.postgres.pythonanywhere-services.com Port: 11249 Superuser role name: super我想从我的macbook上创建的pg-dump文件填充我的新数据库。我已经尝试了几种:$ psql -H magula6-1249.postgres.pythonanywhere-services.com -U super -p 11249 -f 2019_7_30_pgdump.sql psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.11249"?我也尝试过:奇怪的是,postgres=# \i /home/magula6/cogswatch/2019_7_30_pgdump.sql tpsql:/home/magula6/cogswatch/2019_7_30_pgdump.sql:149: ERROR: function "function_correctiveaction" already exists with s ame argument types appears数据库页面显示:Postgres disk usage: 100% full (1.0 GB of your 1.0 GB quota),但数据库显示为空:postgres=# \d No relations found.

EN

回答 1

Stack Overflow用户

发布于 2019-08-01 01:44:54

答案是:

postgres=# grant usage on schema public to public; postgres=# grant create on schema public to public; postgres=# \d (我所有的表都会出现--太棒了)

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57295994

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档