gpt4 book ai didi

postgresql - PropelBundle 数据库 :create for postgres

转载 作者:行者123 更新时间:2023-11-29 12:22:31 25 4
gpt4 key购买 nike

我已经为 symfony2 安装了 propel bundle。我的数据库配置是:

propel:
dbal:
driver: pgsql
user: postgres
password: postgres
dsn: pgsql:host=localhost;port=5432;dbname=test_database
options: {}
attributes: {}

当我想从控制台(控制台驱动:数据库:创建)创建这个数据库时,我遇到了奇怪的错误:无法打开 PDO 连接 [wrapped: SQLSTATE[08006] [7] FATAL: database "pgsql"不存在。

我在我的本地主机上创建了 pgsql 数据库,一切都很好。数据库“test_database”已成功创建。有人能解释一下为什么我会收到之前的错误吗?在 mysql 上,我创建的数据库没有任何问题。

最佳答案

这个问题是 PropelBundle 中的一个错误,它已被以下提交修复(即使提交消息是关于 MySQL,它修复了其他 RDBMS):https://github.com/propelorm/PropelBundle/commit/b4475d27fb1eb846d10cc2d2e2bd164f037508e3

关于postgresql - PropelBundle 数据库 :create for postgres,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11134132/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com