mqtt2sql icon indicating copy to clipboard operation
mqtt2sql copied to clipboard

mysql is no valid sql-type

Open DerDoubleD opened this issue 1 year ago • 2 comments

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.

DerDoubleD avatar Oct 09 '25 14:10 DerDoubleD

For MySQL, you need the Python MySQL client. If you install it as specified (python -m pip install -r requirements.txt), sql-type mysql becomes a valid option.

For sqlite an no data: Pls share your complete parameter list you tried

curzon01 avatar Oct 09 '25 16:10 curzon01

Thanks for your fast answer! You are right! 👍🏻

DerDoubleD avatar Oct 10 '25 05:10 DerDoubleD