Change Derby DB password
Asked Answered
S

2

7

I have already set a Derby DB password in Glassfish/Netbeans. I also checked the remember me checkbox.

Now I cannot change the password anymore.

Swollen answered 21/2, 2013 at 14:8 Comment(0)
S
7

To change the password you only have to execute:

call SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.user.<my user name>', '<your new password>')

for example if you username is 'john' and you want you new password to be 'johnsnewpassword' you would call:

call SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.user.john', 'johnsnewpassword')
Swollen answered 21/2, 2013 at 14:12 Comment(0)
S
3

Call

SYSCS_UTIL.SYSCS_RESET_PASSWORD('userid', 'newpassword');

See Built-in system procedures/ SYSCS_UTIL.SYSCS_RESET_PASSWORD in Java DB Reference Manual.

Stinnett answered 21/11, 2014 at 12:19 Comment(1)
This is the better answer because the scope is narrower. Giving a user permission to execute the RESET_PASSWORD command gives the user less potential to wreak havoc than giving them permission to execute the SET_DATABASE_PROPERTY command.Carcinomatosis

© 2022 - 2024 — McMap. All rights reserved.