For cPanel & WHM 11.44
You can use the
/usr/local/cpanel/dbmaptool script to grant ownership of databases and database users to a cPanel user via the command line.
How to call the
dbmaptool script with the following flags:
|The database type to which you wish to assign owners|
|The names of the databases that the cPanel user will own, separated by commas.|| |
|The names of the database users that the cPanel user will own, separated by commas.|
The system treats each flag individually. If you pass an invalid value with a flag, the script will fail.
For example, if you wish to grant ownership of the
db1 MySQL® database with the
virt1 database user to the
user1 cPanel user, run the following command:
If the script is successful, you will not receive confirmation from the command line.