兼容linux

This commit is contained in:
xx
2024-05-28 15:12:37 +08:00
parent b8b2ff12bf
commit bdbe5f34dd
34 changed files with 331 additions and 713 deletions

View File

@@ -1,19 +1,6 @@
require "website"
-- MYSQL数据库池
function initMysql()
local pool = mysql_pool.new()
if pool:start("127.0.0.1","test","123456","test","utf8mb4",3306,10) == false then
print("start mysql pool failed")
return false
end
global_regist("mysql",pool:self())
return true
end
print("init fast web success!")
if initMysql() == false then
return false
end
return true