fixed issue when starting mysql after server, server cannot load schema
added unit tests