import-database

Adds an existing database to a virtual server This command finds a MySQL/MariaDB or PostgreSQL database that is not currently owned by any virtual server and associates it with the server specified with the --domain parameter. The database to import is set with the --type flag followed by either mysql or postgres , and the --name flag followed by a database name. You cannot import a DB that is owned by another domain, or has a special purpose like the mysql or template0 databases.

Adds an existing database to a virtual server#

This command finds a MySQL/MariaDB or PostgreSQL database that is not currently owned by any virtual server and associates it with the server specified with the --domain parameter.

The database to import is set with the --type flag followed by either mysql or postgres , and the --name flag followed by a database name. You cannot import a DB that is owned by another domain, or has a special purpose like the mysql or template0 databases.

Command line help#

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

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

  • virtualmin, domain, database, mysql, mariadb, postgresql, command line, import
  • 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...