how to reset the perms on root mysql code example Example: mysql root permission denied lost GRANT ALL ON *.* TO 'user'@'localhost' with GRANT OPTION;