fix case when a account as same user but different host and password

This commit is contained in:
Laurent Indermuehle 2023-10-12 13:46:27 +02:00
parent e607ce1974
commit 154d880846
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09
3 changed files with 36 additions and 7 deletions

View file

@ -605,7 +605,7 @@ class MySQL_Info(object):
if len(output_dict['resource_limits']) == 0:
del output_dict['resource_limits']
authentications = get_existing_authentication(self.cursor, user)
authentications = get_existing_authentication(self.cursor, user, host)
if authentications:
output_dict.update(authentications)