Change Derby DB password

丶灬走出姿态 提交于 2021-02-07 06:34:34

问题


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.


回答1:


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')



回答2:


Call

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

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



来源:https://stackoverflow.com/questions/15004297/change-derby-db-password

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!