remove mysql,modify login state record and protocol.