Alibabacloud.com offers a wide variety of articles about postgres psql command line, easily find your postgres psql command line information here online.
I. INTRODUCTION to psql is a PostgreSQL command line interactive client tool, similar to the command line tool sqlplus: 1 in Oracle allows you to interactively type SQL or commands, then they are sent to the PostgreSQL server, and then the SQL or
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
1. Switch to Postgres user;2. Enter: Psql, enter the client psql of PostgreSQL;3.\l View all the current databases;4.psql Database1 connected to database1 this database;5. \dt View all the tables of the currently connected database (DATABASE1);6. \d
Rails connection postgresql error: psql: Fatal error: User "s" Ident authentication failed, psqlpostgresPsql: Fatal error: User "s" Ident authentication failed
1. After the postgresql database is installed, you must initialize and configure some
Common Psql commands
Source: http://www.cnblogs.com/happyhotty/articles/1920455.html
\ D[
Table]
List tables in the database or (if declared) tables
TableIf the table name is declared with a wildcard ("*"), it lists the column/field
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
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
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
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.