论坛


2026年9月19日 星期六

postgresql建库建表脚本

delphi中间件| 博客园_咏南中间件和开发框架 |12:33:00

-- 1. 创建数据库(需在 postgres 库或超级用户下执行) CREATE DATABASE mydb WITH OWNER = postgres ENCODING = 'UTF8' LC_COLLATE = 'en_US.UTF-8' LC_CTYPE = 'en_US.UTF-8' TE

ubuntu配置postgresql远程访问

delphi中间件| 博客园_咏南中间件和开发框架 |07:55:00

1)配置文件路径 /etc/postgresql/16/main 2)配置postgresql.conf listen_addresses = '*' #监听所有ipv4和ipv6 password_encryption = scram-sha-256 # scram-sha-256 or md5

ubuntu安装postgresql数据库

delphi中间件| 博客园_咏南中间件和开发框架 |07:38:00

1)更新软件包列表 sudo apt-get update 2)安装postgresql sudo apt-get install postgresql 3)安装完成后,PostgreSQL会自动启动。你可以使用以下命令检查PostgreSQL服务的状态: 默认安装的是postgresql16版本,