Donc, j'essaie d'importer des fichier sql dans rds (1G MEM, 1 CPU). Le fichier sql est comme 1.4 G
mysql -h xxxx.rds.amazonaws.com -u utilisateur -ppass --max-admis-paquet=33554432 db < db.sql
Il est resté coincé à:
ERROR 1227 (42000) at line 374: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
Le sql réel contenu est:
/*!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
n'est pas existé dans rds, donc je fais:
GRANT ALL PRIVILEGES ON db.* TO another_user@'localhost';
Toujours pas de chance.