diff --git a/hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/cmd/InitStore.java b/hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/cmd/InitStore.java index a18ae63330..eabca7fd6f 100644 --- a/hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/cmd/InitStore.java +++ b/hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/cmd/InitStore.java @@ -101,6 +101,11 @@ private static HugeGraph initGraph(String configPath) throws Exception { LOG.info("Skip init-store due to the backend store of '{}' " + "had been initialized", graph.name()); backendStoreInfo.checkVersion(); + /* + * Init the required information for creating the admin account + * (when switch from non-auth mode to auth mode) + */ + graph.initSystemInfo(); } else { initBackend(graph); }