如何解决“错误:权限被拒绝”创建数据库的问题?

时间:2019-10-10 02:53:09

标签: 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 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 
------------

0 个答案:

没有答案