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:
committed by
Jakub Vrana
parent
a062e9cc58
commit
2a534798fa
@@ -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
|
||||
|
Reference in New Issue
Block a user