| 1 |
DROP DATABASE IF EXISTS db_datadict; |
| 2 |
CREATE DATABASE db_datadict; |
| 3 |
DROP USER testuser1@localhost; |
| 4 |
CREATE USER testuser1@localhost; |
| 5 |
GRANT SELECT ON db_datadict.* TO testuser1@localhost; |
| 6 |
SELECT * FROM information_schema.table_constraints |
| 7 |
WHERE table_schema = 'information_schema' AND table_name != 'ndb_binlog_index' |
| 8 |
ORDER BY table_schema,table_name,constraint_name COLLATE utf8_general_ci; |
| 9 |
CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME TABLE_SCHEMA TABLE_NAME CONSTRAINT_TYPE ENFORCED |
| 10 |
# Establish connection testuser1 (user=testuser1) |
| 11 |
SELECT * FROM information_schema.table_constraints |
| 12 |
WHERE table_schema = 'information_schema' AND table_name != 'ndb_binlog_index' |
| 13 |
ORDER BY table_schema,table_name,constraint_name COLLATE utf8_general_ci; |
| 14 |
CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME TABLE_SCHEMA TABLE_NAME CONSTRAINT_TYPE ENFORCED |
| 15 |
# Switch to connection default and close connection testuser1 |
| 16 |
DROP USER testuser1@localhost; |
| 17 |
DROP DATABASE db_datadict; |