Forums

Problem SSH MySQL workbench

Hi guys, I am trying to connect with my database outside the pythonanywhere. I follow this :https://help.pythonanywhere.com/pages/AccessingMySQLFromOutsidePythonAnywhere/

I have a paid version. I am getting this error: The error says: Failed to Connect to MySQL at mazziitoozzb.mysql.pythonanywhere..3306 through SSH tunnel at mazziitoozzb@127.0.0.1:22 with user mazziitoozzb these are the data

Why i am getting this error? I literally did everything what it is said in the guide.

Are you able to ssh to pythonanywhere using the same credentials?

Already solve. The problem was the hostname How Am i going to imagine that i am in US system since i am living in EU.

  • If your account is on our global, US-based system at www.pythonanywhere.com, then the SSH hostname is ssh.pythonanywhere.com

  • If your account is on our EU-based system at eu.pythonanywhere.com, then the SSH hostname is ssh.eu.pythonanywhere.com

Thanks, glad to hear you figured that out!