Migrating JIRA to another database throws database permission denied error

Symptoms

The following appears in the atlassian-jira.log:

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

Cause

Insufficient permission granted to the user of the new database.

Resolution

Grant all permissions to the user in the new database.

CREATE DATABASE jiradb CHARACTER SET utf8 COLLATE utf8_bin;
GRANT ALL PRIVILEGES ON jiradb.* TO 'jirauser'@'localhost' IDENTIFIED 
BY 'MyPassword';

(info) This query works for PostgreSQL. If you are using a different database, please refer to the official documentation of the respective database and modify the query accordingly.

Last modified on Apr 7, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.