If the database map is corrupt for a cPanel user, you can use the
/scripts/rebuild_dbmap script to rebuild that user's database map.
rebuild_dbmap script with the following flags:
|Display the results of a test run of the function, but do not perform any changes.|
|Return help information.|
|The cPanel user for whom to rebuild map information.|
The system treats each flag individually. If you pass an invalid value with a flag, the script will fail.
For example, to rebuild the database map information for the
user1 cPanel user, run the following command:
If the script succeeds, you will receive confirmation from the command line that resembles the following example:
./rebuild_dbmap example Reading access rights for the cPanel user "example" from live data: MariaDB/MySQL ... PostgreSQL ... Done. Old DB map file backed up at: /var/cpanel/databases/example_backup_2015-07-14_17:17:49_31314.json Old DB map file removed. Saving: MariaDB/MySQL ... PostgreSQL ... Done! Rebuild complete.