我想使用mamp和postgresql,你知道这是怎么回事吗?
我有一个postgresql数据库,我已经使用了mamp和mysql,但我找不到使用mamp的postgresql的文档
抱歉我的英文不好;)
答案 0 :(得分:2)
“mamp”似乎是适用于Mac OS X的MySQL + Apache + PHP的固定安装程序。
PostgreSQL有相关内容;见the download page。但除此之外,所有组件都可以单独安装。许多人使用像Homebrew这样的东西。
答案 1 :(得分:1)
看看这个答案。
https://www.drupal.org/node/1438206
使用MAMP的Max OS X上的Postgres
最后更新时间:2012年2月13日。创建于2012年2月13日。由diricia编辑。登录编辑此页。 目前我正在运行MAMP Pro,但设置也应该与MAMP免费版本一起使用。 质量要求; 从MAMP下载并安装MAMP
1. Download and install postgres 8.4 or higher from Enterprise DB
2. Add the bin directory of postgres, /Library/PostgreSQL/8.4/bin to the PATH in your .bashrc file in your home directory. Remember to run ./.bashrc to update the path.
3. Sudo to your root user and execute the following commands. '>' is the prompt on your terminal and should be excluded. Text in () is an explanation and should not excluded.
a. > su postgres (log in as the postgres user)
b. > createuser --no-createdb --no-password (choose as a super user)
c. > createuser --no-createdb ----pwprompt devel (enter a password 'drupal', and choose as a super user, this is if your site is using the standard devel user with password drupal)
> exit
4. Edit table at the bottom of the /Library/PostgreSQL/8.4/data/pg_hba.conf file to so that the options for local look like this. This states that the devel (or your user) must have a md5 password and all other users can log in with no password. (This is only recommended for your local host and is not secure on a server)
# "local" is for Unix domain socket connections only
local all devel md5
local all all trust
5. In your applications folder stop and start the postgres server using the apps under the Postgres folder
6. Log out of your root user
7. Create your postgres database as specified in INSTALL.pgsql.txt:
a. > createdb --encoding=UTF8 --owner=username databasename (The owner is devel or the user you created)
答案 2 :(得分:1)
我安装了Bitnami的MAMP堆栈,然后是Bitnami Postgresql模块:
Bitnami MAMP Stack:https://bitnami.com/stack/mamp/installer
Bitnami MAMP Postgresql模块:https://bitnami.com/stack/mamp/modules