Access denied errors in mysql install for jira on debian linux

Followed these instructions including the troubleshooting at bottom of page.

I tested the connection on the jira db setup form - was OK. Finished the setup and got a stackdump and this error:

com.opensymphony.module.propertyset.PropertyImplementationException: SQL Exception while executing the following:SELECT ID, ENTITY_NAME, ENTITY_ID, PROPERTY_KEY, propertytype FROM propertyentry WHERE ENTITY_NAME=? AND ENTITY_ID=? (SELECT command denied to user 'jirauser'@'srdevwebd2.srphc.local' for table 'propertyentry')

Now when I browse jira at http://srdevwebd2.srphc.local:8080/ I get that error and the url shows:


On the server I cannot run this command:

pauld@srdevwebd2:~$ mysql -p -u jiradbuser -h jiradb
Enter password:
ERROR 1045 (28000): Access denied for user 'jiradbuser'@'localhost' (using password: YES)

Although this works:

pauld@srdevwebd2:~$ mysql \--user=jirauser \--password=mypassword \--database=jiradb
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 152
Server version: 5.1.66-0+squeeze1 (Debian)

Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

4 answers

1 accepted

This widget could not be displayed.

You are trying three different connection settings, but only one of them is working.

Jira is trying to use 'jirauser'@'srdevwebd2.srphc.local'

Your first manual attempt is using 'jiradbuser'@'localhost'

Your second manual attempt is using (effectively) 'jirauser'@'localhost'

It looks to me like you've only granted access to the third one, so try granting access to the one you actually want to use. Remember "localhost" is not quite the same as "this computer via a name", even when you're on the same machine.

This widget could not be displayed.
Perhaps JIRA has problems with special characters. Try it again with a smaller password like 'abc123'.

Tried everything and your answer was correct. I had an @ symbol in the password which was causing the problem listed here. Thank you!

Thanks from me, too. In my case a slash character ('/') turned out to be the problem.

This widget could not be displayed.

Jira mysql install complete, problem was what Nic suggested:


jiradb.* TO 'jirauser'@'localhost' IDENTIFIED BY 'mypassword';
I needed to replace 'localhost' with the server name.
Thanks Nic :)
This widget could not be displayed.

This is sorted now, thanks for the answers.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

72 views 0 1
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you