I have a hacker account and currently trying to connect from my local machine to mysql table in my python anywhere account. I have a python script that needs to access the remote database and I use the following code:
conn = mysql.connector.connect(host='userName.mysql.pythonanywhere-services.com',database='userName$database1',user='userName',password='xxxxx',port='3306')
Keeps giving me the same error:
errno=2003, values=(self.get_address(), _strioerror(err))) mysql.connector.errors.InterfaceError: 2003: Can't connect to MySQL server on 'userName.mysql.pythonanywhere-services.com:3306' (60 Operation timed out)
I have been reading the forum for hours and although I saw answers to similar errors I just can't fix it mine. Any ideas out there? Thanks for your time.
[edited by admin for formatting]