---
name: "masterha_conf_host"
section: "1p"
platform: "linux"
package: "mha4mysql-manager"
version: "0.58-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/masterha_conf_host"
---

# masterha\_conf\_host(1p)

Adding new host entry to, or removing existing host entry from a config file

## NAME

masterha\_conf\_host - Adding new host entry to, or removing existing host entry from a config file

## SYNOPSIS

masterha\_conf\_host --command=add --conf=/etc/conf/masterha/app1.cnf --hostname=db101

```
 The following lines will be added to the conf file.
 [server_db101]
 hostname=db101
```

masterha\_conf\_host --command=add --conf=/etc/conf/masterha/app1.cnf --hostname=db101 --block=100 --params="no\_master=1;ignore\_fail=1"

```
 The following lines will be added to the conf file.
 [server_100]
 hostname=db101
 no_master=1
 ignore_fail=1
```

masterha\_conf\_host --command=delete --conf=/etc/conf/masterha/app1.cnf --block=server100

```
 Then entire block [server100] will be removed.
```

See online reference (http://code.google.com/p/mysql-master-ha/wiki/masterha\_conf\_host) for details.

## DESCRIPTION

See online reference (http://code.google.com/p/mysql-master-ha/wiki/masterha\_conf\_host) for details.
