Linking my current database to python using mysql-connector


#1

Hello, I am trying to connect the MySql database provided by webhostapp to python. I am currently using free hosting on webhostapp. I have installed mysql-connector on python. Could you please tell me what do i need to enter as the hostname when i use the function

mysql.connector.connect(user=’’, password=’’,
host=’’,
database=’’)

I got what to enter in the user, password and database fields. I just don’t know what to enter in the hostname field. Thanks in advance!


#2

@rajas Remote mysql and python is not allowed on 000webhost.