Manual:AdminSettings.php

Overview
In 1.16, this was removed. AdminSettings.sample is no longer shipped with MediaWiki, and AdminSettings.php is not required for anything. Values set in AdminSettings can be safely set in your LocalSettings, along with other configuration. However, AdminSettings, if it still exists, will be loaded in maintenance scripts like before to retain backward compatibility with installations that retain their AdminSettings.php file.

Prior to 1.16
The file name AdminSettings.sample in your main directory (e.i., /localhost/wiki/) should be changed to AdminSettings.php, and modified to reflect local settings.

AdminSettings.php is required for the maintenance scripts which run on the command line, as an extra security measure to allow using a separate user account with higher privileges to do maintenance work.

Wikidb Administrator's username and password
The $wgDBadminuser and $wgDBadminpassword variables identify a SQL user has the correct access to run all database maintenance scripts (see directory maintenance/). Default settings are: The SQL user must be manually created or set to an existing user with necessary permissions. This is not to be confused with sysop accounts for the wiki.

Security
Keep in mind that the AdminSettings.php permissions should not allow other users to view this file as it contains security-related data, including your database user password. chmod 700 or otherwise set the permissions to something that provides security from public access. Generally a separate MySql user is specified in AdminSettings.php to the user in LocalSettings.php which has superuser database permissions to run the maintenance scripts.

Enabling/Disabling profileinfo.php
The wgEnableProfileInfo variable enables the profileinfo.php script. The default value is:

Merging with LocalSettings.php
One can put the content into LocalSettings.php, eliminating the need for, e.g., via $wgDBadminuser    = $wgDBuser     = 'northwaffle'; $wgDBadminpassword = $wgDBpassword = 'pleizevolfer'; or if maintaining the separate user, $wgDBadminuser    = 'plodheimer'; $wgDBadminpassword = 'narfblotz'; $wgDBuser         = 'nurdsome'; $wgDBpassword     = 'tweedowitz'; See also: Manual:Wiki family