I recently updated my MySQL to 5.7, whenever I try to mysqldump a table that a user has all permissions on I get the error:
mysqldump: Couldn't execute 'SHOW VARIABLES LIKE 'gtid\_mode'': SELECT command denied to user 'testuser'@'localhost' for table 'session_variables' (1142)
If I try to dump as root, it works fine.
How can I fix this error?