How can I connect to a MySQL database from using Lua programming language?
If a good/popular library exists, what is it?
In case your mysql database is remote, you can add host as another optional parameter to connect. Port can follow host as well:
con = assert (env:connect("dbname","user","password","host",port))