modify-database-user

Changes the MySQL/MariaDB or PostgreSQL login for some domain This command changes the username that a domain’s administrator uses to login to MySQL/MariaDB or PostgreSQL. The domain is selected with the --domain flag, the database type with --type and the new login is set with the --user flag. Because this operation will rename the actual MySQL/MariaDB or PostgreSQL user, any application or scripts in the virtual server’s directory that have the database login in their configuration files will be broken until those configurations are updated with the new username.

Changes the MySQL/MariaDB or PostgreSQL login for some domain#

This command changes the username that a domain’s administrator uses to login to MySQL/MariaDB or PostgreSQL. The domain is selected with the --domain flag, the database type with --type and the new login is set with the --user flag.

Because this operation will rename the actual MySQL/MariaDB or PostgreSQL user, any application or scripts in the virtual server’s directory that have the database login in their configuration files will be broken until those configurations are updated with the new username.

Command line help#

virtualmin modify-database-user --domain name
 --type mysql|postgres
 --user new-name

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

  • virtualmin, domain, database, mysql, mariadb, postgresql, user, log, update, command line, script, modify
  • 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...