随笔分类 - postgres
摘要:1. 更新系统 sudo apt-get update sudo apt-get dist-upgrade sudo apt-get autoremove 2. 安装postfixadmin sudo apt install php7.2-fpm php7.2-cli php7.2-imap php
阅读全文
摘要:1. 用户及数据库创建 sudo -u postgres psql # 创建用户postgres=# create user test with password '123456'; # 创建数据库并指定拥有者postgres=# create database testdb owner test;
阅读全文
摘要:1. 官网 https://www.postgresql.org/download/linux/ubuntu/ 文档 PostgreSQL: Documentation 2. 安装 sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/a
阅读全文
摘要:1. 找到安装目录的pg_hba.conf 比如我的:C:\Program Files\PostgreSQL\13\data,你的可能是别的目录 2. 修改scram-sha-256为trust # IPv4 local connections: host all all 127.0.0.1/32
阅读全文