The database.exe
utility serves to manage databases and database
user accounts used by Plesk domains. The utility allows the following
operations:
- creating and removing databases
- adding and removing database user accounts
- editing database user credentials
- adding or removing access control records for MySQL database users
- adding firewall access rules for SQL Server database users
Location
%plesk_cli%
Usage
database.exe <command> [<database_name>] [
<option 1> <param> [<option 2> <param>] ... [<option N> <param>]
]
Example
The following command creates the MySQL database jdoe-gallery on the
domain example.com.
plesk bin database.exe --create jdoe-gallery -domain example.com -type mysql
Commands
Command | Parameter | Description | Example |
---|---|---|---|
--create or -c |
<database_name> |
Creates a database with a specified name. Requires |
To create the jdoe-gallery database on example.com: plesk bin database.exe --create jdoe-gallery -domain example.com -type mysql or plesk bin database.exe -c jdoe-gallery -domain example.com -type mysql |
…