1.安装 mysql
sudo apt-get install mysql-server apt isntall mysql-client apt install libmysqlclient-dev
2.安装 luarocks(自动安装 lua5.1)
apt install luarocks 测试 : luarocks install md5\
3.安装 luamysql
sudo apt-get install libmysqlclient-dev luarocks install luasql-mysql MYSQL_INCDIR=/usr/include/mysql MYSQL_LIBDIR=/usr/lib64/mysql/ luarocks install lua-cjson