问题描述
我已经尝试将数据库转储到psql几天了,但我无法弄清楚这里发生了什么。我尝试过的最新消息:
C:\Users\oefel>psql -U postgres -f trivia.psql trivia_test;
Password for user postgres:
psql: error: Could not connect to server: FATAL: database "trivia_test;" does not exist
C:\Users\oefel>psql -U postgres -f trivia.psql trivia;
Password for user postgres:
psql: error: Could not connect to server: FATAL: database "trivia;" does not exist
C:\Users\oefel>psql -U postgres test_trivia < trivia.psql;
The system cannot find the file specified.
这些数据库肯定存在,并且我确保psql正在运行。我可以看到其他人在Windows中运行psql命令时遇到了问题,我已经尝试实现这些解决方案,但是没有任何效果。我经常在“ psql”附近或命令中第一个出现的单词附近出现语法错误(尝试过pg_restore,Get-Content,pg_dump)。
有人遇到这个问题还是有人可以阐明这个问题?我真的很感激!
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)