<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>KB-1056 "INSERT command denied to user 'appian'@'127.0.0.1' for table 'XXXX'" error returned when executing a SQL trigger</title><link>https://community.appian.com/support/w/kb/280/kb-1056-insert-command-denied-to-user-appian-127-0-0-1-for-table-xxxx-error-returned-when-executing-a-sql-trigger</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1056 "INSERT command denied to user 'appian'@'127.0.0.1' for table 'XXXX'" error returned when executing a SQL trigger</title><link>https://community.appian.com/support/w/kb/280/kb-1056-insert-command-denied-to-user-appian-127-0-0-1-for-table-xxxx-error-returned-when-executing-a-sql-trigger</link><pubDate>Tue, 14 Feb 2017 14:14:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6104ace6-1d2a-4fc8-8885-1c09b8186623</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/280/kb-1056-insert-command-denied-to-user-appian-127-0-0-1-for-table-xxxx-error-returned-when-executing-a-sql-trigger#comments</comments><description>Current Revision posted to Appian Knowledge Base by Nick Vigilante on 2/14/2017 2:14:54 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;This applies to the PHPMyAdmin interface on Appian Cloud sites. If running a SQL trigger which fails to execute, an error similar to the following appears in the application server log (formatted as &lt;strong&gt;jboss1-stdOut.log.&amp;lt;date&amp;gt;&lt;/strong&gt; on Cloud sites):&lt;/p&gt;
&lt;pre&gt;org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update: java.sql.BatchUpdateException: INSERT command denied to user &amp;#39;appian&amp;#39;@&amp;#39;127.0.0.1&amp;#39; for table &amp;#39;XXXX&amp;#39;
&lt;/pre&gt;
&lt;p&gt;The exact contents of the error can vary depending on the SQL statement.&lt;/p&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The definer being used for the SQL statement has insufficient permissions over the table being queried or updated.&lt;/p&gt;
&lt;p&gt;In Appian Cloud sites there is a default definer used whenever a query is run against tables in PHPMyAdmin. In this case, the wrong definer is likely being specified, leading to the permissions error. Any definers that have been specified explicitly should be removed in order to prevent conflicts with the default Appian definer.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;Remove any definers that have been specified in the SQL statement. If there are no definers in the SQL statement itself, check the edit page for the trigger. There could be a definer listed at the bottom of the page, which should be removed:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1487099609280v1.png"&gt;&lt;img src="/resized-image/__size/1200x80000/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1487099609280v1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian Cloud.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: February 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, mysql, Cloud&lt;/div&gt;
</description></item><item><title>KB-1056 "INSERT command denied to user 'appian'@'127.0.0.1' for table 'XXXX'" error returned when executing a SQL trigger</title><link>https://community.appian.com/support/w/kb/280/kb-1056-insert-command-denied-to-user-appian-127-0-0-1-for-table-xxxx-error-returned-when-executing-a-sql-trigger/revision/1</link><pubDate>Tue, 14 Feb 2017 19:14:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6104ace6-1d2a-4fc8-8885-1c09b8186623</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/280/kb-1056-insert-command-denied-to-user-appian-127-0-0-1-for-table-xxxx-error-returned-when-executing-a-sql-trigger#comments</comments><description>Revision 1 posted to Appian Knowledge Base by Nick Vigilante on 2/14/2017 7:14:26 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;This applies to the PHPMyAdmin interface on Appian Cloud sites. If running a SQL trigger which fails to execute, an error similar to the following appears in the application server log (formatted as &lt;strong&gt;jboss1-stdOut.log.&amp;lt;date&amp;gt;&lt;/strong&gt; on Cloud sites):&lt;/p&gt;
&lt;pre&gt;org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update: java.sql.BatchUpdateException: INSERT command denied to user &amp;#39;appian&amp;#39;@&amp;#39;127.0.0.1&amp;#39; for table &amp;#39;XXXX&amp;#39;
&lt;/pre&gt;
&lt;p&gt;The exact contents of the error can vary depending on the SQL statement.&lt;/p&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The definer being used for the SQL statement has insufficient permissions over the table being queried or updated.&lt;/p&gt;
&lt;p&gt;In Appian Cloud sites there is a default definer used whenever a query is run against tables in PHPMyAdmin. In this case, the wrong definer is likely being specified, leading to the permissions error. Any definers that have been specified explicitly should be removed in order to prevent conflicts with the default Appian definer.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;Remove any definers that have been specified in the SQL statement. If there are no definers in the SQL statement itself, check the edit page for the trigger. There could be a definer listed at the bottom of the page, which should be removed: &lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1487099609280v1.png"&gt;&lt;img src="/resized-image/__size/1200x80000/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1487099609280v1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian Cloud.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: February 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, mysql, Cloud&lt;/div&gt;
</description></item></channel></rss>