IHP-如何将IHP的Postgres实例与Moodle连接?

发布于 2025-01-24 13:47:51 字数 312 浏览 5 评论 0原文

我正在尝试将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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

鹤仙姿 2025-01-31 13:47:51

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文