I was mistaken, I changed the Django hostname, but I am using the MySqlDb connector with python for this script. I am not sure how to change the hostname here. Here is the error message.
Traceback (most recent call last):
File "/home/davidykan/newproject/insert/twitch.py", line 8, in <module>
conn = MySQLdb.connect("mysql.server", "davidykan", "*", "", charset='utf8')
File "/home/davidykan/.local/lib/python3.4/site-packages/MySQLdb/init.py",
line 81, in Connect
return Connection(args, kwargs)
File "/home/davidykan/.local/lib/python3.4/site-packages/MySQLdb/connections.p
y", line 204, in init
super(Connection, self).init(*args, kwargs2)
_mysql_exceptions.OperationalError: (2003, "Can't connect to MySQL server on 'my
sql.server' (111)")