Access denied; you need (at least one of) the SUPER privilege(s) for this operation

后端 未结 12 1042
余生分开走
余生分开走 2020-12-12 14:26

So I try to import sql file into rds (1G MEM, 1 CPU). The sql file is like 1.4G

mysql -h xxxx.rds.amazonaws.com -u user -ppass --max-allowed-packet=33554432 db <

12条回答
  •  情话喂你
    2020-12-12 14:39

    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

    Try importing new file(NEW-CLEANED-DUMP.sql).

提交回复
热议问题