MATLAB: Am I unable to connect to PostgreSQL database when using the DATABASE command in Database Toolbox 3.5.1 (R2009a)

Database Toolboxpg

When I try to use the DATABASE command in Database Toolbox 3.5.1 (R2009a), to connect to my PostgreSQL database, I get the following error:
Fatal error: Missing or erroneous PG_HBA.CONF file, see server log for details.

Best Answer

There is a possiblilty that the above mentioned configuration file is corrupt. Verify that you are able to connect to the database using PSQL.
You may need to consult the PG SQL manual to verify that your pg_hba.conf file contains appropriate entries. Here is the documentation for PostgreSQL 8.1.17: