【问题标题】:How to install wordpress with postgresql如何使用 postgresql 安装 wordpress
【发布时间】:2015-08-01 13:44:59
【问题描述】:

我是 wordpress 的新手。我只是安装 wordpress 4.2.2。我想用 postgresql 在 heroku 上安装 wordpress。在此之前,我尝试在我的本地主机上安装带有 postgresql 的 wordpress。我按照PG4WP installation 的步骤操作,但我的 wordpress 仍然使用 mysql 数据库安装,它没有让我选择使用 postgresql 安装。

我使用的是Wordpress 4.2.2 版本,对于数据库我使用的是postgresql 9.1

【问题讨论】:

    标签: wordpress postgresql heroku


    【解决方案1】:

    可能有点晚了,但当前的答案是错误的。可以使用 PostgreSQL,尽管它不受官方支持,并且由于各种原因不推荐使用:官方文档说,实现起来会很昂贵,因为每个新的 wordpress 版本都必须针对其他数据库进行测试-ends 并且由于许多插件还依赖于特定于 mysql 的调用,因此可能永远不可能使“一切”多数据库兼容。来源:https://codex.wordpress.org/Using_Alternative_Databases

    如果您仍想在 PostgreSQL 中使用 wordpress,最好从 PostgreSQL 官方文档开始。它说,需要一个名为“PG4WP”的 wordpress 插件才能使其工作。 来源:https://wiki.postgresql.org/wiki/Wordpress

    【讨论】:

    • 目前在 postgresql wiki 中没有任何内容,除了两个已经在问题中的链接。在这个答案的第一部分。 PG2WP 插件似乎已过时。
    • 可以在wordpress.org/plugins/wppg找到基于所链接的一个 OP 的更新插件
    【解决方案2】:

    教程: https://medium.com/@shoaibhassan_/install-wordpress-with-postgresql-using-apache-in-5-min-a26078d496fb

    教程中使用的repo: https://github.com/kevinoid/postgresql-for-wordpress

    === PostgreSQL for WordPress (PG4WP) ===
    Contributors: Hawk__ (http://www.hawkix.net/)
    Requires at least: 2.9.2
    Tested up to: 4.5.3
    Stable tag: 1.3.1
    License: GPLv2 or later
    
    PostgreSQL for WordPress is a special 'plugin' enabling WordPress to be used with a PostgreSQL database.
    

    【讨论】:

      猜你喜欢
      • 2014-08-13
      • 2020-02-28
      • 2019-10-31
      • 2011-04-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多