Using Console
gcloud sql instances describe [INSTANCE_NAME] --format="get(settings.mysqlFlags)"
Replace [INSTANCE_NAME] with the name of your instance.
The output should show the “local_infile” flag with a value of “0”.
Using CLI
[INSTANCE_NAME]
with the name of your Cloud SQL instance.ON
, then the local_infile flag is enabled and needs to be disabled.
[INSTANCE_NAME]
with the name of your Cloud SQL instance.0
.
Using Python
compute.instances().get()
method.paramiko
library.[mysqld]
section of the file:
local_infile | OFF
, then the MySQL Local Infile Flag is disabled.your-project-id
, your-instance-name
, path/to/key.json
, your-username
, and path/to/key.pem
with your actual values. Also, make sure to install the paramiko
and google-auth
libraries.