I'm trying to create a simple dag that dumps mysql to a bucket like this:
extract = MySqlToGoogleCloudStorageOperator(
task_id='extract_data',
mysql_conn_id='mysql_instance_connection',
google_cloud_storage_conn_id='google_cloud_storage_default',
sql='SELECT * FROM guestbook.entries',
bucket='gs://bucketname',
filename='guestbook.dump',
dag=dag)
I create a MySQL connection called mysql_instance_connection
with the ip address for the host, database name for the schema, login and password that I setup when creating the database online, and port as 3306.
When I run the dag I get the following error:
_mysql_exceptions.OperationalError: (2003, "Can't connect to MySQL server on '[IP_ADDRESS]' (110)")@-@{"task-id": "extract_data", "execution-date": "2018-08-21T16:35:59.161183", "workflow": "extractMysqlData"}
What do I need to do to give composer permission to access my MySQL database?