baicai

白菜

一个勤奋的代码搬运工!

PostgreSQL Basic Usage: Creating databases, users, connections, and backing up/restoring databases.

title: "PostgreSQL Basic Usage: Creating Databases, Users, Connections, Backing Up/Restoring Databases"
date: 2022-07-22T14:26:40+08:00
slug: create_use1
type: posts
draft: false
categories: ["PostgreSQL","Using Software"]
tags: ["postgres"]#

System Environment:
Debian 11

Switch to superuser:#

Enter psql:#

Create a user:#

View role list:#

Create a database with specified owner and encoding:#

Create a database:#

View database list:#

Change ownership of the newly created database:#

Connect to the database using psql:#

Backup the database:#

Restore the database:#

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.