mqtt2sql icon indicating copy to clipboard operation
mqtt2sql copied to clipboard

Copy MQTT topic payloads to MySQL/SQLite database

Results mqtt2sql issues
Sort by recently updated
recently updated
newest added

### Discussed in https://github.com/curzon01/mqtt2sql/discussions/36 Originally posted by **DerDoubleD** October 10, 2025 Please help me again. The script appears to start normally and continues to run until I stop it. But...

bug

`mqtt2sql.py: error: argument --sql-type: invalid choice: 'mysql' (choose from sqlite)` If I change it to sqlite, there's no error. But nothing is written either.

## Describe the bug After upgrading to `paho-mqtt` version 2.x, I encountered the following error: ValueError: Unsupported callback API version: version 2.0 added a callback_api_version, see docs/migrations.rst for details While...

I'd love to have this as a self contained docker container to keep the program more isolated so it's easier to update. Now with latest update I needed to fiddle...

enhancement

Start string: ./mqtt2sql.py --mqtt mqtt://user:pass@host:1883/topic/# --mqtt-insecure --sql-type mysql --sql-host host --sql-username mqtt --sql-password 'pass' --sql-db mqtt -v Output: 2024-05-27 23:43:26: mqtt2sql.py[1917929] v3.0.2 start 2024-05-27 23:43:26: MQTT server: 192.168.31.3:1883 (suppress TLS...

CREATE VIEW IF NOT EXISTS `mqtt_history_view` AS XXXXXXXXXXXXXX VIEW IF NOT EXISTS is unsupported per https://stackoverflow.com/a/78208913/4953146 Deleted VIEW IF NOT EXISTS => script ran without errors

In the home page's instructions: update the python command to python3

duplicate

Before execution of python3 mysql module. 2 Lines for 22.04 libmysql requirement: sudo apt-get install python3-dev default-libmysqlclient-dev build-essential sudo apt install pkg-config see: https://stackoverflow.com/a/76588599/4953146

Change python to python3 in the instructions

First: THANK YOU! This allowed me to start collecting data in minutes 👍 After collecting data for a few days, I started noticing that there was something odd about the...

enhancement