Hi,
as it looks very promising I wanted to give mantis a try and thus I tried to install it on my server running FreeBSD 11. However, I am not capable of establishing a connection between my mantis installation running on PHP 7.0 and my PostgreSQL 9.6 database.
The web interface shows me that the PHP module "pgsql" is installed. Nonetheless, the connection to the already existing, but empty database called "mantis" can not be established. Below you can see screenshots of the datbase configuration and the output of the install tool.
However, I am able to connect to the database using the psql tool, as illustrated in the screenshot below.
I am graceful for any help I receive.
Thanks a lot!
No database connection to PostgreSQL 9.6 on FreeBSD 11
Moderators: Developer, Contributor
No database connection to PostgreSQL 9.6 on FreeBSD 11
- Attachments
-
- psqlWorking.PNG (4.68 KiB) Viewed 3336 times
-
- dbConnectionSettings.PNG (61.43 KiB) Viewed 3336 times
-
- noDBConnection.PNG (52.3 KiB) Viewed 3336 times
Re: No database connection to PostgreSQL 9.6 on FreeBSD 11
Might be the same issue
https://www.mantisbt.org/issues/view.php?id=22091
You can try if changing line 421 in file admin/install.php
FromTo
fixes the issue.
https://www.mantisbt.org/issues/view.php?id=22091
You can try if changing line 421 in file admin/install.php
From
Code: Select all
$t_result = @$g_db->Connect( $f_hostname, $f_admin_username, $f_admin_password );
Code: Select all
$t_result = @$g_db->Connect( $f_hostname, $f_admin_username, $f_admin_password, $f_database_name );
Re: No database connection to PostgreSQL 9.6 on FreeBSD 11
Thanks a lot. This worked like a charm.