Postgresql 如何解决;错误:权限被拒绝";创建数据库?

Postgresql 如何解决;错误:权限被拒绝";创建数据库?,postgresql,ubuntu,psql,Postgresql,Ubuntu,Psql,我试图将数据库文件转储到我的数据库表中。但是我犯了这些错误。我不知道这个错误是什么意思 try@try-T3500:~$ sudo psql -U try rt3 < rt3-20191007-WengLi.db Password for user try: SET SET SET ERROR: permission denied to create role ERROR: unrecognized role option "nobypassrls" LINE 1: ...HERIT

我试图将数据库文件转储到我的数据库表中。但是我犯了这些错误。我不知道这个错误是什么意思

try@try-T3500:~$ sudo psql -U try rt3 < rt3-20191007-WengLi.db
Password for user try: 
SET
SET
SET
ERROR:  permission denied to create role
ERROR:  unrecognized role option "nobypassrls"
LINE 1: ...HERIT NOCREATEROLE NOCREATEDB LOGIN NOREPLICATION NOBYPASSRL...
                                                             ^
ERROR:  permission denied to create role
ERROR:  unrecognized role option "bypassrls"
LINE 1: ...SER INHERIT CREATEROLE CREATEDB LOGIN REPLICATION BYPASSRLS;
                                                             ^
ERROR:  permission denied to create database
ERROR:  permission denied to create database
WARNING:  no privileges could be revoked for "template1"
REVOKE
WARNING:  no privileges were granted for "template1"
GRANT
You are now connected to database "postgres" as user "mimos".
SET
SET
SET
ERROR:  unrecognized configuration parameter "idle_in_transaction_session_timeout"
SET
SET
 set_config 
------------
try@try-T3500:~$sudo psql-U try rt3
首先,您需要使用具有适当权限的用户,然后需要使用此数据库能够理解的SQL。这可能是一个非常旧的PostgreSQL版本,也可能是一些残缺的fork。
idle\u in\u transaction\u session\u timeout
是在第9.6页中引入的,看起来您使用的是之前的版本