I'm trying to use azure PostgreSQL for CKAN (ckan.org) CKAN is using http://www.sqlalchemy.org/ for database connection.
A connection string looks like this:
engine = create_engine('postgresql://scott:[email protected]:5432/mydatabase')
syntax is:
postgresql://username:password@hostname:5432/databasename
When trying to connect to azure postgresql I get this error:
FATAL: Invalid Username specified. Please check the Username and retry connection. The Username should be in username@hostname format.
If I try to use the username format like this:
postgresql://scott@myhost:[email protected]:5432/mydatabase
Then I get:
invalid port number: "[email protected]:5432"
Has anyone solved this?