官术网_书友最值得收藏!

How to do it...

Let's assume we use the default mysql command-line tool and MySQL as the backend database for Jira. If you are using a different database, you may need to change the following SQL statements accordingly:

  1. Connect to the Jira database with a client tool by running the mysql -u jirauser -p command, where jirauser is the username used by Jira to access the Jira database.
  2. You can find Jira's database details from the dbconfig.xml file located in JIRA_HOME.
  3. Change to the Jira database by running the use jiradb command, where jiradb is the name of Jira's database.
  4. Determine the groups that have the Jira System Administrator global permission with the following SQL statement:
select perm_parameter from 
schemepermissions where PERMISSION=44;
  1. Find users that belong to the groups returned in the previous step by running the following SQL statement, where jira-administrators is a group returned from the previous step:
select child_name, directory_id
from cwd_membership where
parent_name='jira-administrators';
The jira-administrators group is the default group that administrators belong to. You might get a different group if you customize the permission configurations. The table column for the username is child-name.
  1. Reset the user's password in the database with the following SQL statement, where admin is a user returned in the previous step:
update cwd_user set
credential='uQieO/1CGMUIXXftw3ynrsaYLShI+
GTcPS4LdUGWbIusFvHPfUzD7
CZvms6yMMvA8I7FViHVEqr6Mj4pCLKAFQ==' where
user_name='admin';
  1. Restart Jira to apply the change.
主站蜘蛛池模板: 霍城县| 绍兴市| 肥城市| 哈巴河县| 扶余县| 珲春市| 新营市| 珠海市| 鞍山市| 西吉县| 屯留县| 黄山市| 张家港市| 包头市| 育儿| 闽侯县| 密山市| 宜州市| 舟曲县| 普格县| 连云港市| 绥阳县| 嘉峪关市| 南皮县| 商丘市| 龙泉市| 察雅县| 蒙阴县| 安西县| 阿克陶县| 永顺县| 班戈县| 柘荣县| 龙岩市| 保定市| 汪清县| 甘孜县| 奉新县| 和林格尔县| 唐山市| 武山县|