From MediaWiki.org
Jump to: navigation, search

Other languages:
Deutsch • ‎English • ‎español • ‎日本語 • ‎polski • ‎sicilianu
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png

Release status:Extension status unmaintained

ImplementationTemplate:Extension#type Special page, Database
DescriptionTemplate:Extension#description Allows SQL queries through a special page in the wiki, without opening phpMyAdmin etc.
Author(s)Template:Extension#username Brion Vibber
Latest versionTemplate:Extension#version 2008-01-31 (2008-01-31)
MediaWikiTemplate:Extension#mediawiki 1.12+
LicenseTemplate:Extension#license GPL
Download Template:WikimediaDownload/svn
Added rightsTemplate:Extension#rights


Hooks usedTemplate:Extension#hook

Translate the Asksql extension if it is available at translatewiki.net

Check usage and version matrix.

Asksql extension allows you to do SQL queries through Special:Asksql in the wiki, without opening phpMyAdmin etc.

Warning Warning: Dangerous if not configured properly!


  • Download and place the file(s) in a directory called Asksql in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
require_once "$IP/extensions/Asksql/Asksql.php";
$wgGroupPermissions['bureaucrat']['asksql'] = true;
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.


On the individual pages for these settings, it says deprecated in 1.5, since this extension was split from core mediawiki in that version. If you've installed the extension, these settings apply regardless.