While performing database operations through cPanel, you may encounter one of the following errors:
or
These errors typically occur when cPanel fails to read the MySQL database configuration or when data corruption/missing entries exist.
To fix this issue, you can use the
This command allows cPanel to re-detect all database users and their associated databases.
or
Bash:
The database server is currently offline.
Bash:
adminbin Cpanel/cpmysql/DBCACHE: exit 255
These errors typically occur when cPanel fails to read the MySQL database configuration or when data corruption/missing entries exist.
To fix this issue, you can use the
/scripts/rebuild_dbmap command to rebuild cPanel’s database mapping (DB Map).🔧 Step-by-Step Solution
✅ 1. Connect to the Server via SSH as root
✅ 2. Rebuild the cPanel User’s Database Map
In the command below, replace “Username” with your actual cPanel account username:
Bash:
/scripts/rebuild_dbmap Username
🔁 Alternative: Restart the MySQL Service if Needed
If the issue persists after rebuilding the DB map, try restarting the MySQL service:
Bash:
service mysql restart
Bash:
systemctl restart mysqld