Linux环境下找回禅道admin密码 方法之一

"记录在Linux环境下找回禅道admin密码的方法"

使用root账号登录禅道安装路径下的mysql,root默认密码123456

11 /opt/zbox/run/mysql/mysql -uroot -p 22 Enter password:

成功进入mysql后提示如下:

11 Welcome to the MariaDB monitor. Commands end with ; or \g.Your MariaDB connection id is 7Server version: 10.1.22-MariaDB Source distribution 22 Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others. 33 Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. 44 MariaDB [(none)]>

查看数据库,并使用zentao库

1 1 MariaDB [(none)]> show databases; 2 2 +--------------------+ 3 3 | Database | 4 4 +--------------------+ 5 5 | information_schema | 6 6 | mysql | 7 7 | performance_schema | 8 8 | zentao | 9 9 | zentaoep | 1010 | zentaopro | 1111 +--------------------+ 1212 6 rows in set (0.01 sec) 1313 1414 MariaDB [(none)]> use zentao; 1515 Reading table information for completion of table and column names 1616 You can turn off this feature to get a quicker startup with -A 1717 1818 Database changed 1919 MariaDB [zentao]>

输入sql命令查看zt_user表root用户密码

11 MariaDB [zentao]> select id,account,password from zt_user where account ='admin'; 22 +----+---------+----------------------------------+ 33 | id | account | password | 44 +----+---------+----------------------------------+ 55 | 1 | admin | c79077fb2a0b06ae6ccf62ddc7269026 | 66 +----+---------+----------------------------------+ 77 1 row in set (0.00 sec) 88 MariaDB [zentao]>

密码使用MD5加密,修改当前密码为:

e10adc3949ba59abbe56e057f20f883e即123456

11 MariaDB [zentao]> update zt_user set password='e10adc3949ba59abbe56e057f20f883e' where id=1; 22 Query OK, 1 row affected (0.00 sec) 33 Rows matched: 1 Changed: 1 Warnings: 0 44 55 MariaDB [zentao]>

修改成功后即可使用密码123456在浏览器登录禅道admin账号。

点赞
收藏

评论区

加载中...

相关推荐

MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1

文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s

Oracle 分组与拼接字符串同时使用

SELECTT.,ROWNUMIDFROM(SELECTT.EMPLID,T.NAME,T.BU,T.REALDEPART,T.FORMATDATE,SUM(T.S0)S0,MAX(UPDATETIME)CREATETIME,LISTAGG(TOCHAR(

MySQL部分从库上面因为大量的临时表tmp_table造成慢查询

背景描述Time:20190124T00:08:14.70572408:00User@Host:@Id:Schema:sentrymetaLast_errno:0Killed:0Query_time:0.315758Lock_

手写Java HashMap源码

HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程22

2020年前端实用代码段,为你的工作保驾护航

有空的时候,自己总结了几个代码段,在开发中也经常使用,谢谢。1、使用解构获取json数据let jsonData  id: 1,status: "OK",data: 'a', 'b';let  id, status, data: number   jsonData;console.log(id, status, number )

Twitter的分布式自增ID算法snowflake (Java版)

概述分布式系统中,有一些需要使用全局唯一ID的场景,这种时候为了防止ID冲突可以使用36位的UUID,但是UUID有一些缺点,首先他相对比较长,另外UUID一般是无序的。有些时候我们希望能使用一种简单一些的ID,并且希望ID能够按照时间有序生成。而twitter的snowflake解决了这种需求,最初Twitter把存储系统从MySQL迁移

Linux环境下找回禅道admin密码 方法之一 - HelloWorld