Fixs bug that Mysql serve gone away