摘要: http://luaforge.net/projects/luasql/-- load driverrequire "luasql.mysql"-- create environment objectenv = assert (luasql.mysql())-- connect to data sourcecon = assert (env:connect("database", "usr", "password", "192.168.xx.xxx", 3306))-- reset our ta 阅读全文
posted @ 2012-12-04 10:33 596448745 阅读(691) 评论(0) 推荐(0) 编辑
摘要: lua版本:lua-5.1.5,下载链接:http://www.lua.org/ftp/lua-5.1.5.tar.gzluamysql版本:luasql-2.1.1,下载链接:http://files.luaforge.net/releases/luasql/luasql/LuaSQL2.1.1/luasql-2.1.1.tar.gz系统:centos 61、下载lua5.1.5以及luamysql2.1.12、解压lua:tar zxvf lua-5.1.5.tar.gz3、进入lua-5.1.5目录,安装:sudo make linux && make install,安 阅读全文
posted @ 2012-12-04 10:30 596448745 阅读(1583) 评论(0) 推荐(0) 编辑