-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authentication Error #2
Comments
Did you set the corresponding host, port and password? |
Yes, I believe so. I Have tried setting custom password and port, as for host, IM unsure, i am trying to set it up locally |
Did you manage to authenticate successfully? |
I recommend creating a user on PostgreSQL, setting the user's permissions for the created mqttpwn database, and adding connection permissions in the pg_hba.conf file. #su - postgres postgres = # CREATE DATABASE mqttpwn; postgres = # CREATE USER mqttpwn_user INHERIT CREATEDB CREATEROLE; postgres = # ALTER USER mqttpwn_user PASSWORD 'your_password'; Add the following line to the pg_hba.conf file: host all mqttpwn_user 127.0.0.1/32 password The lines in the config.py file will look like: DB_NAME = 'mqttpwn' |
The text was updated successfully, but these errors were encountered: