The database utility is used to manage databases and database users in Plesk through CLI. By using this utility, you can perform the following tasks:

* creating or deleting databases
* adding and removing database users
* adding or removing database access records for database users
* editing database user credentials
* setting charset for PostgreSQL databases

Example

The following command creates database buddies on a database server accessible at the IP address and port number 192.0.2.78:3838 and prints the created Plesk database ID:

# ./database –create buddies -domain example.com -server 192.0.2.78:3838 -print-id

To create the database buddies for the domain example.com on the local MySQL server:

# ./database –create buddies -domain example.com -type mysql

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.