Title: [Plugin: PostgreSQL for WordPress (PG4WP)] database cannot be selected at install
Last modified: August 20, 2016

---

# [Plugin: PostgreSQL for WordPress (PG4WP)] database cannot be selected at install

 *  [kongo47](https://wordpress.org/support/users/kongo47/)
 * (@kongo47)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-postgresql-for-wordpress-pg4wp-database-cannot-be-selected-at-install/)
 * Hello,
 * I have encountered an error at the first step of installation using PG4WP.
    The
   message I had was that login info were correct but the database could not be 
   selected.
 * Config : PostGreSQL 9.1.2 ; PG4WP 1.3.0 ; PHP 5.1.3-RC4
 * I solved this by manually editing pg4wp/driver_pgsql.php
    line 80 : `return wpsql_select_db('
   template1');` I replaced template1 by my database name and the problem was solved.
 * PS : my blog is hosted on a subdomain of free.fr
 * [http://wordpress.org/extend/plugins/postgresql-for-wordpress/](http://wordpress.org/extend/plugins/postgresql-for-wordpress/)

Viewing 1 replies (of 1 total)

 *  [corgi](https://wordpress.org/support/users/corgi/)
 * (@corgi)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-postgresql-for-wordpress-pg4wp-database-cannot-be-selected-at-install/#post-2872464)
 * I’m seeing the same thing on WP 3.4.1 on Fedora 17 using PHP 5.4.5 and pgsql-
   lib 9.1.4. Changing line 80 of pg4wp/driver_pgsql.php to the name of our database
   solved the issue.
 * Edit: We’re also using PG4WP 1.3.0.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: PostgreSQL for WordPress (PG4WP)] database cannot be selected
at install’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/postgresql-for-wordpress.svg)
 * [PostgreSQL for WordPress (PG4WP)](https://wordpress.org/plugins/postgresql-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/postgresql-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/postgresql-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/postgresql-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/postgresql-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/postgresql-for-wordpress/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [corgi](https://wordpress.org/support/users/corgi/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-postgresql-for-wordpress-pg4wp-database-cannot-be-selected-at-install/#post-2872464)
 * Status: not resolved