function MysqlInit()
handler = mysql_connect("", "", "", "", "") -- Establish the connection
if ( not handler ) then -- The connection failed
outputDebugString("Unable to connect to the MySQL server")
else
mysql_close(handler) -- Close the connection
end
end
addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), MysqlInit)