Log in to the PostgreSQL database consolepsql 数据库名Login successful Display[zpf@kevin ~]$ psql postgrespsql (9.4.1)Type"help"for help.postgres=#Create DATABASE User xxxCREATE USER xxx WITH PASSWORD ‘xxxxxx‘;Create a database yyy and specify all of
I. Description of the orderPsql is the interactive terminal of PostgreSQL, which is equivalent to Sqlplus in Oracle. When the command is executed to connect to the database, the default user and database are Postgressecond, the command parameters-C
Operating system: DEBIAN8There may be a warning error when you log in to PG:$ psql-u User1-D exampledbpsql: Fatal error: Peer authentication failed for user "user1"Open the following file,sudo VI /etc/postgresql/9.4/main/pg_hba.conf" Local " for
Since MySQL was acquired by Oracle, PostgreSQL has become the first choice for open-source relational databases.This article describes the installation and basic usage of PostgreSQL for first-time users to get started. The following is based on the
Install the open source database PostgreSQL 9.4 and phpPgAdmin on UbuntuIntroduction
PostgreSQL is a powerful, open-source, and Object-based relational database system. It supports all mainstream operating systems, including Linux, Unix (AIX, BSD,
PostgreSQL provides three backup and recovery methods: SQL dump, file system replication, and online hot backup. Each backup method has its own advantages and disadvantages, which will be described in detail below.
9.1 SQL dumpThis backup method
Use the sqlite3 C language to implement the login registration function, the database sqlite3
// This code is the registration function void create_regtable () {int rc; // rc is the returned value to determine whether the function is successfully
Pg_dumpNamePg_dump -- extract a PostgreSQL database to a script file or other archive files.SynopsisPg_dump [options...] [dbname]
DescriptionPg_dump is a tool that saves a PostgreSQL database to a script or archive file. the script file is in plain
The next generation asynchronous multiple primary database replication System Bucardo 5 was released. This version removes the limit of two database sources in the old version, allowing for more source databases (that is, the primary database) and
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.