simov / express-admin

MySQL, MariaDB, PostgreSQL, SQLite admin for Node.js
MIT License
1.18k stars 223 forks source link

Password authentication fails for Postgres (11) connections #158

Open dspinellis opened 3 years ago

dspinellis commented 3 years ago
liolio@express-admin-examples DETAIL:  Password does not match for user "liolio".
        Connection matched pg_hba.conf line 94: "host    all             all             127.0.0.1/32            md5"

Could the error stem from an outdated node-postgres library? Currently provided node-posgres connection examples don't seem to work with the library version distributed with express-admin. For example, the first code sample fails with TypeError: Pool is not a constructor.

simov commented 3 years ago

Yes, last time this module was tested was around 2015 so just by looking at the pg versions on NPM something like https://www.npmjs.com/package/pg/v/4.3.0 should work.

The documentation definitely needs an update.

dspinellis commented 3 years ago

Thank you for the swift reply! Sadly, running npm install pg@4.3.0 does not fix the problem.

simov commented 1 year ago

Hi again, recently I tested the module again, you can check out my package.json version for reference. Then I tested with these two versions of PostgreSQL.

dspinellis commented 1 year ago

Thank you! Note that I'm no longer trying to use this package, so I'll not be able to provide feedback.