1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 01:54:00 +02:00

Add basic support for MySQL replication

This commit is contained in:
Matthew Gamble
2015-12-05 10:43:28 +11:00
committed by Jakub Vrana
parent a062e9cc58
commit 2a534798fa
7 changed files with 44 additions and 2 deletions

View File

@@ -972,6 +972,14 @@ if (!defined("DRIVER")) {
return get_key_vals("SHOW STATUS");
}
/** Get replication status of master or slave
* @param string
* @return array ($name => $value)
*/
function replication_status($type) {
return get_rows("SHOW $type STATUS");
}
/** Convert field in select and edit
* @param array one element from fields()
* @return string