modify-database-user

Changes the MySQL or PostgreSQL login for some domain.

This command changes the username that a domain's administrator uses to login to MySQL 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 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