Somebody ran into the following error message trying to query the
innodb_sys_foreign and
innodb_sys_foreign_cols tables from the
information_schema database:
ERROR 1227 (42000): Access denied; you need (at least one of) the PROCESS privilege(s) for this operation
|
It’s easy to fix the error, except you must grant the
PROCESS privilege. It’s a global privilege and it
should only be granted to super users. You grant the privilege
global PROCESS privilege to the student
user with the following command:
GRANT PROCESS ON *.* TO student; |
Then, you can run this query to resolve foreign keys to their referenced primary key column values:
SELECT SUBSTRING_INDEX(f.id,'/',-1) AS … |