Postgresql Query Syntax Error (Restoring Admin Password CentOS)

Hello!

 

I'm following the directions listed within the following link to reset the admin password for our Confluence instance.

 https://confluence.atlassian.com/conf57/restoring-passwords-to-recover-admin-user-rights-701435450.html

 

However when I run the below query (Using phpPgAdmin) I receive the syntax error shown in the screenshot. Any ideas as to what I'm doing wrong here?

insert into cwd_user(id, user_name, lower_user_name, active, created_date, updated_date, first_name, lower_first_name, last_name, lower_last_name, display_name, lower_display_name, email_address, lower_email_address, directory_id, credential) values (1212121, 'admin', 'admin', 'T', '2009-11-26 17:42:08', '2009-11-26 17:42:08', 'A. D.', 'a. d.', 'Ministrator', 'ministrator', 'A. D. Ministrator', 'a. d. ministrator', 'admin@example.com', 'admin@example.com', (select id from cwd_directory where directory_name='Confluence Internal Directory'), 'x61Ey612Kl2gpFL56FT9weDnpSo4AV8j8+qx2AuTHdRyY036xxzTTrw10Wq3+4qQyB+XURPWx1ONxp3Y3pB37A==');


insert into user_mapping values ('2c9681954172cf560000000000000001', 'admin', 'admin');

syntax error.PNG

 

I really appreciate everyone's help, I'm completely new to both Postgresql and JIRA, so I apologize if this is a simple question.

 

 

2 answers

1 accepted

This widget could not be displayed.
Ann Worley Atlassian Team Nov 08, 2017

It looks like the following has been appended to the front of the insert statement:

SELECT COUNT (*) as total FROM

Please try the queries without that, and let us know if you can add the user as expected. 

Thanks, Ann! 

It looks like the "Paginate Results" box was checked, which was appending the statement.

 

Unchecked the box, and now we're good to go!

Ann Worley Atlassian Team Nov 08, 2017

Thanks for following up with us for the sake of the next person who has that box checked. :) Happy to hear you're all set!

This widget could not be displayed.

hm..

Have you selected the correct database first?

e.g: \c jiradb 

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Aug 14, 2018 in Confluence

Add-on evaluation with confluence templates

Atlassian market place contains number of Apps/Addons which improves the capability of out of the box Atlassian products. It is good to follow a plugin evaluation process before install add-ons. So t...

172 views 12 7
Read article

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