Problem: Fatal error: User "Postgres" Ident authentication failedNote: This is because there is no remote access configured and authentication method has not changed, only need to change the use of account password authentication.Workaround: Locate
First, the environment$ psql--versionpsql (PostgreSQL) 9.4.4 As we all know, superuser privileges are too large for the security of the database, for non-administrator accounts, you need to create a normal user. Second, the grammar$ psql psql (9.4.
First, the environment#配置远程连接su postgres vim/var/lib/pgsql/9.4/data/postgresql.conf Edit configuration file listen_address= ' localhost ' before the comment # removed, And the ' localhost ' should be ' * '; vim/etc/postgresql/8.2/main/pg_hba.conf
CREATE USER backup_user with ENCRYPTED PASSWORD ' qux94874 '; GRANT CONNECT on DATABASE foo_db to Backup_user; GRANT CONNECT on the DATABASE bar_db to backup_user;\c foogrant USAGE on the SCHEMA public to Backup_user; GRANT SELECT on all sequences
BackgroundPostgreSQL logical backup, refers to online backup database data, DDL output as SQL statements, data can be in the form of SQL statements or fixed separators (row format) output.
The backup does not affect the DML operation of the Backup
Seven, Pg_dump:
Pg_dump is a tool for backing up the PostgreSQL database. It can even make a full, consistent backup when the database is being used concurrently, without blocking access to the database by other users. The dump format generated by
Tag: User CTI SSI create cancels VAR use SSE byteTransferred from: https://www.cnblogs.com/chjbbs/p/6480687.htmlUsage:Pg_dump [OPTION] ... [DBNAME] The database name is last, not specified by default is the database specified by the system variable
New machine error after deploymentApp 12595 Stderr:pg::connectionbad (FATAL: Peer authentication failed for user "Dbuser" app 12595 stderr:):Surf the internet for a bit, many of the posts are said to modify/etc/postgresql/9.4/main/pg_hba.conf this
GRANT Privilege [, ...]On object [( column [, ...])] [, ...]to {public | username [, ...] } [with GRANT OPTION]These fields are compatible with the Postgres implementation, except for the following exceptions:Privilege SQL92 allows you to declare
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.