如何使用 postgresql 安装 wordpress
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/30347508/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to install wordpress with postgresql
提问by Dexter
I m newbie in wordpress. i just install wordpress 4.2.2. I want to install wordpress on heroku with postgresql. Before that i try to install wordpress with postgresql on my localhost. I follow the PG4WP installationsteps but still my wordpress install with mysql database its not giving me option to install with postgresql.
我是 wordpress 的新手。我只安装了 wordpress 4.2.2。我想用 postgresql 在 heroku 上安装 wordpress。在此之前,我尝试在我的本地主机上安装带有 postgresql 的 wordpress。我按照PG4WP 安装步骤进行操作,但仍然使用 mysql 数据库安装 wordpress,它没有给我使用 postgresql 安装的选项。
I am using Wordpress 4.2.2version and for database i am using postgresql 9.1
我正在使用Wordpress 4.2.2版本和我正在使用的数据库postgresql 9.1
回答by entwicklerseite
It might be a little late, but the current answers are and were wrong. It is possible to use PostgreSQL, even though it is not officially supported and it is not recommend for various reasons: The official documentation says, that it would be expensive to realize since every new wordpress version would have to be tested against the other database back-ends and since many plugins also rely on mysql-specific calls it will probably never be possible to make 'everything' multi database compatible. Source: https://codex.wordpress.org/Using_Alternative_Databases
可能有点晚了,但目前的答案是错误的。可以使用 PostgreSQL,即使它没有得到官方支持,并且由于各种原因不推荐使用:官方文档说,实现起来会很昂贵,因为每个新的 wordpress 版本都必须针对其他数据库进行测试-ends 并且由于许多插件也依赖于特定于 mysql 的调用,因此可能永远不可能使“一切”多数据库兼容。来源:https: //codex.wordpress.org/Using_Alternative_Databases
If you still want to use wordpress with PostgreSQL the better place to start would be the official PostgreSQL documentation. It says, that one needs a wordpress plugin called 'PG4WP' to make it work. Source: https://wiki.postgresql.org/wiki/Wordpress
如果您仍然想在 PostgreSQL 中使用 wordpress,最好的起点是官方 PostgreSQL 文档。它说,需要一个名为“PG4WP”的 wordpress 插件才能使其工作。来源:https: //wiki.postgresql.org/wiki/Wordpress

