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

后端 未结 12 1049
余生分开走
余生分开走 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:58

    Another useful trick is to invoke mysqldump with the option --set-gtid-purged=OFF which does not write the following lines to the output file:

    SET @@SESSION.SQL_LOG_BIN= 0;
    SET @@GLOBAL.GTID_PURGED=/*!80000 '+'*/ '';
    SET @@SESSION.SQL_LOG_BIN = @MYSQLDUMP_TEMP_LOG_BIN;
    

    not sure about the DEFINER one.

提交回复
热议问题