I want to access the sql server using the amazon web services. How do I do it? I have tried this using mysql.connecter in python.
import mysql.connecter
conn=mysql.connector.connect(host="hostname",database="datbasename",user="root",password="a")
if conn.is_connected():
print('connected to mysql database')