![](/img/trans.png)
[英]How do I install rmagic 2.13.1 and imagemagick on OS X 10.8.2
[英]How do I reset the postgresql 9.2 default user (usually 'postgres') password on mac os x 10.8.2?
找到方向 :
sudo su postgres
修改/Library/PostgreSQL/9.2/data/pg_hba.conf
-local all all md5
+local all all trust
重启postgres
/Library/PostgreSQL/9.2/bin/pg_ctl restart -D /Library/PostgreSQL/9.2/data/
连接到postgres:
psql
在psql里面( \\q
退出):
ALTER USER postgres WITH ENCRYPTED PASSWORD 'password';
修改pg_hba.conf
+local all all md5
-local all all trust
重启postgres
/Library/PostgreSQL/9.2/bin/pg_ctl restart -D /Library/PostgreSQL/9.2/data/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.