开放平台重置密码

1:连接数据库;
2:open_3.3版本之前,复制下面sql语句
UPDATE js_open_location_server.building_manager SET password=’efaf555386f192abbf004354fa4124e9’,salt=’d63a6557aa5fe703cefc5cc50f846895’ WHERE username=’client’;

open_3.5版本及之前,复制下面sql语句
UPDATE js_open_location_server.uc_manager SET password=’efaf555386f192abbf004354fa4124e9’,salt=’d63a6557aa5fe703cefc5cc50f846895’ WHERE username=’client’;

复制的sql语句需要修改标点符号,如果还是不行则需要照抄一边再执行
3:执行完sql语句,重新登录系统。

open_3.6版本之后版本,重置密码操作如下
1、先切换到mongo数据库目录
cd /home/seekcy/database/mongodb/bin
连上mongodb数据库
执行命令:
./mongo mongodb://jsopen:JsOpenMongo2019@localhost:47017/js_open_location_server
然后先删除

  1. db.getSiblingDB("js_open_location_server").getCollection("uc_manager").remove( { "username":"client"})

在添加

  1. db.getSiblingDB("js_open_location_server").getCollection("uc_manager").insertOne({ _class: "com.seekcy.open.platform.server.repository.itf.entity.ManagerDO", createTime: new ISODate("2019-12-24T07:49:36.000Z"), deleted: false, licence: "d63a6557aa5fe703cefc5cc50f846895", locked: false, maxBuildCount: new NumberInt("99"), nickname: "client", password: "efaf555386f192abbf004354fa4124e9", salt: "d63a6557aa5fe703cefc5cc50f846895", updateTime: new ISODate("2023-12-08T07:12:51.865Z"), username: "client", uuid: "d63a6557aa5fe703cefc5cc50f846895"})

转载请注明作者和出处,并添加本页链接。
原文链接: //svn.seekcy.com:33382/428