Mac 安装 postgres
安装
arch -arm64 brew install postgresql
初始化数据库
initdb --locale=C -E UTF-8 /opt/homebrew/var/postgres
启动服务
brew services start postgresql
客户端登录
psql postgres
创建用户
CREATE ROLE postgres WITH LOGIN PASSWORD 'postgres';
ALTER ROLE postgres CREATEDB;
使用 navcat 链接
本文来自博客园,作者:vx_guanchaoguo0,转载请注明原文链接:https://www.cnblogs.com/guanchaoguo/p/17622241.html