Introduction
The cPanel interface will show databases deleted outside of cPanel, or not show databases created outside of cPanel. To correct this, the user's database map needs to be rebuilt. This article provides the steps to rebuild the user's database map with the rebuild_dbmap script.
Procedure
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Run the
rebuild_dbmapscript with the--noopflag to preview the databases that will be configured in the user's database map./usr/local/cpanel/scripts/rebuild_dbmap --noop $username
Please note that "$username" must be replaced with the cPanel user's username. - Run the script without the
--noopflag to rebuild the user's database map./usr/local/cpanel/scripts/rebuild_dbmap $username
Please note that "$username" must be replaced with the cPanel user's username. - Update cPanel's database cache.
/usr/local/cpanel/scripts/update_db_cache
Comments
0 comments
Article is closed for comments.