Hello, Users

i am newbie to freeswitch.I want to write lua script for querying data for mysql database that i could use in lua script.

Could someone please specify me how to do this with small exemplary lua script code.
or

1.) How to make freeswitch connect to mysql for querying data

2.) All steps in this regard.

Thanks