IHP-如何将IHP的Postgres实例与Moodle连接?
我正在尝试将IHP的Postgres实例与Moodle联系起来。 ihp指南使用 :///应用程序?host = your_project_directory/build/db 在运行开发服务器以连接的开发服务器,但是Moodle还需要数据库主机,名称,用户,密码,端口,端口,表格前缀和UNIX套接字才能连接。
I'm trying to connect IHP's Postgres instance with Moodle. The IHP Guide uses postgresql:///app?host=YOUR_PROJECT_DIRECTORY/build/db
with the development server running to connect however Moodle further requires Database host, name, user, password, port, Tables prefix and Unix Socket to connect.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
IHP使用一个Postgres套接字文件进行连接,套接字文件位于
your_project_directory/build/build/db/.s.pgsql.5432
。数据库名称是
应用
,没有密码。例如,使用
PSQL
您可以将数据库连接到:psql -h $ pwd/build/build/db -d app
。我不确定为什么您要与Moodle连接IHP?
IHP DEV服务器在开发时启动并重新启动Postgres数据库,
./ start
将启动数据库,一旦您退出,数据库就会停止。但是,似乎Moodle需要一个数据库才能永远运行才能运行。IHP uses a Postgres socket file to connect, the socket file is located at
YOUR_PROJECT_DIRECTORY/build/db/.s.PGSQL.5432
.The database name is
app
, there is no password.For example, with
psql
you can connect to the database as:psql -h $PWD/build/db -d app
.I'm not sure why are you trying to connect IHP with Moodle?
IHP dev server starts and restarts the Postgres database as you are developing,
./start
would start the database, and as soon as you exit, the database is stopped. However, it seems Moodle requires a database running forever in order to function.