The database-server
utility is used to manage database server
entries in Plesk through CLI. By using this utility, you can perform the
following tasks:
- creating database server entries in Plesk
- setting and editing database server connection parameters in the
entries
Usage
database-server <command> [
<option_1> [<param>]
[<option_2> [<param>]]
... [<option_N> [<param>]]
]
Example
The following command sets the new login name dbadmin and the new
password dbpass for the database server administrator on a remote
database server previously available at 192.0.2.78:3838 (as recorded
in the database server entry in Plesk) and sets the IP address and port
number for the entry to 192.0.2.89:3636.
plesk bin database-server --update-server 192.0.2.78:67.78 -set 192.0.2.89:3636 -admin dbadmin -passwd dbpass
Commands
Command | Parameter | Description | Example |
---|---|---|---|
--create-server |
<host>:<port> |
Creates a database server entry in Plesk. Requires |
To create the database server entry in Plesk for the MySQL plesk bin database-server --create-server 192.0.2.78:3838 -type mysql -admin dbadmin -passwd dbpass |
…