I am trying to access my mysql database outside on my local terminal. I have been successful in accessing my webapp, but not the remote mysql database through ssh -v -L 3333: <user_name>.mysql.pythonanywhere-services.com:3306 <user_name>.mysql.pythonanywhere-services.com
The script just times out when making the request ssh: connect to host <database_name>.mysql.pythonanywhere-services.com port 22: Operation timed out
Also tried
with sshtunnel.SSHTunnelForwarder(
('ssh.pythonanywhere.com'),
ssh_username='user_name', ssh_password='password',
remote_bind_address=('user_name.mysql.pythonanywhere-services.com', 3333)
) as tunnel:
connection = mysql.connector.connect(
user='user_name', password='f'password',
host='127.0.0.1', port=tunnel.local_bind_port,
database='ghidalgo$Newsletter',
)
Without much success. I have read thes a couple of times and still no idea what is going on can anyone help? - https://help.pythonanywhere.com/pages/SSHAccess/ https://help.pythonanywhere.com/pages/AccessingMySQLFromOutsidePythonAnywhere/