Forums

mysql connection setup dbeaver pythonanywhere step by step

hi guys.

please help me setting up connection via dbeaver to my db ( i have paid account)

i have almost the same problem as in https://www.pythonanywhere.com/forums/topic/12855/

i have tried both ports 22 and 3306 , in both cases i am getting error "Cannot establish tunnel to ssh.pythonanywhere.com:3306 connect timed out"

i tried to follow instructions here.

https://www.pythonanywhere.com/forums/topic/12855/

please share step by step or some video guide .

link to my ssh connection https://imgur.com/a/Z5z7967

thanks P.s i am able to connect in Python and it works fine

mydb = mysql.connector.connect(
host='shahencho.mysql.pythonanywhere-services.com',
user='shahencho',
password=*********',
database='shahencho$mydatabase'

And how do your "Main" settings look like?

https://imgur.com/a/Z4zKefP

@ pafk can you please help with this ?

any anyway according to https://help.pythonanywhere.com/pages/AccessingMySQLFromOutsidePythonAnywhere/ , i should be able to pass ssh tab "succesfully" before proceding to main tab , correct?

so first ssh connection needs to be solved , no ?

Yes, ssh has to work first to do anything else with MySQL from outside PythonAnywhere. Are you able to ssh to you PythonAnywhere account? Just simple connection form the terminal.

it's almost the same with simple connection from putty , any help you may suggest ? what info you want me to provie ? thanks.

timeout

https://freeimage.host/i/HVIGDZb https://freeimage.host/i/HVIMFAF

Connect to port 22 on ssh.pythonanywhere.com not 3306