Discover postgres switch database, include the articles, news, trends, analysis and practical advice about postgres switch database on alibabacloud.com
Psql: Fatal error: User "Postgres" Ident authentication failed1 after installing the PostgreSQL database, you need to initialize and some configuration rails project to connect PostgreSQL.After the PostgreSQL data is installed (the Yum command is
One: Command line Backup and recovery Postgres database①: First switch to Postgres userSu Postgres
②: Backing up a database named host to a temporary file Host.dumpPg_dump-w Host >/tmp/host.dump
③: Import data from backup file infile to database
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
1. Fully Automated backupNeed to install postgres (preferably the same version) on the backup machineIn the Postgres directory to create a password to save the file (plaintext, so confidentiality is important), if not established, because each
Summary of Postgres operations in Ubuntu
1.Basic operation commands
After the installation is complete, PostgreSQL creates a database user account named Postgres by default. It is a super Administrator account like the root account of MySQL
What this article contains: Use commands to manipulate import and export of Oracle, Postgres, MySQL, including logging on to dataNote: I am using the Center OS operating system in the company, so both Oracle and Postgres are used in Linux and not
0. Remove unnecessary tables and stored procedures from the 200 server Setup database
DROP TABLE "Sensorpressure";DROP FUNCTION hex_to_int (text);DROP FUNCTION "Pressuredatatosensorpressure" ();
1. Back up 200 of the SETUPD database,:p g_dump-d-H
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.