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

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

    Just a MacOS extra update for hjpotter92 answer.

    To make sed recognize the pattern in MacOS, you'll have to add a backslash before the = sign, like this:

    sed -i old 's/\DEFINER\=`[^`]*`@`[^`]*`//g' file.sql
    

提交回复
热议问题