教程:https://blog.csdn.net/liumiaocn/article/details/80342596和 https://www.runoob.com/lua/lua-database-access.html
其中安装数据库的时候
应该用
wget http://luarocks.org/releases/luarocks-2.1.0.tar.gz
tar -zxvf luarocks-2.1.0.tar.gz
cd luarocks-2.1.0
./configure --prefix=/usr/local/luarocks
make build
make install
luarocks install luasocket
luarocks install luasql-mysql
测试数据库:https://zixuephp.net/article.php?aid=450 (未成功)