DROP DATABASE IF EXISTS db_datadict; CREATE DATABASE db_datadict; DROP USER testuser1@localhost; CREATE USER testuser1@localhost; GRANT SELECT ON db_datadict.* TO testuser1@localhost; SELECT * FROM information_schema.table_constraints WHERE table_schema = 'information_schema' ORDER BY table_schema,table_name,constraint_name; CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME TABLE_SCHEMA TABLE_NAME CONSTRAINT_TYPE connect testuser1,localhost,testuser1,,db_datadict; SELECT * FROM information_schema.table_constraints WHERE table_schema = 'information_schema' ORDER BY table_schema,table_name,constraint_name; CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME TABLE_SCHEMA TABLE_NAME CONSTRAINT_TYPE connection default; disconnect testuser1; DROP USER testuser1@localhost; DROP DATABASE db_datadict;