安装lua安装LuaRocks安装Lua数据库驱动 安装luayay -S lua 安装LuaRocksyay -S luarocks 安装Lua数据库驱动luarocks install luasql-sqlite3luarocks install luasql-postgresluarocks install luasql-mysqlluarocks install luasql-sqliteluarocks install luasql-odbc 注:postgresql需要安装开发库 yay -S postgresql-libs 然后再进行安装参考: https://www.runoob.com/lua/lua-database-access.html