[mysql] Access denied for user 'root'@'localhost' while attempting to grant privileges. How do I grant privileges?

I run at this when I tried to add privileges to performance_schema, which is mysql bug http://bugs.mysql.com/bug.php?id=44898 (workaround to add --single-transaction).