Postgresql Query Syntax Error (Restoring Admin Password CentOS)



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


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', '', '', (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

1 vote
Accepted answer
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!


Have you selected the correct database first?

e.g: \c jiradb 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Dec 18, 2018 in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

477 views 3 18
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