mac 启动 postgresql

initdb --locale=C -E UTF-8 /usr/local/var/postgres

initdb: warning: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.

Success. You can now start the database server using:

    pg_ctl -D /usr/local/var/postgres -l logfile start

配置文件所在路径

/usr/local/var/postgresql\@14/postgresql.conf 

 

创建用户

/usr/local/opt/postgresql@14/bin/createuser postgres

 

启动或重启服务

/usr/local/opt/postgresql\@14/bin/postgres -D /usr/local/var/postgres

brew services restart postgresql

 

https://blog.csdn.net/qq_41037744/article/details/119533311

 

 
posted @   Orientation  阅读(333)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
点击右上角即可分享
微信分享提示