1
# suite/funcs_1/datadict/tables1.inc
3
# Auxiliary script to be sourced by
6
# is_tables_<engine>.test
9
# 2008-01-23 mleich WL#4203 Reorganize and fix the data dictionary tests of
11
# Create this script based on older scripts and new code.
15
DROP DATABASE IF EXISTS db_datadict;
17
CREATE DATABASE db_datadict;
19
--source suite/funcs_1/datadict/tables2.inc
21
# Create a low privileged user.
22
# Note: The database db_datadict is just a "home" for the low privileged user
23
# and not in the focus of testing.
24
--error 0,ER_CANNOT_USER
25
DROP USER testuser1@localhost;
26
CREATE USER testuser1@localhost;
27
GRANT SELECT ON db_datadict.* TO testuser1@localhost;
29
--echo # Establish connection testuser1 (user=testuser1)
30
--replace_result $MASTER_MYPORT MYSQL_PORT $MASTER_MYSOCK MYSQL_SOCK
31
connect (testuser1,localhost,testuser1,,db_datadict);
32
--source suite/funcs_1/datadict/tables2.inc
34
--echo # Switch to connection default and close connection testuser1
37
DROP USER testuser1@localhost;
38
DROP DATABASE db_datadict;