Store mqtt data in database using python

I am using a local mqtt network for getting the data but the next step is i want to create the database of that data…how can i do that using python or any other language if anyone can help

The PostgreSQL integration is probably the path of least resistance:

There are other integrations you could consider, as well.

Yess ofcourse, but i want to store the incomin data in my local database not in the postgresql

You forgot to include that in your original post. You probably want to look at the MQTT or HTTP integrations.

What is the database you’re trying to save the data into? You could also implement NodeRed written in Node.js. It’s pretty straightforward with a good GUI and should work with most common databases. Contact me directly if you need assistance.