Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

How do I access JIRA 4.3.2 tables in jiradb database on postgresql 8.3?

I need to do the following to add the "admin" account the Global Administrators of JIRA permission:

https://confluence.atlassian.com/display/JIRA052/Retrieving+the+JIRA+Administrator

 

However, I kept getting "No relations found." doing \dt.  Shouldn't the "public" schema has the JIRA tables?

bash-3.2$ id
uid=863(postgres) gid=25(eng) groups=25(eng)
bash-3.2$ psql -U jirauser -d jiradb -W
Password for user jirauser:
Welcome to psql 8.3.23, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit

jiradb=> \dt
No relations found.
jiradb=> \l+
List of databases
Name | Owner | Encoding | Tablespace | Description
-----------+----------+----------+------------+---------------------------
jiradb | jirauser | UTF8 | pg_default |
postgres | postgres | UTF8 | pg_default |
template0 | postgres | UTF8 | pg_default |
template1 | postgres | UTF8 | pg_default | default template database
(4 rows)

jiradb=> \dn+
List of schemas
Name | Owner | Access privileges | Description
--------------------+----------+--------------------------------------------------------+----------------------------------
information_schema | postgres | {postgres=UC/postgres,=U/postgres} |
pg_catalog | postgres | {postgres=UC/postgres,=U/postgres} | system catalog schema
pg_toast | postgres | | reserved schema for TOAST tables
pg_toast_temp_1 | postgres | |
pg_toast_temp_7 | postgres | |
public | postgres | {postgres=UC/postgres,=UC/postgres,tableau=U/postgres} | standard public schema
(6 rows)

jiradb=> \dt public.*
No matching relations found.
jiradb=>

 

jiradb=> \du
List of roles
Role name | Superuser | Create role | Create DB | Connections | Member of
-----------+-----------+-------------+-----------+-------------+-----------
jirauser | no | no | no | no limit | {}
postgres | yes | yes | yes | no limit | {}
tableau | no | no | no | no limit | {}
(3 rows)

 

Thank you.

-Indra

 

1 answer

0 votes

This seems rather confused about what you're doing.

Relations (and hence \dt) are completely irrelevant here.  You need to go into the JIRA database, read some tables to find out what JIRA users to change, and then update tables to update their access.  Nothing to do with database users (other than you need to log into the database with a database user who has select, insert and update in the JIRA database)

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Industry Groups

🤖 A Jira Senior Developer's thoughts on remote pair programming

Hello, Tech enthusiasts! Are you ready for October to begin 🙀? I wanted to share with you an Article I came across from Work/Life (The Atlassian blog) from  a senior developer on the Jira te...

33 views 1 2
View post

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