disconnect-database

Removes a database from the control of a virtual server This command removes access to a database from the virtual server that owns it, but does not actually delete the database itself. You must provide the --domain flag followed by a virtual server name, --type followed by the DB type (like mysql or postgres), and --name followed by the database name. Command line help virtualmin disconnect-database --domain domain.name --name database-name --type mysql|postgres

Removes a database from the control of a virtual server#

This command removes access to a database from the virtual server that owns it, but does not actually delete the database itself. You must provide the --domain flag followed by a virtual server name, --type followed by the DB type (like mysql or postgres), and --name followed by the database name.

Command line help#

virtualmin disconnect-database --domain domain.name
 --name database-name
 --type mysql|postgres

Source: https://www.virtualmin.com/docs/development/api-programs/disconnect-database/

  • virtualmin, domain, database, mysql, command line, disconnect
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Pre and Post Domain Modification Scripts

Virtualmin allows the use of custom scripts (Shell, Perl, Python and etc.) to automate tasks...

OS Support

Virtualmin runs on top of Webmin. Webmin works on almost every UNIX-like OS, so with some manual...

Professional Features

Virtualmin GPL is already an extremely powerful and flexible virtual hosting control panel, so...

How to Configure Secondary DNS

This guide provides administrators with a quick overview of setting up automatic DNS secondary...

How to Configure Cloudflare DNS

For users looking to integrate Cloudflare with Virtualmin Pro, the process is straightforward and...