Please help
Invalid table-valued function EXTERNAL_QUERY Failed to connect to MySQL database. Error: MysqlErrorCode(2013): Lost connection to MySQL server during query at [1:15]
Region: Instance and Connection = asia-southeast1
Already set instance to Public IP
Already set BQ admin, Connection Admin
Already enabled API
Solved! Go to Solution.
To resolve this issue, you can follow these steps:
roles/cloudsql.client
) role. The service account follows the format service-PROJECT_NUMBER@gcp-sa-bigqueryconnection.iam.gserviceaccount.com
.You will need to set the default_authentication_plugin database flag on your CloudSQL to caching_
Please refer to https://cloud.google.com/sql/docs/mysql/flags#list-flags-mysql