Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change Derby DB password

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.

like image 803
Robot Mess Avatar asked Feb 21 '13 14:02

Robot Mess


2 Answers

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')
like image 84
Robot Mess Avatar answered Sep 24 '22 04:09

Robot Mess


Call

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

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

like image 27
bahn Avatar answered Sep 24 '22 04:09

bahn