The database-server.exe
utility is designed to manage database
servers. The utility allows performing the following tasks:
- adding and removing database servers to Plesk
- changing database servers properties and connection settings
- changing password of the database server administrator
- setting default database server of a particular database type
Location
%plesk_cli%
Usage
database-server.exe <command> [<host[:port]>] [
<option 1> <param> [<option 2> <param>] ... [<option N> <param>]
]
Example
The following command sets new password newpass for administrator with
the login dbadmin on the remote Microsoft SQL database server
mssqlserver available at 192.0.2.44.
plesk bin database-server.exe --update-server 192.0.2.16:3838 -type mssql -admin dbadmin -reset-passwd newpass
Commands
Command | Parameter | Description | Example |
---|---|---|---|
--create-server |
<host[:port]> |
Adds a database server record to Plesk. Requires |
To create the MySQL database server available at 192.0.2.33, plesk bin database-server.exe --create-server 192.0.2.33 -type mysql -admin admin -passwd setup |
--update-server |
<host[:port]> |
Changes configuration settings for the specified database server in Plesk. |
To set password for administrator of a remote MySQL server |