Extension:Asksql

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
Asksql

Release status: stable

Implementation Special page, Database
Description Allows SQL queries through a special page in the wiki, without opening phpMyAdmin etc.
Author(s) Brion Vibber
Latest version 2008-01-31 (2008-01-31)
MediaWiki 1.12 and above
License GPL
Download Template:WikimediaDownload/svn
Added rights

asksql

Hooks used
User

Translate the Asksql extension if possible

Check usage and version matrix; code metrics

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!

Installation[edit | edit source]

  • Download and extract the files in a directory called Asksql in your extensions/ folder. If you're a developer and this extension is in a Git repository, then instead you should clone the repository.
  • Add the following code at the bottom of your LocalSettings.php:
require_once( "$IP/extensions/Asksql/Asksql.php" );
$wgGroupPermissions['bureaucrat']['asksql'] = true;
  • Done! Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.

Configuration[edit | edit source]

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.