func initDBPrivEntry(ctx context.Context, user string, host string, db string) error {
	sql := fmt.Sprintf(`INSERT INTO %s.%s (Host, User, DB) VALUES ("%s", "%s", "%s")`, mysql.SystemDB, mysql.DBTable, host, user, db)
	_, err := ctx.(sqlexec.RestrictedSQLExecutor).ExecRestrictedSQL(ctx, sql)
	return errors.Trace(err)
}
// Insert a new row into mysql.DB with empty privilege.
Insert a new row into mysql.DB with empty privilege.
// Insert a new row into mysql . DB with empty privilege .
func initDBPrivEntry(ctx context.Context, user string, host string, db string) error {
	sql := fmt.Sprintf(`INSERT INTO %s.%s (Host, User, DB) VALUES ("%s", "%s", "%s")`, mysql.SystemDB, mysql.DBTable, host, user, db)
	_, err := ctx.(sqlexec.RestrictedSQLExecutor).ExecRestrictedSQL(ctx, sql)
	return errors.Trace(err)
}
func initDBPrivEntry ( ctx context . Context , user string , host string , db string ) error { sql := fmt . Sprintf ( `INSERT INTO %s.%s (Host, User, DB) VALUES ("%s", "%s", "%s")` , mysql . SystemDB , mysql . DBTable , host , user , db ) _ , err := ctx . ( sqlexec . RestrictedSQLExecutor ) . ExecRestrictedSQL ( ctx , sql ) return errors . Trace ( err ) }
Insert a new row into mysql.DB with empty privilege.
Insert a new row into mysql . DB with empty privilege .