Google cloud sql instance super privilege error

前端 未结 9 1545
挽巷
挽巷 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 06:52

    i faced same issue you can try giving 'super permission' to user but isn't available in GCP cloud SQL.

    The statement

    DEFINER=username@`%

    is an issue in your backup dump.

    The solution that you can work around is to remove all the entry from sql dump file and import data from GCP console.

    cat DUMP_FILE_NAME.sql | sed -e 's/DEFINER=@%//g' > NEW-CLEANED-DUMP.sql

    After removing the entry from dump and completing successfully you can try reimporting.

提交回复
热议问题