diff --git a/plugins/generic/enumeration.py b/plugins/generic/enumeration.py
index b5fb9ff48..deb19e56d 100644
--- a/plugins/generic/enumeration.py
+++ b/plugins/generic/enumeration.py
@@ -129,7 +129,13 @@ class Enumeration:
infoMsg = "testing if current user is DBA"
logger.info(infoMsg)
- query = agent.forgeCaseStatement(queries[kb.dbms].is_dba.query)
+ if kb.dbms == DBMS.MYSQL:
+ self.getCurrentUser()
+ query = queries[kb.dbms].is_dba.query % kb.data.currentUser.split("@")[0]
+ else:
+ query = queries[kb.dbms].is_dba.query
+
+ query = agent.forgeCaseStatement(query)
kb.data.isDba = inject.getValue(query, unpack=False, charsetType=1)
diff --git a/xml/queries.xml b/xml/queries.xml
index 3b315949c..1f38e3541 100644
--- a/xml/queries.xml
+++ b/xml/queries.xml
@@ -28,7 +28,7 @@
-
+