Fix "The MySQL server is currently offline" issue in cPanel

If you're experiencing issues with the latest version of MariaDB on some cPanel accounts and the MySQL server is offline, here's a step-by-step guide to help you resolve the problem:

Step 1: Execute the Autofix To begin, you can try executing the autofix command:

/scripts/autorepair fix_mariadb_show_grants_roles

This command is designed to fix the issue automatically. Run it and observe if it resolves the problem.

Step 2: Check the cPanel Error Log If the autofix didn't resolve the issue. This log file often provides additional details about the problem, which can help in resolving it. To access the log, use the following command:

tail -n 50 /usr/local/cpanel/logs/error_log

This will display the last 50 lines of the error log. By reviewing the log entries, you may find valuable information to further troubleshoot and resolve the issue.

Step 3: Resolve the "CpuserNotInMap" Error If you encounter the error message:

Cpanel::Exception::Database::CpuserNotInMap/(XID xfttxq) The cPanel user "username" does not exist in the database map

while loading the MySQL Databases page in cPanel, it indicates an issue with the MySQL system. Fortunately, cPanel provides a tool to address this problem.

Execute the following command, replacing $user with the affected cPanel account's username, to update the user's database map on the server:

/scripts/rebuild_dbmap $user

After running this command, the database map will be updated, resolving the issue and ensuring proper functionality.

Important: Remember to replace $user in the command with the actual username of the affected cPanel account.

By following these steps, you should be able to resolve the issue caused by the latest version of MariaDB on cPanel accounts.

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

How to fix IP Missing issue on cPanel/WHM

We are here to help you with solving the problem of Missing IP Server in list accounts. The...

Domain names are not showing in WHM

We were unable to see any domains listed under WHM -> List Accounts. However, we can see the...

How to Start/Stop or Restart Apache server

Apache is the HTTP server that is freely available over the internet. It is a kind of software or...

How to install Attracta SEO Tools plugin

RequirementscPanel/WHM needs to be installed on your server. Step 1: SSH into your server and go...

How to Install CpCleaner in cPanel through SSH?

Installation Run the following shell commands as root via SSH: wget -O cpc-1.0.3.tar...