Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting jira to postgresql database with custom schema

vishwas November 1, 2019

Hello All,

Can we connect jira software to postgresql database other than public schema ?

If so how the schema should be configured for privileges so that it connects to jira application.

 

Thanks & Regards,

Vishwas

2 answers

2 accepted

0 votes
Answer accepted
culyzhao
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 21, 2019

I also have this problem, and did some study on it, there are serveral ways to solve it.

1. Use @Tinker Fadoua metioned method, set search_path.

2. Modify  dbconfig.xml, add currentSchema paremeter to jdbc url:

<url>jdbc:postgresql://ip:5432/yourdb?currentSchema=jira</url>

3. Create the schema same as your jira db login user.

In postgresql, show search_path command will show the search_path settings, default result is "$user", public. It means default schema is same as current logon username. 

0 votes
Answer accepted
Tinker Fadoua
Community Champion
November 1, 2019

@vishwas 

Yes you can. In fact I had issues 2 days ago configuring the Postgres to Jira because I was using the public schema.

ALTER DATABASE <database name> SET search_path TO <your schema>,public;

Run the command above after adding your schema.

Best,

Fadoua

vishwas November 2, 2019

@Tinker Fadoua 

Thanks for the help

It helped me after setting search_path

Thanks & Regards,

Vishwas

Like • Tinker Fadoua likes this
Tinker Fadoua
Community Champion
November 4, 2019

Thank you for accepting my answer @vishwas !

Suggest an answer

Log in or Sign up to answer