It might be you are trying to grant access to qq@'%', but you are connected as root@localhost.
So, try granting to user@'localhost', not '%'.