add mysql and log class, make init mysql ready