{"id":2761,"date":"2017-12-09T12:07:37","date_gmt":"2017-12-09T12:07:37","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=2761"},"modified":"2020-01-09T07:04:15","modified_gmt":"2020-01-09T07:04:15","slug":"error-1227-42000-at-line-133-access-denied-you-need-the-super-priv","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/error-1227-42000-at-line-133-access-denied-you-need-the-super-priv\/","title":{"rendered":"Error 1227 (42000) at line 133: Access denied; you need the SUPER priv"},"content":{"rendered":"<p><strong>rajeshkumar created the topic: ERROR 1227 (42000) at line 133: Access denied; you need the SUPER priv<\/strong><\/p>\n<p>ERROR 1227 (42000) at line 133: Access denied; you need the SUPER privilege for this operation<br \/>\nSQL query:<br \/>\nDELIMITER ; ;<\/p>\n<p>\/*!50003 CREATE*\/\/*!50017 DEFINER=`s_snetus`@`localhost`*\/\/*!50003 TRIGGER `inserttree` AFTER INSERT ON `account_owner` FOR EACH ROW BEGIN DECLARE s INTEGER; DECLARE t INTEGER; DECLARE ParentPath varchar(30); SET s=NEW.REPORTS_TO; SET t = NEW.ID; if s is NULL then insert into hierarchy_path values (t,t); else select PATH INTO ParentPath from hierarchy_path where ID = s; insert into hierarchy_path values (t,CONCAT(ParentPath,&#8217;,&#8217;,t)); end if; END *\/ ; ;<br \/>\nMySQL said:<br \/>\n#1227 &#8211; Access denied; you need the SUPER privilege for this operation<br \/>\nRegards,<br \/>\nRajesh Kumar<br \/>\nTwitt me @ <a href=\"http:\/\/twitter.com\/RajeshKumarIn\" target=\"_blank\" rel=\"noopener\">twitter.com\/RajeshKumarIn<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>rajeshkumar created the topic: ERROR 1227 (42000) at line 133: Access denied; you need the SUPER priv ERROR 1227 (42000) at line 133: Access denied; you need the SUPER privilege for this operation SQL query: DELIMITER ; ; \/*!50003 CREATE*\/\/*!50017 DEFINER=`s_snetus`@`localhost`*\/\/*!50003 TRIGGER `inserttree` AFTER INSERT ON `account_owner` FOR EACH ROW BEGIN DECLARE s INTEGER; DECLARE&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[2],"tags":[258],"class_list":["post-2761","post","type-post","status-publish","format-standard","hentry","category-uncategorised","tag-error"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2761","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=2761"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2761\/revisions"}],"predecessor-version":[{"id":2762,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2761\/revisions\/2762"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=2761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=2761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=2761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}