Forums

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

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

Indra Gunawan December 8, 2015

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
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 8, 2015

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
AUG Leaders

Atlassian Community Events