Connection code:
db = pymysql.connect("192.168.137.1:5901","root","","the-data-base")
cursor=db.cursor()
Result:
Traceback (most recent call last):
File "adc.py", line 17, in <module>
db = pymysql.connect("192.168.137.1:5901","root","","the-data-base")
File "/home/pi/.local/lib/python2.7/site-packages/pymysql/__init__.py", line 90, in Connect
return Connection(*args, **kwargs)
File "/home/pi/.local/lib/python2.7/site-packages/pymysql/connections.py", line 699, in __init__
self.connect()
File "/home/pi/.local/lib/python2.7/site-packages/pymysql/connections.py", line 967, in connect
raise exc
pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on '192.168.137.1:5901' ([Errno -2] Name or service not known)")