按照gateway手冊(cè)mysql例子,在onWorkerStart里初始化比較合適
謝謝,一開(kāi)始沒(méi)在Gateway里找到mysql的例子,就去看workerman的,回來(lái)再在gateway里找onWorkerStart又找不到,原來(lái)是自己添加的。