Title: Configuring WordPress with PostgreSQL
Last modified: November 23, 2023

---

# Configuring WordPress with PostgreSQL

 *  [cesarchameleon](https://wordpress.org/support/users/cesarchameleon/)
 * (@cesarchameleon)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/configuring-wordpress-with-postgresql/)
 * Hello everyone!
 * I have installed WordPress 6.4.1 with LAMP on CentOS 9 and everything works correctly,
   however, what I need is for WordPress to use PostgreSQL as Database Management
   System. I have tried the wppg plugin and pg4wp, but they did not give me any 
   results. When I type “localhost” in my browser, I get the error “Error establishing
   a connection to the database” and when I go to localhost/wp-admin I also get “
   This means that the username and password information in your wp-config.php file
   is incorrect or that the database server on localhost could not be contacted.
   This could mean that the database server on your host is down.”
 * No matter how much I look for configurations, restart apache, php or postgres,
   it does not recognize the database even if the data in the wp-config.php file
   is correct.I do not know if you can help me with this, please.
 * It is not superfluous to add that in my system I have the following:
 * centos-logos-httpd.noarch 90.4-1.el9 @appstream
   httpd.x86_64 2.4.57-5.el9 @appstreamhttpd-
   core.x86_64 2.4.57-5.el9 @appstreamhttpd-filesystem.noarch 2.4.57-5.el9 @appstreamhttpd-
   tools.x86_64 2.4.57-5.el9 @appstream
 * mysql-selinux.noarch 1.0.5-1.el9 @appstream
   php-mysqlnd.x86_64 8.0.30-1.el9 @appstream
 * mariadb.x86_64 3:10.5.16-2.el9 @appstream
   mariadb-backup.x86_64 3:10.5.16-2.el9
   @appstreammariadb-common.x86_64 3:10.5.16-2.el9 @appstreammariadb-connector-c.
   x86_64 3.2.6-1.el9 @appstreammariadb-connector-c-config.noarch 3.2.6-1.el9 @appstreammariadb-
   errmsg.x86_64 3:10.5.16-2.el9 @appstreammariadb-gssapi-server.x86_64 3:10.5.16-
   2.el9 @appstreammariadb-server.x86_64 3:10.5.16-2.el9 @appstreammariadb-server-
   utils.x86_64 3:10.5.16-2.el9 @appstream
 * php.x86_64 8.0.30-1.el9 @appstream
   php-cli.x86_64 8.0.30-1.el9 @appstreamphp-
   common.x86_64 8.0.30-1.el9 @appstreamphp-fpm.x86_64 8.0.30-1.el9 @appstreamphp-
   gd.x86_64 8.0.30-1.el9 @appstreamphp-mbstring.x86_64 8.0.30-1.el9 @appstreamphp-
   mysqlnd.x86_64 8.0.30-1.el9 @appstreamphp-opcache.x86_64 8.0.30-1.el9 @appstreamphp-
   pdo.x86_64 8.0.30-1.el9 @appstreamphp-pgsql.x86_64 8.0.30-1.el9 @appstreamphp-
   xml.x86_64 8.0.30-1.el9 @appstream
 * postgresql.x86_64 13.11-1.el9 @appstream
   postgresql-contrib.x86_64 13.11-1.el9
   @appstreampostgresql-private-libs.x86_64 13.11-1.el9 @appstreampostgresql-server.
   x86_64 13.11-1.el9 @appstream
 * Thanks in advance and best regards.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/configuring-wordpress-with-postgresql/#post-17223366)
 * Unless you can find a working plugin (which, as you’ve seen are not exactly common)
   you can’t run WordPress on PostgreSQL or any other database system. It’s MySQL
   And MariaDB only.
 * At this point WPPG is the only one that’s available on here, so if you can try
   and ask in it’s support forum, but seeing as how it was last updated over 6 years
   ago, I highly doubt that you’ll get any responses.
 * As a question, why does it _have_ to be PostgreSQL and why can’t you run MySQL/
   MariaDB?
 *  Thread Starter [cesarchameleon](https://wordpress.org/support/users/cesarchameleon/)
 * (@cesarchameleon)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/configuring-wordpress-with-postgresql/#post-17225653)
 * It has to be PostgreSQL because it is a task of my job. I have a few colleagues
   trying the same thing and no one has been able to do it.
 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/configuring-wordpress-with-postgresql/#post-17225714)
 * > I have a few colleagues trying the same thing and no one has been able to do
   > it.
 * Yep, that’s what I’d expect. WordPress is just not built to allow you to plug
   in different database systems like some other CMS’s are, so it’s something that
   is very much most likely not possible.
 * Good luck with it. If you can do it you’ll be one of the first in the world to
   actually make it work and I’m sure there’d be a lot of people that would like
   to find out how.
 *  Thread Starter [cesarchameleon](https://wordpress.org/support/users/cesarchameleon/)
 * (@cesarchameleon)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/configuring-wordpress-with-postgresql/#post-17225736)
 * Thank you very much!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Configuring WordPress with PostgreSQL’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 4 replies
 * 3 participants
 * Last reply from: [cesarchameleon](https://wordpress.org/support/users/cesarchameleon/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/configuring-wordpress-with-postgresql/#post-17225736)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
