mysql lib

This commit is contained in:
87414772@qq.com
2014-06-24 13:11:05 +08:00
parent 2128a82571
commit 6733134ad4
6 changed files with 1230 additions and 1 deletions

11
examples/config.mysql Normal file
View File

@@ -0,0 +1,11 @@
root = "./"
thread = 8
logger = nil
harbor = 0
start = "main_mysql" -- main script
bootstrap = "snlua bootstrap" -- The service for bootstrap
luaservice = root.."service/?.lua;"..root.."test/?.lua;"..root.."examples/?.lua"
lualoader = "lualib/loader.lua"
snax = root.."examples/?.lua;"..root.."test/?.lua"
cpath = root.."cservice/?.so"
-- daemon = "./skynet.pid"

10
examples/main_mysql.lua Normal file
View File

@@ -0,0 +1,10 @@
local skynet = require "skynet"
skynet.start(function()
print("Main Server start")
local console = skynet.newservice("testmysql")
print("Main Server exit")
skynet.exit()
end)