'How to repaire global_priv mysql
When I try to add User account in phpmyadmin then the error appear
Error Message:
Index for table 'global_priv' is corrupt; try to repair it
Solution 1:[1]
select table mysql and then type this query CHECK TABLE global_priv
Solution 2:[2]
I had to reinstall the XAMPP and the problem has been solved
Solution 3:[3]
I´m using HeidiSQL. Select mysql Database. Right Click, Click on Maintenance Select Operation = Repair. Click on Execute.
That solved the problem for me.
Solution 4:[4]
In my case, mysql doesn't start because of this table corruption, so one cannot run any query on it.
Try to copy table files from initial backup.
Table files are \data\mysql\global_priv.*, move them aside.
Table files backup are \backup\mysql\global_priv.*, copy them to data\mysql.
This should be enough to start mysql service, but all custom global privileges will be lost.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Fauzi |
Solution 2 | Imran Khan Safi |
Solution 3 | Luis Lau |
Solution 4 | Vladimir Nikotin |