-
Bug
-
Resolution: Fixed
-
Low (View bug fix roadmap)
-
None
-
7.3.0
-
7.03
-
4
-
Severity 3 - Minor
-
0
-
The Atlassian article "Connecting JIRA applications to MySQL" needs to be amended so that it instructs the administrator to grant the 'REFERENCES' privilege to the JIRA user.
The current instructions are as follows:
"GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,INDEX on <JIRADB>.* TO '<USERNAME>'@'<JIRA_SERVER_HOSTNAME>' IDENTIFIED BY '<PASSWORD>';
With the release of JIRA 7.3, MySQL 5.7 is now a supported platform, for which our current instructions do not work.
Omitting the REFERENCES privilege can create problems for plugins that set up foreign-key relationships between entities. It causes exceptions to be thrown, the below when trying to create a new project in a fresh installation of JIRA 7.3.0 with MySQL 5.7:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: REFERENCES command denied to user 'JIRAUSER'@'HOST' for table 'AO_5FB9D7_AOHIP_CHAT_LINK'
https://confluence.atlassian.com/adminjiraserver0813/connecting-jira-applications-to-mysql-5-7-1027137456.html does mention
"MySQL 5.7.6 and later (must also include the REFERENCES permission):"