夜鸣猪 发表于 2013-1-30 01:24:00

Mac OSX 和 posgresql

mac下用brew装posgresql
然后,有个说明很不错,只是记录过程

brew install postgresinitdb /usr/local/var/postgrescp /usr/local/Cellar/postgresql/9.1.4/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plistcreateuser(postgres)sudo -u postgres psqlALTER USER postgres with encrypted password 'your_password';vim /usr/local/var/postgres/postgresql.conflisten_addresses = 'localhost' => listen_addresses = '*'psql -U postgres -h localhost


<div class="quote_title">引用
页: [1]
查看完整版本: Mac OSX 和 posgresql