gpt4 book ai didi

php - wordpress postgres 数据库连接问题

转载 作者:行者123 更新时间:2023-11-29 13:57:14 28 4
gpt4 key购买 nike

我正在尝试为 wordpress 使用 pg4wp postgresql 插件。我正确地提供了主机、用户(具有 super 用户角色)和密码。但我仍然收到以下错误。

Warning: mysqli_real_connect(): (HY000/1045): Access denied for user 'wordpressuser'@'localhost' (using password: YES) in /var/www/html/main-landing/blog/wp-content/pg4wp/core.php(32) : eval()'d code on line 1386

Warning: error_log(/var/www/html/main-landing/blog//wp-content/pg4wp/logs/pg4wp_unmodified.log): failed to open stream: No such file or directory in /var/www/html/main-landing/blog/wp-content/pg4wp/driver_pgsql.php on line 482

Notice: Trying to get property of non-object in /var/www/html/main-landing/blog/wp-content/pg4wp/driver_pgsql.php on line 274

Notice: Trying to get property of non-object in /var/www/html/main-landing/blog/wp-content/pg4wp/driver_pgsql.php on line 288

Warning: error_log(/var/www/html/main-landing/blog//wp-content/pg4wp/logs/pg4wp_unmodified.log): failed to open stream: No such file or directory in /var/www/html/main-landing/blog/wp-content/pg4wp/driver_pgsql.php on line 482

Warning: pg_query(): Query failed: ERROR: missing FROM-clause entry for table "session" LINE 1: SELECT @@SESSION.sql_mode ^ in /var/www/html/main-landing/blog/wp-content/pg4wp/driver_pgsql.php on line 136

我的 pg_log 抛出以下错误:

ERROR: relation "wp_options" does not exist at character 26 STATEMENT: SELECT option_value FROM wp_options WHERE option_name = 'siteurl' LIMIT 1

想不通

最佳答案

坦率地说,甚至不要试图在 WordPress 中不使用 MySQL。这个插件只是许多试图使 WP 与 Postgres 兼容的插件之一。由于缺乏维护和插件兼容性,它们都失败了。

正如您可能在 plugin's page 上注意到的那样, 这个也不异常(exception):尽管 WP 的核心在最近的版本中如何发展,它已经几个月没有更新了,并且它提到了关于插件的常见警告。

关于php - wordpress postgres 数据库连接问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29530660/

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