diff --git a/tidb-server/main.go b/tidb-server/main.go
index <HASH>..<HASH> 100644
--- a/tidb-server/main.go
+++ b/tidb-server/main.go
@@ -32,6 +32,7 @@ var (
 	storePath = flag.String("path", "/tmp/tidb", "tidb storage path")
 	logLevel  = flag.String("L", "debug", "log level: info, debug, warn, error, fatal")
 	port      = flag.String("P", "4000", "mp server port")
+	lease     = flag.Int("lease", 300, "schema lease seconds, very dangerous to change only if you know what you do")
 )
 
 func main() {
@@ -40,6 +41,12 @@ func main() {
 
 	flag.Parse()
 
+	if *lease <= 0 {
+		log.Fatalf("invalid lease seconds %d", *lease)
+	}
+
+	tidb.SetSchemaLease(*lease)
+
 	cfg := &server.Config{
 		Addr:     fmt.Sprintf(":%s", *port),
 		LogLevel: *logLevel,
tidb-server: support schema lease flag.