Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

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

Asked by Aaditya Srivastva Apr 8, 2021 625 views 1 answer
Share

About this question

So I try to import SQL files 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 < db>

It got stuck at error “#1227 - access denied; you need (at least one of) the super privilege(s) for this operation” as shown below:

ERROR 1227 (42000) at line 374: Access denied; you need (at least one of) the SUPER privilege(s) for this operation

The actual SQL content is:

/*!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 does not exist in rds, so I do:
GRANT ALL PRIVILEGES ON db.* TO another_user@'localhost'

Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.