It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Connecting Jira applications to MySQL : Error 1064

I installed MySQL , mysql-installer-community-5.7.27.0 

After installed, it showed MySQL 5.7 Command Line Client.

I tried to connect Jira to MySQL using the the below instructions but both failed. 

a) For MySQL 5.5, MySQL 5.6, and MySQL 5.7.0 to MySQL 5.7.5: 

GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,INDEX on <JIRADB>.* TO '<USERNAME>'@'<JIRA_SERVER_HOSTNAME>' IDENTIFIED BY '<PASSWORD>';
flush privileges;

b) For MySQL 5.7.6 and above, you must also include the REFERENCES permission:

GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,REFERENCES,ALTER,INDEX on <JIRADB>.* TO '<USERNAME>'@'<JIRA_SERVER_HOSTNAME>' IDENTIFIED BY '<PASSWORD>';
flush privileges;

 

Both errors are similar, Error 1064.

a) For MySQL 5.5, MySQL 5.6, and MySQL 5.7.0 to MySQL 5.7.5: Error 1064

mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,INDEX on <JIRADB>.* TO '<USERNAME>'@'<JIRA_SERVER_HOSTNAME>' IDENTIFIED BY '<PASSWORD>';flush priviledges;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<JIRADB>.* TO '<USERNAME>'@'<JIRA_SERVER_HOSTNAME>' IDENTIFIED BY '<PASSWORD>'' at line 1

b) For MySQL 5.7.6 and above, you must also include the REFERENCES permission: Error 1074

mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,REFERENCES,ALTER,INDEX on <JIRADB>.* TO '<USERNAME>'@'<JIRA_SERVER_HOSTNAME>' IDENTIFIED BY '<PASSWORD>';flush privileges;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<JIRADB>.* TO '<USERNAME>'@'<JIRA_SERVER_HOSTNAME>' IDENTIFIED BY '<PASSWORD>'' at line 1

The error started  '<JIRADB>.* TO '<USERNAME>'@'<JIRA_SERVER_HOSTNAME>' IDENTIFIED BY '<PASSWORD>''

What should I set ? Please help.

Thanking in advance.

Best regards.

 

 

 

2 answers

0 votes

With

<JIRADB> = jiradb

<USERNAME> = jirauser

<PASSWORD> = secretpw123

and <JIRA_SERVER_HOSTNAME> = myserver.mydomain.com

this would be:

GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,REFERENCES,ALTER,INDEX ON jiradb.* TO 'jirauser'@'myserver.mydomain.com' IDENTIFIED BY 'secretpw123';

FLUSH PRIVILEDGES;

This should work.

Best

JP

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Opsgenie

Authentication Options for Atlassian’s Opsgenie

What’s New as of May 21, 2020 Hi there! We recently made some changes to the way you can leverage Single-sign on and authorization within Opsgenie. Based on customer preference and feedback we intr...

61 views 1 1
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you