~ubuntu-branches/ubuntu/trusty/mysql-5.6/trusty

« back to all changes in this revision

Viewing changes to mysql-test/suite/funcs_1/datadict/tables1.inc

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-12 11:54:27 UTC
  • Revision ID: package-import@ubuntu.com-20140212115427-oq6tfsqxl1wuwehi
Tags: upstream-5.6.15
ImportĀ upstreamĀ versionĀ 5.6.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# suite/funcs_1/datadict/tables1.inc
 
2
#
 
3
# Auxiliary script to be sourced by
 
4
#    is_tables_mysql.test
 
5
#    is_tables_mysql_embedded.test
 
6
#    is_tables_is.test
 
7
#
 
8
# Author:
 
9
# 2008-01-23 mleich WL#4203 Reorganize and fix the data dictionary tests of
 
10
#                           testsuite funcs_1
 
11
#                   Create this script based on older scripts and new code.
 
12
#
 
13
 
 
14
--disable_warnings
 
15
DROP DATABASE IF EXISTS test1;
 
16
--enable_warnings
 
17
CREATE DATABASE test1;
 
18
 
 
19
--source suite/funcs_1/datadict/tables2.inc
 
20
 
 
21
# Create a low privileged user.
 
22
# Note: The database test1 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 test1.* TO testuser1@localhost;
 
28
 
 
29
--echo # Establish connection testuser1 (user=testuser1)
 
30
--replace_result $MASTER_MYPORT MYSQL_PORT $MASTER_MYSOCK MYSQL_SOCK
 
31
connect (testuser1,localhost,testuser1,,test1);
 
32
--source suite/funcs_1/datadict/tables2.inc
 
33
 
 
34
--echo # Switch to connection default and close connection testuser1
 
35
connection default;
 
36
disconnect testuser1;
 
37
DROP USER testuser1@localhost;
 
38
DROP DATABASE test1;