Forums

External DB connection - MongoLab

Hi guys, I've been trying to use MongoLab for the database host. It seems that I cannot connect due to the ERR 111. Do you have some kind of proxies that block outgoing connections? Thanks

Free accounts have a restricted list of remote hosts, yes - here's the list of allowed sites. If you want to suggest a site to add, I'm sure the PAW chaps would at least consider it.

One thing to note is that this is only applies to HTTP and HTTPS connections as it goes through a proxy, so unless the connection to MonoDB is HTTP-based then I don't think it would work in any case.

So will PyMongo work? I tried to import it and put it to use but have been getting errors I'm trying to address.

Just a note for anyone who finds this thread via Google -- the conversation continues over here.

Hi, i have a free account, that's because i'm new on python but i have some projects from school.. One of that projects is to develop an application /python-django) that save files on a remote mysql server. The problem is: my remote database is on http://www.hospedando.com.mx/ (i'm reusing it from other project), and i just can't connect to db because it's not on the white list.. Can you help me please?? :(

Hi again! I can't wait so i pay a Hacker account, but now i have this problem:

mysql.connector.errors.InterfaceError: 2003: Can't connect to MySQL server on '209.59.xxx.xxx:3306' (110 Connection timed out)

My settings.py file:

DATABASES = { 'default': { 'ENGINE': 'mysql.connector.django', 'NAME': 'sigmevet_fileProcessing', 'USER': 'sigmevet_xxxxxxxxxx', 'PASSWORD': 'xxxxxxxxxx', 'HOST': '209.59.xxx.xxx', 'PORT': '3306', }

And i follow this steps in my server db: http://www.hospedando.com.mx/paneldeclientes/administracion/knowledgebase/167/Acceso-Remoto-a-Bases-de-Datos.html

I try on my computer console: telnet 209.59.xxx.xxx 3306 and the answer is like it should be: Connected to www.sigmevet.com

So I don't know what's happening now :(

Please, help!!

Did you try the telnet from PythonAnywhere or from your own machine?

Hi, from my own machine y try with telnet and the answere was Connected to ... But from bash console of PythonAnywhere the anwere is the same error: connection timed out.. Maybe you can help me with a public ip that i can put into my server to enable the acces like describe on point 3 of: http://www.hospedando.com.mx/paneldeclientes/administracion/knowledgebase/167/Acceso-Remoto-a-Bases-de-Datos.html

  1. Ingresar a cPanel en http://midominioregistrado.com:2082 (donde debes SUSTITUIR midominioregistrado.com por tu dominio REAL)
  2. En la Sección Bases de Datos (o Databases) ubica el ícono MYSQL Remoto(a)
  3. Una vez ahí debes de agregar la IP Pública de tu conexión o del servidor usado.
  4. Adicionalmente puedes colocar el símbolo de porcentaje % para permitir a cualquier IP acceder remotamente, lo cual puede ser riesgoso.