在Mosquitto中读取.db文件 [英] Read .db file in Mosquitto
问题描述
我正在使用Mosquitto Project(http://mosquitto.org),这是我的mosquitto.conf
I'm using Mosquitto Project (http://mosquitto.org), this is my mosquitto.conf
persistence_file mosquitto.db
persistence_file mosquitto.db
persistence_location C:/var/lib/mosquitto/
persistence_location C:/var/lib/mosquitto/
运行后,我有mosquitto.db,但无法打开它.我正在尝试使用Microsoft Excel sqlitebrowser_200_b1_win打开,但无法正常工作. 请帮我.预先感谢
After running, I have got mosquitto.db, but I can't open it. I'm trying open with Microsoft Excel, sqlitebrowser_200_b1_win but it's not working. Please help me. Thanks in advance
推荐答案
我刚刚在mosquitto答案跟踪器上回答了相同的问题:
I just answered this same question on the mosquitto answers tracker:
https://answers.launchpad.net/mosquitto/+question/217523
mosquitto.db文件包含有关客户端的内部持久性信息 订阅和保留的消息.不适用于室外 蚊子.无法保证它是最新信息.
The mosquitto.db file holds internal persistence information on client subscriptions and retained messages. It isn't intended for use outside of mosquitto. There is no guarantee that it is up to date information.
话虽如此,如果您有兴趣查看文件,那么 要查看的源文件是src/persist.c.还有一个程序 以更易读的方式打印文件内容-您应该 编译src/db_dump/db_dump.c.
Having said that, if you are interested in looking at the file then the source file to look at is src/persist.c. There is also a program to print the file contents in a more readable manner - you should compile src/db_dump/db_dump.c.
mosquitto.db是一个内部文件,与sql无关.
mosquitto.db is an internal file and has nothing to do with sql.
这篇关于在Mosquitto中读取.db文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!