Forums

I want to use elephantsql's postgresql with my free account

When I try to connect using pyschopg2. In logs it says

    ,842 :  File "/usr/local/lib/python3.5/dist-packages/psycopg2/__init__.py", line 164, in connect
2017-04-25 04:21:53,842 :    conn = _connect(dsn, connection_factory=connection_factory, async=async)
2017-04-25 04:21:53,842 :psycopg2.OperationalError: could not connect to server: Connection refused
2017-04-25 04:21:53,842 :   Is the server running on host "tantor.db.elephantsql.com" (104.154.52.237) and accepting
2017-04-25 04:21:53,843 :   TCP/IP connections on port 5432?

Hi there, you'll need a paid account for that. https://help.pythonanywhere.com/pages/Postgres/

Even to use outside service?

Even to use outside service?

Yes.

Long live Heroku :) no offence

None taken. Happy coding, wherever you do it!

I will do on both :)

Any updates to the above policy? I got same question and same issue. Want to use external "elephantsql" PGDB with free account?

No updates- we currently only allow free users to access whitelisted endpoints over http/https.

what database can I use with my free account?

MySQL. You can configure it on the Databases tab.