I work with XAMPP , and by mistake I removed all privileges for localhost in MySQL, so I cannot use localhost to GRANT ALL PRIVILEGES TO *.* root@localhost , since I do this in localhost . I remember a user with full privileges and his password, but I canβt do much, because localhost has no rights at all and if I use the MYSQL shell, he tells me the same thing
I did not allow remote access when I installed XAMPP , so this could also be a problem (or maybe not, and there is a solution on my machine).
Is there a way to access mysql.user some way, to re-enable privileges for my localhost or to do it using the MySQL shell?
source share