Introduction
If a database is not showing in a user's account, such as when the database was added through the command line, the dbmap
script can be used to map the database to the user's account.
Procedure
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Run the
dbmap
script./usr/local/cpanel/bin/dbmaptool $cpuser --dbs '$dbname' --type '$dbtype'
Please note that "$csuser," "$dbname," and "$dbtype" must be replaced with the cPanel user's username and database name and the type of database (mysql or pg), respectively.
Comments
0 comments
Article is closed for comments.