I am using Mosquitto MQTT broker and I would like to store every published message into a MySQL database without creating a client and subscribing to # wildcard.
I found this https://github.com/jpmens/mosquitto-auth-plug but my english is not good enough to understand it thoroughly... I think it is only to store persistent message for the broker to resend them later. Am I right ?
Thanks
The mosquitto-auth-plugin uses the database to store username/password and ACL information, not message content.
Writing some code to store messages in a database from any MQTT broker is relatively simple.
There are several approaches: