I reinstalled Mac OS and forgot to take a backup of mysql. I luckily had backed up quite often. I had to get the data back since I haven't taken backup of database itself.

Here's what I did. I installed mysql (latest). Removed all the contents and replaced with the contents of mysql folder from TM Backup.

Viola.. I got what I need…