Manual:$wgDBadminuser

Details
Database username that is used when running maintenance scripts. This is normally set along with $wgDBadminpassword in LocalSettings.php.

Prior to MediaWiki version 1.16,  was set in AdminSettings.php.