I am using below codes in Python to connect a remote MySQL server:
>>> import MySQLdb
>>> MySQLdb.connect(user = 'root', passwd = 'XXXXX', db = 'AAA', host = 'XX.XXX.XXX.104')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/anaconda3/lib/python3.7/site-packages/MySQLdb/__init__.py", line 84, in Connect
    return Connection(*args, **kwargs)
  File "/anaconda3/lib/python3.7/site-packages/MySQLdb/connections.py", line 164, in __init__
    super(Connection, self).__init__(*args, **kwargs2)
MySQLdb._exceptions.OperationalError: (2003, "Can't connect to MySQL server on 'XX.XXX.XXX.104' (60)")
>>> 
Any idea what went wrong and any remediation will be very helpful. Thanks,
