Google cloud sql instance super privilege error

前端 未结 9 1428
挽巷
挽巷 2021-02-19 06:30

I am very new in Google app engine please help me to solve my problem

I have created one instance in Google cloud sql when I import SQL file then it shows me error like

相关标签:
9条回答
  • 2021-02-19 07:07

    I also faced the same issue. But the problem was in dumped sql database. When exporting the database use these flags

    --hex-blob --skip-triggers --set-gtid-purged=OFF
    

    Here is the complete documentation of how to do it (https://cloud.google.com/sql/docs/mysql/import-export/importing). Once the data is exported, it can be imported using command line, gcloud shell or there is an option of import in gcloud sql as well.

    I used the import feature of gcloud sql console and it worked for me.

    0 讨论(0)
  • 2021-02-19 07:09

    In case somebody is searching for this in 2018 (at least august) the solution is:

    1. Create a database. You can do this from UI, just go to Database menu and click "Create a database".
    2. After you clicked "import" and selected your sql_dump (previously saved in a bucket), press "Show advanced options" and select your Db (not that advanced, are they?!). Otherwise, the default is the system mysql which, of course can not support import.

    Happy importing.

    0 讨论(0)
  • 2021-02-19 07:12

    I solved this by creating a new database and in the SQL instance. (Default database is sys for mysql).

    Steps(Non-cli version):
    1) In GCP > SQL > Databases , create a new database e.g newdb
    2) In your sql script, add: Use newdb;

    Hope that helps someone

    0 讨论(0)
提交回复
热议问题