root
root
3294 2 0

mydata.db文件是加密的

mydata.db文件是加密的?密码是多少呢?我想自己看看数据结构~ @ego008

0

See Also

Nearby


Discussion (2)

ego008
ego008 2017-12-10 03:50

不是加密的,目前没有直接查看的工具,这个数据库是内存在硬盘的一个映像,大多数据是json 结构。可以参考 https://github.com/ego008/goyoubbs/tree/master/model 里面的一些 type Xxxx struct,如下面是帖子的数据结构:

type Article struct {
	Id           uint64 `json:"id"`
	Uid          uint64 `json:"uid"`
	Cid          uint64 `json:"cid"`
	RUid         uint64 `json:"ruid"`
	Title        string `json:"title"`
	Content      string `json:"content"`
	ClientIp     string `json:"clientip"`
	Tags         string `json:"tags"`
	AddTime      uint64 `json:"addtime"`
	EditTime     uint64 `json:"edittime"`
	Comments     uint64 `json:"comments"`
	CloseComment bool   `json:"closecomment"`
	Hidden       bool   `json:"hidden"`
}
0
root
root 2017-12-10 03:57

@ego008 我用SQLedit 编辑提示加密,需要密码。。。好吧 我再折磨看看

0
Login Topics