所以我try 将sql文件导入rds(1G内存,1个CPU).sql文件类似于1.4G
mysql-hxxxx.rds.亚马逊.com-u user-ppass——允许的最 Big Data 包数=33554432 db<;db.sql
它被困在:
ERROR 1227 (42000) at line 374: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
实际的sql内容是:
/*!50003 CREATE*/ /*!50017 DEFINER=`another_user`@`1.2.3.4`*/ /*!50003 TRIGGER `change_log_BINS` BEFORE INSERT ON `change_log` FOR EACH ROW
IF (NEW.created_at IS NULL OR NEW.created_at = '00-00-00 00:00:00' OR NEW.created_at = '') THEN
SET NEW.created_at = NOW();
END IF */;;
another_user
在rds中不存在,所以我:
GRANT ALL PRIVILEGES ON db.* TO another_user@'localhost';
还是不走运.