数据库PostgreSQL绿色版,64位版本13和11都有共27mb


Published:   Comment: No Comments

工具及下载

数据库PostgreSQL绿色版,64位版本13和11都有共27mb
PostgreSQL数据库
链接: https://pan.baidu.com/s/12mUIxKqGwELBPR_oV3DHiw 提取码: bjiq 复制这段内容后打开百度网盘手机App,操作更方便哦

https://wwr.lanzouj.com/iUIM6opzcja
密码:a6it

精简部分
保留全部 PostgreSQL 相关功能
删除自带的 pgadmin 4
删除文档
删除开发用头文件
删除开发用静态连接库
删除 Stack Build 工具
写了一个管理数据库用的批处理
注意:
部分系统可能需要安装 vc2010_redis

1.在bin目录下运行:createuser -s -r postgres 即可。PostgreSQL角色创建。

如果找不到createuser这个命令,可以在\bin中找到。添加到系统path中,或cd到这个文件夹再运行。

2.PG_DATA\pg_hba.conf 控制密码

pg_hba.conf

TYPE DATABASE USER ADDRESS METHOD

"local" is for Unix domain socket connections only

local all all md5

IPv4 local connections:

host all all 127.0.0.1/32 md5

IPv6 local connections:

host all all ::1/128 md5

Allow replication connections from localhost, by a user with the

replication privilege.

local replication all md5
host replication all 127.0.0.1/32 md5
host replication all ::1/128 md5

修改配置, 把 md5 改成 trust

3.重启服务, 使用如下命令修改 postgres 用户的密码
psql -U postgres
psql (11.5)
输入 "help" 来获取帮助信息.

postgres=# alter user postgres with password 'your_password';
ALTER ROLE
postgres=#
记得重新关闭服务, 然后把 trust 改回 md5 后, 重启服务.
请输入图片描述
请输入图片描述
请输入图片描述
请输入图片描述
请输入图片描述

none
Last Modified:2025-01-13 14:37:20

我有话说