Hi Sugandh,
If you must use MySQL, I would suggest trying out AdoOutputAdapter or creating your own custom adapter. You may also consider trying out openECA to get real-time data into a MATLAB project.
FYI, if you want to try openECA, there seems to be issues with the latest release so you may need to use the nightly build version. See the following topic for details.
https://gridbits.gridprotectionalliance.org/t/openeca-matlab-project/726/4
Thanks,
Stephen