How to import MySQL data to cloud SQL from deployment.yaml?

24
February 11, 2019, at 9:20 PM

I'm connecting my application with cloud SQL through Kubernetes. I want to know how to import data to my DB when I create the cloud SQL proxy pod.

My MySQL deployment:

- name: cloudsql-proxy
  image: gcr.io/cloudsql-docker/gce-proxy:1.11
  command: ["/cloud_sql_proxy",
            "-instances=<INSTANCE_CONNECTION_NAME>=tcp:3306",
            "-credential_file=/secrets/cloudsql/credentials.json"]
  volumeMounts:
    - name: cloudsql-instance-credentials
      mountPath: /secrets/cloudsql
      readOnly: true
READ ALSO
How do I create an effective mysql database design, where it stores different values for multiple users?

How do I create an effective mysql database design, where it stores different values for multiple users?

I am trying to make a website, and I need to make a system where it shows random questions, and if the user answers correctly, it exludes the question from the random printI need a table where one of the columns is the question number, and one is a boolean,...

21
Conditional Column in Mysql

Conditional Column in Mysql

I have an orders table which looks like this:

24
What is the difference between values 1 and 4096 of output_buffering in php.ini

What is the difference between values 1 and 4096 of output_buffering in php.ini

What does exactly the value of output_buffering ini variable mean in phpini? On our older server, it was set to 1

46
How to replace javascript variables with greasemonkey? [on hold]

How to replace javascript variables with greasemonkey? [on hold]

I want to change a variable in javascript with greasemonkey

23