Table is crashed and last repair failed"' for './mysql/global_priv'

Operating System & Version
cloudlinux 8/almalinux 8
cPanel & WHM Version
112.0.5

Naila

Active Member
Jun 20, 2017
31
0
56
Indonesia
cPanel Access Level
Root Administrator
I have a problem with the mariaDB database on my server. The problem that I experienced was that all database usernames lost access, including root. This issue occurs when the power goes out and the server shuts down unexpectedly.

The first problem that is visible in the mysql err log is

[ERROR] Table is crashed and last repair failed"' for './mysql/global_priv'
[Warning] Access denied for user 'root'@'localhost' (using password: YES)
[Warning] Access denied for user 'usercpanel1'@'localhost' to database 'cccc'
[Warning] Access denied for user 'usercpanel2'@'localhost' to database 'bbbb'
[Warning] Access denied for user 'usercpanel3'@'localhost' to database 'aaaa'


Next I noticed this issue after adding the skip-grant-tables line in my.cnf to force mysql start, because previously mysql wont start. After some time I also saw this err log

[ERROR] mariadbd: Got error '144 "Table is crashed and last repair failed"' for './mysql/proc'


If I remove skip-grant-tables from my.cnf, access to database will fail on all websites.


10.6.14-MariaDB
Whm 112.0.5

I hope someone can help me
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,570
2,612
363
cPanel Access Level
Root Administrator