Forums

Clever Cloud MySQL (ConnectionRefusedError: [Errno 111] Connection refused)

I'm a free user trying to connect to a CleverCloud MySQL db, since i can't connect my PythonAnywhere db to outside the site, but everytime i try to connect it returns me this error:

File "/usr/lib/python3.8/site-packages/mysql/connector/network.py", line 529, in open_connection self.sock.connect(sockaddr) ConnectionRefusedError: [Errno 111] Connection refused

I couldn't find any solution, since i'm new to programing and haven't had much experience yet, forgive me for any english errors, and help me

You cannot connect to an external MySQL instance from a free account. Free accounts can only connect out using http(s)