| 1 |
# Query rewrite plugin was installed. |
| 2 |
INSERT INTO query_rewrite.rewrite_rules ( pattern, replacement ) |
| 3 |
VALUES ( 'SELECT "original"', 'SELECT "rewritten"' ); |
| 4 |
CALL query_rewrite.flush_rewrite_rules(); |
| 5 |
CREATE USER mysqluser1@localhost; |
| 6 |
INSERT INTO query_rewrite.rewrite_rules ( pattern ) VALUES ( '' ); |
| 7 |
ERROR 42000: INSERT command denied to user 'mysqluser1'@'localhost' for table 'rewrite_rules' |
| 8 |
INSERT INTO query_rewrite.rewrite_rules ( replacement ) VALUES ( '' ); |
| 9 |
ERROR 42000: INSERT command denied to user 'mysqluser1'@'localhost' for table 'rewrite_rules' |
| 10 |
INSERT INTO query_rewrite.rewrite_rules ( enabled ) VALUES ( '' ); |
| 11 |
ERROR 42000: INSERT command denied to user 'mysqluser1'@'localhost' for table 'rewrite_rules' |
| 12 |
INSERT INTO query_rewrite.rewrite_rules ( message ) VALUES ( '' ); |
| 13 |
ERROR 42000: INSERT command denied to user 'mysqluser1'@'localhost' for table 'rewrite_rules' |
| 14 |
SELECT pattern FROM query_rewrite.rewrite_rules; |
| 15 |
ERROR 42000: SELECT command denied to user 'mysqluser1'@'localhost' for table 'rewrite_rules' |
| 16 |
SELECT replacement FROM query_rewrite.rewrite_rules; |
| 17 |
ERROR 42000: SELECT command denied to user 'mysqluser1'@'localhost' for table 'rewrite_rules' |
| 18 |
SELECT enabled FROM query_rewrite.rewrite_rules; |
| 19 |
ERROR 42000: SELECT command denied to user 'mysqluser1'@'localhost' for table 'rewrite_rules' |
| 20 |
SELECT message FROM query_rewrite.rewrite_rules; |
| 21 |
ERROR 42000: SELECT command denied to user 'mysqluser1'@'localhost' for table 'rewrite_rules' |
| 22 |
UPDATE query_rewrite.rewrite_rules SET pattern = ''; |
| 23 |
ERROR 42000: UPDATE command denied to user 'mysqluser1'@'localhost' for table 'rewrite_rules' |
| 24 |
UPDATE query_rewrite.rewrite_rules SET replacement = ''; |
| 25 |
ERROR 42000: UPDATE command denied to user 'mysqluser1'@'localhost' for table 'rewrite_rules' |
| 26 |
UPDATE query_rewrite.rewrite_rules SET enabled = ''; |
| 27 |
ERROR 42000: UPDATE command denied to user 'mysqluser1'@'localhost' for table 'rewrite_rules' |
| 28 |
UPDATE query_rewrite.rewrite_rules SET message = ''; |
| 29 |
ERROR 42000: UPDATE command denied to user 'mysqluser1'@'localhost' for table 'rewrite_rules' |
| 30 |
CALL query_rewrite.flush_rewrite_rules(); |
| 31 |
ERROR 42000: execute command denied to user 'mysqluser1'@'localhost' for routine 'query_rewrite.flush_rewrite_rules' |
| 32 |
SELECT 'original'; |
| 33 |
rewritten |
| 34 |
rewritten |
| 35 |
Warnings: |
| 36 |
Note 1105 Query 'SELECT 'original'' rewritten to 'SELECT "rewritten"' by a query rewrite plugin |
| 37 |
DROP USER mysqluser1@localhost; |
| 38 |
Warnings: |
| 39 |
Warning 1620 Plugin is busy and will be uninstalled on shutdown |
| 40 |
# Query rewrite plugin was queued for uninstalling. |