Forums

Does PythonAnywhere localhost MySQL connections?

Almost positive the answer is yes, but I thought I would ask. I'm having a difficult time connecting a PythonAnywhere database to Tableau via PuTTY,, and asked a question about it on stackoverflow.

A commenter asked if you all accept connections of the type username@localhost. Unless I'm mistaken the answer is yes, but I thought I would double check since it was suggested on that thread. He mentioned it might be a reason a connection cannot be established via PuTTY.

Yes, the @localhost should not be a problem. Though the person who raised that question was wrong in thinking that it would be an @localhost connection, because the SSH tunnel connects to a console server and not to the server that the MySQL database is running on. So it's exactly like any other connection that is made from within PythonAnywhere.