Introduction - If you have any usage issues, please Google them yourself
This article introduces the library of Lua database: Lua SQL. He is open source and supports databases such as ODBC, ADO, Oracle, MySQL, SQL, and PostgreSQL.
This article introduces you to MySQL's database connection.
Lua SQL can use Lua Locks to install the database drivers you need on demand