Forums

ssh access and web2py

I have the following DAL object in my app that is hosted on PA:

db = DAL('mysql://name:pw@username.mysql.pythonanywhere-services.com/username$dbName',pool_size=5,  fake_migrate=True).

Works like a charm in the PA application, but when i try to use the same DAL object from another w2p instance hosted on digital ocean (long story, but I need some command line access), it hangs or fails with an SSL error, which claims that its PA's fault. Any thoughts?

We don't expose user databases to the internet. You can use an SSH tunnel to access it securely from outside if you want to: http://help.pythonanywhere.com/pages/SSHTunnelling/