SQLAlchemy no password supplied error

You probably just need to remove “localhost” from your connection string:

'postgresql:///db_name'

That tells psycopg2 to use Unix-domain sockets. Your default configuration will use “ident” so you’ll be connecting as the user that runs the script. In the default configuration, “md5” only applies to TCP connections.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)