Manual:Mysql.php

mysql.php maintenance script executes the MySQL client binary with connecting to the wiki's DB. It directly takes credential from LocalSettings.php and getting you into MySQL client binary.

Options
mysql.php accepts following five options.

Usage

 * Getting into MySQL client


 * Getting list of hosts

If you uses database cluster to run your wiki with $wgExternalServers. You can checkout to cluster.
 * Getting into MySQL client with cluster

Common error
This comes when wrong or non-exists cluster name is given to the script.
 * Error: invalid cluster

This comes when you run script on wiki that uses sqlite.
 * Error: this script only works with MySQL/MariaDB