Skip to content

Commit

Permalink
tidb-initializer:close connection after set privilege (#1710)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuijing198799 authored Feb 18, 2020
1 parent ba135e9 commit 1f90d44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/manager/member/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ if permit_host != '%%':
conn.cursor().execute("update mysql.user set Host=%s where User='root';", (permit_host,))
conn.cursor().execute("flush privileges;")
conn.commit()
conn.close()
`))

type TiDBInitStartScriptModel struct {
Expand Down

0 comments on commit 1f90d44

Please sign in to comment.