Remotely connect to MySQL with Python mysql.connector
问题 The following code (ran from a different machine than the mysql server, within the same LAN), to locally connect to MySQL database using Python3 and mysql.connector works: import mysql.connector cnx = mysql.connector.connect(host='192.168.0.24', database='import_test',user='user_builder', password='password***', port=3309) However, the following code, to remotely connect to the same database, does NOT work : import mysql.connector cnx = mysql.connector.connect(host='http://imaginarywebsite