MySQL database connectivity with Thinger main.cpp program

How to connect the local MySQL database with the Thinger main.cpp program of Raspberry Pi

Have someone did that?

Not sure what do you mean with local MySQL database. Thinger uses MongoDB, and you can connect to the database using any mongo client.

This has been solved with reference to this link.
https://raspberry-projects.com/pi/programming-in-c/databases-programming-in-c/mysql/setup-mysql-c-access.
Now is is been possible to read data from from MYSQL database installed in raspberry pi through the Thinger’s main.cpp code and display in Thinger’s dashboard