随笔分类 -  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 阅读全文
posted @ 2022-01-13 20:38 代码诠释的世界 阅读(451) 评论(0) 推荐(0) 编辑
摘要:1. 用户及数据库创建 sudo -u postgres psql # 创建用户postgres=# create user test with password '123456'; # 创建数据库并指定拥有者postgres=# create database testdb owner test; 阅读全文
posted @ 2021-12-28 15:07 代码诠释的世界 阅读(1074) 评论(0) 推荐(0) 编辑
摘要:1. 官网 https://www.postgresql.org/download/linux/ubuntu/ 文档 PostgreSQL: Documentation 2. 安装 sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/a 阅读全文
posted @ 2021-12-28 14:42 代码诠释的世界 阅读(1269) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2021-08-25 16:43 代码诠释的世界 阅读(391) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示