We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a41d2dd commit e7ea5aaCopy full SHA for e7ea5aa
source/usermanager.pas
@@ -368,7 +368,13 @@ procedure TUserManagerForm.FormShow(Sender: TObject);
368
tmp := FConnection.GetSessionVariable('skip_name_resolve');
369
SkipNameResolve := LowerCase(tmp) = 'on';
370
371
- FConnection.Query(qReloadPrivileges);
+ try
372
+ FConnection.Query(qReloadPrivileges);
373
+ except
374
+ // FLUSH PRIVILEGE may fail due to missing RELOAD privilege.
375
+ // Proceed anyway, it's still ok to read/see the users
376
+ on E:EDbError do;
377
+ end;
378
379
// Peek into user table structure, and find out where the password hash is stored
380
UserTableColumns := FConnection.GetCol('SHOW COLUMNS FROM '+FConnection.QuoteIdent('mysql')+'.'+FConnection.QuoteIdent('user'));
0 commit comments