Merge next-mr -> next-4284-merge.
This commit is contained in:
commit
89269e5142
@ -1,4 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Copyright (C) 2009 Sun Microsystems, Inc
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; version 2 of the License.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
#
|
||||
# This script's purpose is to update the automake/autoconf helper scripts and
|
||||
# to run a plain "configure" without any special compile flags. Only features
|
||||
@ -61,6 +77,7 @@ fi
|
||||
# Remember that configure restricts the man pages to the configured features !
|
||||
./configure \
|
||||
--with-embedded-server \
|
||||
--with-perfschema \
|
||||
--with-ndbcluster
|
||||
$gmake
|
||||
|
||||
|
@ -40,9 +40,9 @@ extern "C" {
|
||||
|
||||
typedef struct unicase_info_st
|
||||
{
|
||||
uint16 toupper;
|
||||
uint16 tolower;
|
||||
uint16 sort;
|
||||
uint32 toupper;
|
||||
uint32 tolower;
|
||||
uint32 sort;
|
||||
} MY_UNICASE_INFO;
|
||||
|
||||
|
||||
@ -439,6 +439,14 @@ extern size_t my_caseup_mb(CHARSET_INFO *, char *src, size_t srclen,
|
||||
char *dst, size_t dstlen);
|
||||
extern size_t my_casedn_mb(CHARSET_INFO *, char *src, size_t srclen,
|
||||
char *dst, size_t dstlen);
|
||||
extern size_t my_caseup_mb_varlen(CHARSET_INFO *, char *src, size_t srclen,
|
||||
char *dst, size_t dstlen);
|
||||
extern size_t my_casedn_mb_varlen(CHARSET_INFO *, char *src, size_t srclen,
|
||||
char *dst, size_t dstlen);
|
||||
extern size_t my_caseup_ujis(CHARSET_INFO *, char *src, size_t srclen,
|
||||
char *dst, size_t dstlen);
|
||||
extern size_t my_casedn_ujis(CHARSET_INFO *, char *src, size_t srclen,
|
||||
char *dst, size_t dstlen);
|
||||
extern int my_strcasecmp_mb(CHARSET_INFO * cs,const char *, const char *);
|
||||
|
||||
int my_wildcmp_mb(CHARSET_INFO *,
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2000-2006 MySQL AB
|
||||
# Copyright (C) 2000-2006 MySQL AB, 2008-2009 Sun Microsystems, Inc.
|
||||
#
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Library General Public
|
||||
@ -75,6 +75,8 @@ EXTRA_DIST = README \
|
||||
|
||||
# List of directories containing test + result files and the
|
||||
# related test data files that should be copied
|
||||
# If you want to add a new suite, please check DEFAULT_SUITES in
|
||||
# mysql-test-run.pl.
|
||||
TEST_DIRS = t r include std_data std_data/parts collections \
|
||||
std_data/ndb_backup50 std_data/ndb_backup51 \
|
||||
std_data/ndb_backup51_data_be std_data/ndb_backup51_data_le \
|
||||
@ -100,7 +102,9 @@ TEST_DIRS = t r include std_data std_data/parts collections \
|
||||
suite/rpl_ndb suite/rpl_ndb/t suite/rpl_ndb/r \
|
||||
suite/parts suite/parts/t suite/parts/r suite/parts/inc \
|
||||
suite/innodb suite/innodb/t suite/innodb/r suite/innodb/include \
|
||||
suite/sys_vars suite/sys_vars/t suite/sys_vars/inc suite/sys_vars/r
|
||||
suite/sys_vars suite/sys_vars/t suite/sys_vars/inc suite/sys_vars/r \
|
||||
suite/perfschema suite/perfschema/t suite/perfschema/r \
|
||||
suite/perfschema/include
|
||||
|
||||
# Used by dist-hook and install-data-local to copy all
|
||||
# test files into either dist or install directory
|
||||
|
@ -1,3 +1,18 @@
|
||||
# Copyright (C) 2009 Sun Microsystems, Inc
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; version 2 of the License.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
# Use default setting for mysqld processes
|
||||
!include default_mysqld.cnf
|
||||
!include default_client.cnf
|
||||
@ -9,6 +24,8 @@
|
||||
|
||||
log-bin= master-bin
|
||||
|
||||
# Run tests with the performance schema instrumentation
|
||||
loose-enable-performance-schema
|
||||
|
||||
[mysqlbinlog]
|
||||
disable-force-if-open
|
||||
|
@ -1,3 +1,18 @@
|
||||
# Copyright (C) 2009 Sun Microsystems, Inc
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; version 2 of the License.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
# Default values that applies to all MySQL Servers
|
||||
[mysqld]
|
||||
open-files-limit= 1024
|
||||
@ -26,3 +41,6 @@ slave-net-timeout=120
|
||||
|
||||
log-bin=mysqld-bin
|
||||
|
||||
# Run tests with the performance schema instrumentation
|
||||
loose-enable-performance-schema
|
||||
|
||||
|
@ -1,6 +1,21 @@
|
||||
#!/usr/bin/perl
|
||||
# -*- cperl -*-
|
||||
|
||||
# Copyright (C) 2009 Sun Microsystems, Inc
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; version 2 of the License.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
#
|
||||
##############################################################################
|
||||
#
|
||||
@ -128,7 +143,9 @@ my $path_config_file; # The generated config file, var/my.cnf
|
||||
# executables will be used by the test suite.
|
||||
our $opt_vs_config = $ENV{'MTR_VS_CONFIG'};
|
||||
|
||||
my $DEFAULT_SUITES= "main,sys_vars,binlog,federated,rpl,rpl_ndb,ndb,innodb";
|
||||
# If you add a new suite, please check TEST_DIRS in Makefile.am.
|
||||
#
|
||||
my $DEFAULT_SUITES= "main,sys_vars,binlog,federated,rpl,rpl_ndb,ndb,innodb,perfschema";
|
||||
my $opt_suites;
|
||||
|
||||
our $opt_verbose= 0; # Verbose output, enable with --verbose
|
||||
|
@ -3,6 +3,7 @@ Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
performance_schema
|
||||
test
|
||||
show tables in mysql;
|
||||
Tables_in_mysql
|
||||
|
@ -277,3 +277,281 @@ hex(a)
|
||||
EE00
|
||||
drop table t1;
|
||||
End of 5.0 tests
|
||||
#
|
||||
# Start of 5.5 tests
|
||||
#
|
||||
#
|
||||
# Testing WL#4583 Case conversion in Asian character sets
|
||||
#
|
||||
SET NAMES utf8;
|
||||
SET collation_connection=big5_chinese_ci;
|
||||
CREATE TABLE t1 (b VARCHAR(2));
|
||||
INSERT INTO t1 VALUES ('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7');
|
||||
INSERT INTO t1 VALUES ('8'),('9'),('A'),('B'),('C'),('D'),('E'),('F');
|
||||
CREATE TEMPORARY TABLE head AS SELECT concat(b1.b, b2.b) AS head FROM t1 b1, t1 b2;
|
||||
CREATE TEMPORARY TABLE tail AS SELECT concat(b1.b, b2.b) AS tail FROM t1 b1, t1 b2;
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 AS
|
||||
SELECT concat(head, tail) AS code, ' ' AS a
|
||||
FROM head, tail
|
||||
WHERE (head BETWEEN '80' AND 'FF') AND (tail BETWEEN '20' AND 'FF')
|
||||
ORDER BY head, tail;
|
||||
DROP TEMPORARY TABLE head, tail;
|
||||
SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`code` varchar(8) DEFAULT NULL,
|
||||
`a` varchar(1) CHARACTER SET big5 NOT NULL DEFAULT ''
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
SELECT COUNT(*) FROM t1;
|
||||
COUNT(*)
|
||||
28672
|
||||
UPDATE t1 SET a=unhex(code) ORDER BY code;
|
||||
Warnings:
|
||||
Warning 1366 Incorrect string value: '\x80 ' for column 'a' at row 1
|
||||
Warning 1366 Incorrect string value: '\x80!' for column 'a' at row 2
|
||||
Warning 1366 Incorrect string value: '\x80"' for column 'a' at row 3
|
||||
Warning 1366 Incorrect string value: '\x80#' for column 'a' at row 4
|
||||
Warning 1366 Incorrect string value: '\x80$' for column 'a' at row 5
|
||||
Warning 1366 Incorrect string value: '\x80%' for column 'a' at row 6
|
||||
Warning 1366 Incorrect string value: '\x80&' for column 'a' at row 7
|
||||
Warning 1366 Incorrect string value: '\x80'' for column 'a' at row 8
|
||||
Warning 1366 Incorrect string value: '\x80(' for column 'a' at row 9
|
||||
Warning 1366 Incorrect string value: '\x80)' for column 'a' at row 10
|
||||
Warning 1366 Incorrect string value: '\x80*' for column 'a' at row 11
|
||||
Warning 1366 Incorrect string value: '\x80+' for column 'a' at row 12
|
||||
Warning 1366 Incorrect string value: '\x80,' for column 'a' at row 13
|
||||
Warning 1366 Incorrect string value: '\x80-' for column 'a' at row 14
|
||||
Warning 1366 Incorrect string value: '\x80.' for column 'a' at row 15
|
||||
Warning 1366 Incorrect string value: '\x80/' for column 'a' at row 16
|
||||
Warning 1366 Incorrect string value: '\x800' for column 'a' at row 17
|
||||
Warning 1366 Incorrect string value: '\x801' for column 'a' at row 18
|
||||
Warning 1366 Incorrect string value: '\x802' for column 'a' at row 19
|
||||
Warning 1366 Incorrect string value: '\x803' for column 'a' at row 20
|
||||
Warning 1366 Incorrect string value: '\x804' for column 'a' at row 21
|
||||
Warning 1366 Incorrect string value: '\x805' for column 'a' at row 22
|
||||
Warning 1366 Incorrect string value: '\x806' for column 'a' at row 23
|
||||
Warning 1366 Incorrect string value: '\x807' for column 'a' at row 24
|
||||
Warning 1366 Incorrect string value: '\x808' for column 'a' at row 25
|
||||
Warning 1366 Incorrect string value: '\x809' for column 'a' at row 26
|
||||
Warning 1366 Incorrect string value: '\x80:' for column 'a' at row 27
|
||||
Warning 1366 Incorrect string value: '\x80;' for column 'a' at row 28
|
||||
Warning 1366 Incorrect string value: '\x80<' for column 'a' at row 29
|
||||
Warning 1366 Incorrect string value: '\x80=' for column 'a' at row 30
|
||||
Warning 1366 Incorrect string value: '\x80>' for column 'a' at row 31
|
||||
Warning 1366 Incorrect string value: '\x80?' for column 'a' at row 32
|
||||
Warning 1366 Incorrect string value: '\x80@' for column 'a' at row 33
|
||||
Warning 1366 Incorrect string value: '\x80A' for column 'a' at row 34
|
||||
Warning 1366 Incorrect string value: '\x80B' for column 'a' at row 35
|
||||
Warning 1366 Incorrect string value: '\x80C' for column 'a' at row 36
|
||||
Warning 1366 Incorrect string value: '\x80D' for column 'a' at row 37
|
||||
Warning 1366 Incorrect string value: '\x80E' for column 'a' at row 38
|
||||
Warning 1366 Incorrect string value: '\x80F' for column 'a' at row 39
|
||||
Warning 1366 Incorrect string value: '\x80G' for column 'a' at row 40
|
||||
Warning 1366 Incorrect string value: '\x80H' for column 'a' at row 41
|
||||
Warning 1366 Incorrect string value: '\x80I' for column 'a' at row 42
|
||||
Warning 1366 Incorrect string value: '\x80J' for column 'a' at row 43
|
||||
Warning 1366 Incorrect string value: '\x80K' for column 'a' at row 44
|
||||
Warning 1366 Incorrect string value: '\x80L' for column 'a' at row 45
|
||||
Warning 1366 Incorrect string value: '\x80M' for column 'a' at row 46
|
||||
Warning 1366 Incorrect string value: '\x80N' for column 'a' at row 47
|
||||
Warning 1366 Incorrect string value: '\x80O' for column 'a' at row 48
|
||||
Warning 1366 Incorrect string value: '\x80P' for column 'a' at row 49
|
||||
Warning 1366 Incorrect string value: '\x80Q' for column 'a' at row 50
|
||||
Warning 1366 Incorrect string value: '\x80R' for column 'a' at row 51
|
||||
Warning 1366 Incorrect string value: '\x80S' for column 'a' at row 52
|
||||
Warning 1366 Incorrect string value: '\x80T' for column 'a' at row 53
|
||||
Warning 1366 Incorrect string value: '\x80U' for column 'a' at row 54
|
||||
Warning 1366 Incorrect string value: '\x80V' for column 'a' at row 55
|
||||
Warning 1366 Incorrect string value: '\x80W' for column 'a' at row 56
|
||||
Warning 1366 Incorrect string value: '\x80X' for column 'a' at row 57
|
||||
Warning 1366 Incorrect string value: '\x80Y' for column 'a' at row 58
|
||||
Warning 1366 Incorrect string value: '\x80Z' for column 'a' at row 59
|
||||
Warning 1366 Incorrect string value: '\x80[' for column 'a' at row 60
|
||||
Warning 1366 Incorrect string value: '\x80\' for column 'a' at row 61
|
||||
Warning 1366 Incorrect string value: '\x80]' for column 'a' at row 62
|
||||
Warning 1366 Incorrect string value: '\x80^' for column 'a' at row 63
|
||||
Warning 1366 Incorrect string value: '\x80_' for column 'a' at row 64
|
||||
SELECT COUNT(*) FROM t1 WHERE a<>'';
|
||||
COUNT(*)
|
||||
13973
|
||||
SELECT code, hex(upper(a)), hex(lower(a)),a, upper(a), lower(a) FROM t1 WHERE hex(a)<>hex(upper(a)) OR hex(a)<>hex(lower(a));
|
||||
code hex(upper(a)) hex(lower(a)) a upper(a) lower(a)
|
||||
A2CF A2CF A2E9 A A a
|
||||
A2D0 A2D0 A2EA B B b
|
||||
A2D1 A2D1 A2EB C C c
|
||||
A2D2 A2D2 A2EC D D d
|
||||
A2D3 A2D3 A2ED E E e
|
||||
A2D4 A2D4 A2EE F F f
|
||||
A2D5 A2D5 A2EF G G g
|
||||
A2D6 A2D6 A2F0 H H h
|
||||
A2D7 A2D7 A2F1 I I i
|
||||
A2D8 A2D8 A2F2 J J j
|
||||
A2D9 A2D9 A2F3 K K k
|
||||
A2DA A2DA A2F4 L L l
|
||||
A2DB A2DB A2F5 M M m
|
||||
A2DC A2DC A2F6 N N n
|
||||
A2DD A2DD A2F7 O O o
|
||||
A2DE A2DE A2F8 P P p
|
||||
A2DF A2DF A2F9 Q Q q
|
||||
A2E0 A2E0 A2FA R R r
|
||||
A2E1 A2E1 A2FB S S s
|
||||
A2E2 A2E2 A2FC T T t
|
||||
A2E3 A2E3 A2FD U U u
|
||||
A2E4 A2E4 A2FE V V v
|
||||
A2E5 A2E5 A340 W W w
|
||||
A2E6 A2E6 A341 X X x
|
||||
A2E7 A2E7 A342 Y Y y
|
||||
A2E8 A2E8 A343 Z Z z
|
||||
A2E9 A2CF A2E9 a A a
|
||||
A2EA A2D0 A2EA b B b
|
||||
A2EB A2D1 A2EB c C c
|
||||
A2EC A2D2 A2EC d D d
|
||||
A2ED A2D3 A2ED e E e
|
||||
A2EE A2D4 A2EE f F f
|
||||
A2EF A2D5 A2EF g G g
|
||||
A2F0 A2D6 A2F0 h H h
|
||||
A2F1 A2D7 A2F1 i I i
|
||||
A2F2 A2D8 A2F2 j J j
|
||||
A2F3 A2D9 A2F3 k K k
|
||||
A2F4 A2DA A2F4 l L l
|
||||
A2F5 A2DB A2F5 m M m
|
||||
A2F6 A2DC A2F6 n N n
|
||||
A2F7 A2DD A2F7 o O o
|
||||
A2F8 A2DE A2F8 p P p
|
||||
A2F9 A2DF A2F9 q Q q
|
||||
A2FA A2E0 A2FA r R r
|
||||
A2FB A2E1 A2FB s S s
|
||||
A2FC A2E2 A2FC t T t
|
||||
A2FD A2E3 A2FD u U u
|
||||
A2FE A2E4 A2FE v V v
|
||||
A340 A2E5 A340 w W w
|
||||
A341 A2E6 A341 x X x
|
||||
A342 A2E7 A342 y Y y
|
||||
A343 A2E8 A343 z Z z
|
||||
A344 A344 A35C Α Α α
|
||||
A345 A345 A35D Β Β β
|
||||
A346 A346 A35E Γ Γ γ
|
||||
A347 A347 A35F Δ Δ δ
|
||||
A348 A348 A360 Ε Ε ε
|
||||
A349 A349 A361 Ζ Ζ ζ
|
||||
A34A A34A A362 Η Η η
|
||||
A34B A34B A363 Θ Θ θ
|
||||
A34C A34C A364 Ι Ι ι
|
||||
A34D A34D A365 Κ Κ κ
|
||||
A34E A34E A366 Λ Λ λ
|
||||
A34F A34F A367 Μ Μ μ
|
||||
A350 A350 A368 Ν Ν ν
|
||||
A351 A351 A369 Ξ Ξ ξ
|
||||
A352 A352 A36A Ο Ο ο
|
||||
A353 A353 A36B Π Π π
|
||||
A354 A354 A36C Ρ Ρ ρ
|
||||
A355 A355 A36D Σ Σ σ
|
||||
A356 A356 A36E Τ Τ τ
|
||||
A357 A357 A36F Υ Υ υ
|
||||
A358 A358 A370 Φ Φ φ
|
||||
A359 A359 A371 Χ Χ χ
|
||||
A35A A35A A372 Ψ Ψ ψ
|
||||
A35B A35B A373 Ω Ω ω
|
||||
A35C A344 A35C α Α α
|
||||
A35D A345 A35D β Β β
|
||||
A35E A346 A35E γ Γ γ
|
||||
A35F A347 A35F δ Δ δ
|
||||
A360 A348 A360 ε Ε ε
|
||||
A361 A349 A361 ζ Ζ ζ
|
||||
A362 A34A A362 η Η η
|
||||
A363 A34B A363 θ Θ θ
|
||||
A364 A34C A364 ι Ι ι
|
||||
A365 A34D A365 κ Κ κ
|
||||
A366 A34E A366 λ Λ λ
|
||||
A367 A34F A367 μ Μ μ
|
||||
A368 A350 A368 ν Ν ν
|
||||
A369 A351 A369 ξ Ξ ξ
|
||||
A36A A352 A36A ο Ο ο
|
||||
A36B A353 A36B π Π π
|
||||
A36C A354 A36C ρ Ρ ρ
|
||||
A36D A355 A36D σ Σ σ
|
||||
A36E A356 A36E τ Τ τ
|
||||
A36F A357 A36F υ Υ υ
|
||||
A370 A358 A370 φ Φ φ
|
||||
A371 A359 A371 χ Χ χ
|
||||
A372 A35A A372 ψ Ψ ψ
|
||||
A373 A35B A373 ω Ω ω
|
||||
C7B1 C7B1 C7CC Д Д д
|
||||
C7B2 C7B2 C7CD Е Е е
|
||||
C7B3 C7B3 C7CE Ё Ё ё
|
||||
C7B4 C7B4 C7CF Ж Ж ж
|
||||
C7B5 C7B5 C7D0 З З з
|
||||
C7B6 C7B6 C7D1 И И и
|
||||
C7B7 C7B7 C7D2 Й Й й
|
||||
C7B8 C7B8 C7D3 К К к
|
||||
C7B9 C7B9 C7D4 Л Л л
|
||||
C7BA C7BA C7D5 М М м
|
||||
C7BB C7BB C7DC У У у
|
||||
C7BC C7BC C7DD Ф Ф ф
|
||||
C7BD C7BD C7DE Х Х х
|
||||
C7BE C7BE C7DF Ц Ц ц
|
||||
C7BF C7BF C7E0 Ч Ч ч
|
||||
C7C0 C7C0 C7E1 Ш Ш ш
|
||||
C7C1 C7C1 C7E2 Щ Щ щ
|
||||
C7C2 C7C2 C7E3 Ъ Ъ ъ
|
||||
C7C3 C7C3 C7E4 Ы Ы ы
|
||||
C7C4 C7C4 C7E5 Ь Ь ь
|
||||
C7C5 C7C5 C7E6 Э Э э
|
||||
C7C6 C7C6 C7E7 Ю Ю ю
|
||||
C7C7 C7C7 C7E8 Я Я я
|
||||
C7CC C7B1 C7CC д Д д
|
||||
C7CD C7B2 C7CD е Е е
|
||||
C7CE C7B3 C7CE ё Ё ё
|
||||
C7CF C7B4 C7CF ж Ж ж
|
||||
C7D0 C7B5 C7D0 з З з
|
||||
C7D1 C7B6 C7D1 и И и
|
||||
C7D2 C7B7 C7D2 й Й й
|
||||
C7D3 C7B8 C7D3 к К к
|
||||
C7D4 C7B9 C7D4 л Л л
|
||||
C7D5 C7BA C7D5 м М м
|
||||
C7DC C7BB C7DC у У у
|
||||
C7DD C7BC C7DD ф Ф ф
|
||||
C7DE C7BD C7DE х Х х
|
||||
C7DF C7BE C7DF ц Ц ц
|
||||
C7E0 C7BF C7E0 ч Ч ч
|
||||
C7E1 C7C0 C7E1 ш Ш ш
|
||||
C7E2 C7C1 C7E2 щ Щ щ
|
||||
C7E3 C7C2 C7E3 ъ Ъ ъ
|
||||
C7E4 C7C3 C7E4 ы Ы ы
|
||||
C7E5 C7C4 C7E5 ь Ь ь
|
||||
C7E6 C7C5 C7E6 э Э э
|
||||
C7E7 C7C6 C7E7 ю Ю ю
|
||||
C7E8 C7C7 C7E8 я Я я
|
||||
SELECT * FROM t1
|
||||
WHERE HEX(CAST(LOWER(a) AS CHAR CHARACTER SET utf8)) <>
|
||||
HEX(LOWER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
|
||||
code a
|
||||
A2B9 Ⅰ
|
||||
A2BA Ⅱ
|
||||
A2BB Ⅲ
|
||||
A2BC Ⅳ
|
||||
A2BD Ⅴ
|
||||
A2BE Ⅵ
|
||||
A2BF Ⅶ
|
||||
A2C0 Ⅷ
|
||||
A2C1 Ⅸ
|
||||
A2C2 Ⅹ
|
||||
SELECT * FROM t1
|
||||
WHERE HEX(CAST(UPPER(a) AS CHAR CHARACTER SET utf8)) <>
|
||||
HEX(UPPER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
|
||||
code a
|
||||
C7C8 а
|
||||
C7C9 б
|
||||
C7CA в
|
||||
C7CB г
|
||||
C7D6 н
|
||||
C7D7 о
|
||||
C7D8 п
|
||||
C7D9 р
|
||||
C7DA с
|
||||
C7DB т
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# End of 5.5 tests
|
||||
#
|
||||
|
@ -55,3 +55,331 @@ hex(a) hex(lower(a)) hex(upper(a))
|
||||
8372835E 8372835E 8372835E
|
||||
DROP TABLE t1;
|
||||
End of 5.1 tests
|
||||
#
|
||||
# Start of 5.5 tests
|
||||
#
|
||||
#
|
||||
# Testing WL#4583 Case conversion in Asian character sets
|
||||
#
|
||||
SET NAMES utf8;
|
||||
SET collation_connection=cp932_japanese_ci;
|
||||
CREATE TABLE t1 (b VARCHAR(2));
|
||||
INSERT INTO t1 VALUES ('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7');
|
||||
INSERT INTO t1 VALUES ('8'),('9'),('A'),('B'),('C'),('D'),('E'),('F');
|
||||
CREATE TEMPORARY TABLE head AS SELECT concat(b1.b, b2.b) AS head FROM t1 b1, t1 b2;
|
||||
CREATE TEMPORARY TABLE tail AS SELECT concat(b1.b, b2.b) AS tail FROM t1 b1, t1 b2;
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 AS
|
||||
SELECT concat(head, tail) AS code, ' ' AS a
|
||||
FROM head, tail
|
||||
WHERE (head BETWEEN '80' AND 'FF') AND (head NOT BETWEEN 'A1' AND 'DF')
|
||||
AND (tail BETWEEN '20' AND 'FF')
|
||||
ORDER BY head, tail;
|
||||
INSERT t1 (code) SELECT head FROM head
|
||||
WHERE (head BETWEEN 'A1' AND 'DF')
|
||||
ORDER BY head;
|
||||
DROP TEMPORARY TABLE head, tail;
|
||||
SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`code` varchar(8) DEFAULT NULL,
|
||||
`a` varchar(1) CHARACTER SET cp932 NOT NULL DEFAULT ''
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
UPDATE t1 SET a=unhex(code) ORDER BY code;
|
||||
Warnings:
|
||||
Warning 1366 Incorrect string value: '\x80 ' for column 'a' at row 1
|
||||
Warning 1366 Incorrect string value: '\x80!' for column 'a' at row 2
|
||||
Warning 1366 Incorrect string value: '\x80"' for column 'a' at row 3
|
||||
Warning 1366 Incorrect string value: '\x80#' for column 'a' at row 4
|
||||
Warning 1366 Incorrect string value: '\x80$' for column 'a' at row 5
|
||||
Warning 1366 Incorrect string value: '\x80%' for column 'a' at row 6
|
||||
Warning 1366 Incorrect string value: '\x80&' for column 'a' at row 7
|
||||
Warning 1366 Incorrect string value: '\x80'' for column 'a' at row 8
|
||||
Warning 1366 Incorrect string value: '\x80(' for column 'a' at row 9
|
||||
Warning 1366 Incorrect string value: '\x80)' for column 'a' at row 10
|
||||
Warning 1366 Incorrect string value: '\x80*' for column 'a' at row 11
|
||||
Warning 1366 Incorrect string value: '\x80+' for column 'a' at row 12
|
||||
Warning 1366 Incorrect string value: '\x80,' for column 'a' at row 13
|
||||
Warning 1366 Incorrect string value: '\x80-' for column 'a' at row 14
|
||||
Warning 1366 Incorrect string value: '\x80.' for column 'a' at row 15
|
||||
Warning 1366 Incorrect string value: '\x80/' for column 'a' at row 16
|
||||
Warning 1366 Incorrect string value: '\x800' for column 'a' at row 17
|
||||
Warning 1366 Incorrect string value: '\x801' for column 'a' at row 18
|
||||
Warning 1366 Incorrect string value: '\x802' for column 'a' at row 19
|
||||
Warning 1366 Incorrect string value: '\x803' for column 'a' at row 20
|
||||
Warning 1366 Incorrect string value: '\x804' for column 'a' at row 21
|
||||
Warning 1366 Incorrect string value: '\x805' for column 'a' at row 22
|
||||
Warning 1366 Incorrect string value: '\x806' for column 'a' at row 23
|
||||
Warning 1366 Incorrect string value: '\x807' for column 'a' at row 24
|
||||
Warning 1366 Incorrect string value: '\x808' for column 'a' at row 25
|
||||
Warning 1366 Incorrect string value: '\x809' for column 'a' at row 26
|
||||
Warning 1366 Incorrect string value: '\x80:' for column 'a' at row 27
|
||||
Warning 1366 Incorrect string value: '\x80;' for column 'a' at row 28
|
||||
Warning 1366 Incorrect string value: '\x80<' for column 'a' at row 29
|
||||
Warning 1366 Incorrect string value: '\x80=' for column 'a' at row 30
|
||||
Warning 1366 Incorrect string value: '\x80>' for column 'a' at row 31
|
||||
Warning 1366 Incorrect string value: '\x80?' for column 'a' at row 32
|
||||
Warning 1366 Incorrect string value: '\x80@' for column 'a' at row 33
|
||||
Warning 1366 Incorrect string value: '\x80A' for column 'a' at row 34
|
||||
Warning 1366 Incorrect string value: '\x80B' for column 'a' at row 35
|
||||
Warning 1366 Incorrect string value: '\x80C' for column 'a' at row 36
|
||||
Warning 1366 Incorrect string value: '\x80D' for column 'a' at row 37
|
||||
Warning 1366 Incorrect string value: '\x80E' for column 'a' at row 38
|
||||
Warning 1366 Incorrect string value: '\x80F' for column 'a' at row 39
|
||||
Warning 1366 Incorrect string value: '\x80G' for column 'a' at row 40
|
||||
Warning 1366 Incorrect string value: '\x80H' for column 'a' at row 41
|
||||
Warning 1366 Incorrect string value: '\x80I' for column 'a' at row 42
|
||||
Warning 1366 Incorrect string value: '\x80J' for column 'a' at row 43
|
||||
Warning 1366 Incorrect string value: '\x80K' for column 'a' at row 44
|
||||
Warning 1366 Incorrect string value: '\x80L' for column 'a' at row 45
|
||||
Warning 1366 Incorrect string value: '\x80M' for column 'a' at row 46
|
||||
Warning 1366 Incorrect string value: '\x80N' for column 'a' at row 47
|
||||
Warning 1366 Incorrect string value: '\x80O' for column 'a' at row 48
|
||||
Warning 1366 Incorrect string value: '\x80P' for column 'a' at row 49
|
||||
Warning 1366 Incorrect string value: '\x80Q' for column 'a' at row 50
|
||||
Warning 1366 Incorrect string value: '\x80R' for column 'a' at row 51
|
||||
Warning 1366 Incorrect string value: '\x80S' for column 'a' at row 52
|
||||
Warning 1366 Incorrect string value: '\x80T' for column 'a' at row 53
|
||||
Warning 1366 Incorrect string value: '\x80U' for column 'a' at row 54
|
||||
Warning 1366 Incorrect string value: '\x80V' for column 'a' at row 55
|
||||
Warning 1366 Incorrect string value: '\x80W' for column 'a' at row 56
|
||||
Warning 1366 Incorrect string value: '\x80X' for column 'a' at row 57
|
||||
Warning 1366 Incorrect string value: '\x80Y' for column 'a' at row 58
|
||||
Warning 1366 Incorrect string value: '\x80Z' for column 'a' at row 59
|
||||
Warning 1366 Incorrect string value: '\x80[' for column 'a' at row 60
|
||||
Warning 1366 Incorrect string value: '\x80\' for column 'a' at row 61
|
||||
Warning 1366 Incorrect string value: '\x80]' for column 'a' at row 62
|
||||
Warning 1366 Incorrect string value: '\x80^' for column 'a' at row 63
|
||||
Warning 1366 Incorrect string value: '\x80_' for column 'a' at row 64
|
||||
SELECT COUNT(*) FROM t1;
|
||||
COUNT(*)
|
||||
14623
|
||||
SELECT COUNT(*) FROM t1 WHERE a<>'' AND OCTET_LENGTH(a)=1;
|
||||
COUNT(*)
|
||||
63
|
||||
SELECT COUNT(*) FROM t1 WHERE a<>'' AND OCTET_LENGTH(a)=2;
|
||||
COUNT(*)
|
||||
11280
|
||||
SELECT code, hex(upper(a)), hex(lower(a)),a, upper(a), lower(a) FROM t1
|
||||
WHERE hex(a)<>hex(upper(a)) OR hex(a)<>hex(lower(a))
|
||||
ORDER BY code;
|
||||
code hex(upper(a)) hex(lower(a)) a upper(a) lower(a)
|
||||
8260 8260 8281 A A a
|
||||
8261 8261 8282 B B b
|
||||
8262 8262 8283 C C c
|
||||
8263 8263 8284 D D d
|
||||
8264 8264 8285 E E e
|
||||
8265 8265 8286 F F f
|
||||
8266 8266 8287 G G g
|
||||
8267 8267 8288 H H h
|
||||
8268 8268 8289 I I i
|
||||
8269 8269 828A J J j
|
||||
826A 826A 828B K K k
|
||||
826B 826B 828C L L l
|
||||
826C 826C 828D M M m
|
||||
826D 826D 828E N N n
|
||||
826E 826E 828F O O o
|
||||
826F 826F 8290 P P p
|
||||
8270 8270 8291 Q Q q
|
||||
8271 8271 8292 R R r
|
||||
8272 8272 8293 S S s
|
||||
8273 8273 8294 T T t
|
||||
8274 8274 8295 U U u
|
||||
8275 8275 8296 V V v
|
||||
8276 8276 8297 W W w
|
||||
8277 8277 8298 X X x
|
||||
8278 8278 8299 Y Y y
|
||||
8279 8279 829A Z Z z
|
||||
8281 8260 8281 a A a
|
||||
8282 8261 8282 b B b
|
||||
8283 8262 8283 c C c
|
||||
8284 8263 8284 d D d
|
||||
8285 8264 8285 e E e
|
||||
8286 8265 8286 f F f
|
||||
8287 8266 8287 g G g
|
||||
8288 8267 8288 h H h
|
||||
8289 8268 8289 i I i
|
||||
828A 8269 828A j J j
|
||||
828B 826A 828B k K k
|
||||
828C 826B 828C l L l
|
||||
828D 826C 828D m M m
|
||||
828E 826D 828E n N n
|
||||
828F 826E 828F o O o
|
||||
8290 826F 8290 p P p
|
||||
8291 8270 8291 q Q q
|
||||
8292 8271 8292 r R r
|
||||
8293 8272 8293 s S s
|
||||
8294 8273 8294 t T t
|
||||
8295 8274 8295 u U u
|
||||
8296 8275 8296 v V v
|
||||
8297 8276 8297 w W w
|
||||
8298 8277 8298 x X x
|
||||
8299 8278 8299 y Y y
|
||||
829A 8279 829A z Z z
|
||||
839F 839F 83BF Α Α α
|
||||
83A0 83A0 83C0 Β Β β
|
||||
83A1 83A1 83C1 Γ Γ γ
|
||||
83A2 83A2 83C2 Δ Δ δ
|
||||
83A3 83A3 83C3 Ε Ε ε
|
||||
83A4 83A4 83C4 Ζ Ζ ζ
|
||||
83A5 83A5 83C5 Η Η η
|
||||
83A6 83A6 83C6 Θ Θ θ
|
||||
83A7 83A7 83C7 Ι Ι ι
|
||||
83A8 83A8 83C8 Κ Κ κ
|
||||
83A9 83A9 83C9 Λ Λ λ
|
||||
83AA 83AA 83CA Μ Μ μ
|
||||
83AB 83AB 83CB Ν Ν ν
|
||||
83AC 83AC 83CC Ξ Ξ ξ
|
||||
83AD 83AD 83CD Ο Ο ο
|
||||
83AE 83AE 83CE Π Π π
|
||||
83AF 83AF 83CF Ρ Ρ ρ
|
||||
83B0 83B0 83D0 Σ Σ σ
|
||||
83B1 83B1 83D1 Τ Τ τ
|
||||
83B2 83B2 83D2 Υ Υ υ
|
||||
83B3 83B3 83D3 Φ Φ φ
|
||||
83B4 83B4 83D4 Χ Χ χ
|
||||
83B5 83B5 83D5 Ψ Ψ ψ
|
||||
83B6 83B6 83D6 Ω Ω ω
|
||||
83BF 839F 83BF α Α α
|
||||
83C0 83A0 83C0 β Β β
|
||||
83C1 83A1 83C1 γ Γ γ
|
||||
83C2 83A2 83C2 δ Δ δ
|
||||
83C3 83A3 83C3 ε Ε ε
|
||||
83C4 83A4 83C4 ζ Ζ ζ
|
||||
83C5 83A5 83C5 η Η η
|
||||
83C6 83A6 83C6 θ Θ θ
|
||||
83C7 83A7 83C7 ι Ι ι
|
||||
83C8 83A8 83C8 κ Κ κ
|
||||
83C9 83A9 83C9 λ Λ λ
|
||||
83CA 83AA 83CA μ Μ μ
|
||||
83CB 83AB 83CB ν Ν ν
|
||||
83CC 83AC 83CC ξ Ξ ξ
|
||||
83CD 83AD 83CD ο Ο ο
|
||||
83CE 83AE 83CE π Π π
|
||||
83CF 83AF 83CF ρ Ρ ρ
|
||||
83D0 83B0 83D0 σ Σ σ
|
||||
83D1 83B1 83D1 τ Τ τ
|
||||
83D2 83B2 83D2 υ Υ υ
|
||||
83D3 83B3 83D3 φ Φ φ
|
||||
83D4 83B4 83D4 χ Χ χ
|
||||
83D5 83B5 83D5 ψ Ψ ψ
|
||||
83D6 83B6 83D6 ω Ω ω
|
||||
8440 8440 8470 А А а
|
||||
8441 8441 8471 Б Б б
|
||||
8442 8442 8472 В В в
|
||||
8443 8443 8473 Г Г г
|
||||
8444 8444 8474 Д Д д
|
||||
8445 8445 8475 Е Е е
|
||||
8446 8446 8476 Ё Ё ё
|
||||
8447 8447 8477 Ж Ж ж
|
||||
8448 8448 8478 З З з
|
||||
8449 8449 8479 И И и
|
||||
844A 844A 847A Й Й й
|
||||
844B 844B 847B К К к
|
||||
844C 844C 847C Л Л л
|
||||
844D 844D 847D М М м
|
||||
844E 844E 847E Н Н н
|
||||
844F 844F 8480 О О о
|
||||
8450 8450 8481 П П п
|
||||
8451 8451 8482 Р Р р
|
||||
8452 8452 8483 С С с
|
||||
8453 8453 8484 Т Т т
|
||||
8454 8454 8485 У У у
|
||||
8455 8455 8486 Ф Ф ф
|
||||
8456 8456 8487 Х Х х
|
||||
8457 8457 8488 Ц Ц ц
|
||||
8458 8458 8489 Ч Ч ч
|
||||
8459 8459 848A Ш Ш ш
|
||||
845A 845A 848B Щ Щ щ
|
||||
845B 845B 848C Ъ Ъ ъ
|
||||
845C 845C 848D Ы Ы ы
|
||||
845D 845D 848E Ь Ь ь
|
||||
845E 845E 848F Э Э э
|
||||
845F 845F 8490 Ю Ю ю
|
||||
8460 8460 8491 Я Я я
|
||||
8470 8440 8470 а А а
|
||||
8471 8441 8471 б Б б
|
||||
8472 8442 8472 в В в
|
||||
8473 8443 8473 г Г г
|
||||
8474 8444 8474 д Д д
|
||||
8475 8445 8475 е Е е
|
||||
8476 8446 8476 ё Ё ё
|
||||
8477 8447 8477 ж Ж ж
|
||||
8478 8448 8478 з З з
|
||||
8479 8449 8479 и И и
|
||||
847A 844A 847A й Й й
|
||||
847B 844B 847B к К к
|
||||
847C 844C 847C л Л л
|
||||
847D 844D 847D м М м
|
||||
847E 844E 847E н Н н
|
||||
8480 844F 8480 о О о
|
||||
8481 8450 8481 п П п
|
||||
8482 8451 8482 р Р р
|
||||
8483 8452 8483 с С с
|
||||
8484 8453 8484 т Т т
|
||||
8485 8454 8485 у У у
|
||||
8486 8455 8486 ф Ф ф
|
||||
8487 8456 8487 х Х х
|
||||
8488 8457 8488 ц Ц ц
|
||||
8489 8458 8489 ч Ч ч
|
||||
848A 8459 848A ш Ш ш
|
||||
848B 845A 848B щ Щ щ
|
||||
848C 845B 848C ъ Ъ ъ
|
||||
848D 845C 848D ы Ы ы
|
||||
848E 845D 848E ь Ь ь
|
||||
848F 845E 848F э Э э
|
||||
8490 845F 8490 ю Ю ю
|
||||
8491 8460 8491 я Я я
|
||||
8754 8754 EEEF Ⅰ Ⅰ ⅰ
|
||||
8755 8755 EEF0 Ⅱ Ⅱ ⅱ
|
||||
8756 8756 EEF1 Ⅲ Ⅲ ⅲ
|
||||
8757 8757 EEF2 Ⅳ Ⅳ ⅳ
|
||||
8758 8758 EEF3 Ⅴ Ⅴ ⅴ
|
||||
8759 8759 EEF4 Ⅵ Ⅵ ⅵ
|
||||
875A 875A EEF5 Ⅶ Ⅶ ⅶ
|
||||
875B 875B EEF6 Ⅷ Ⅷ ⅷ
|
||||
875C 875C EEF7 Ⅸ Ⅸ ⅸ
|
||||
875D 875D EEF8 Ⅹ Ⅹ ⅹ
|
||||
EEEF 8754 EEEF ⅰ Ⅰ ⅰ
|
||||
EEF0 8755 EEF0 ⅱ Ⅱ ⅱ
|
||||
EEF1 8756 EEF1 ⅲ Ⅲ ⅲ
|
||||
EEF2 8757 EEF2 ⅳ Ⅳ ⅳ
|
||||
EEF3 8758 EEF3 ⅴ Ⅴ ⅴ
|
||||
EEF4 8759 EEF4 ⅵ Ⅵ ⅵ
|
||||
EEF5 875A EEF5 ⅶ Ⅶ ⅶ
|
||||
EEF6 875B EEF6 ⅷ Ⅷ ⅷ
|
||||
EEF7 875C EEF7 ⅸ Ⅸ ⅸ
|
||||
EEF8 875D EEF8 ⅹ Ⅹ ⅹ
|
||||
FA40 FA4A FA40 ⅰ Ⅰ ⅰ
|
||||
FA41 FA4B FA41 ⅱ Ⅱ ⅱ
|
||||
FA42 FA4C FA42 ⅲ Ⅲ ⅲ
|
||||
FA43 FA4D FA43 ⅳ Ⅳ ⅳ
|
||||
FA44 FA4E FA44 ⅴ Ⅴ ⅴ
|
||||
FA45 FA4F FA45 ⅵ Ⅵ ⅵ
|
||||
FA46 FA50 FA46 ⅶ Ⅶ ⅶ
|
||||
FA47 FA51 FA47 ⅷ Ⅷ ⅷ
|
||||
FA48 FA52 FA48 ⅸ Ⅸ ⅸ
|
||||
FA49 FA53 FA49 ⅹ Ⅹ ⅹ
|
||||
FA4A FA4A FA40 Ⅰ Ⅰ ⅰ
|
||||
FA4B FA4B FA41 Ⅱ Ⅱ ⅱ
|
||||
FA4C FA4C FA42 Ⅲ Ⅲ ⅲ
|
||||
FA4D FA4D FA43 Ⅳ Ⅳ ⅳ
|
||||
FA4E FA4E FA44 Ⅴ Ⅴ ⅴ
|
||||
FA4F FA4F FA45 Ⅵ Ⅵ ⅵ
|
||||
FA50 FA50 FA46 Ⅶ Ⅶ ⅶ
|
||||
FA51 FA51 FA47 Ⅷ Ⅷ ⅷ
|
||||
FA52 FA52 FA48 Ⅸ Ⅸ ⅸ
|
||||
FA53 FA53 FA49 Ⅹ Ⅹ ⅹ
|
||||
SELECT * FROM t1
|
||||
WHERE HEX(CAST(LOWER(a) AS CHAR CHARACTER SET utf8)) <>
|
||||
HEX(LOWER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
|
||||
code a
|
||||
81F0 Å
|
||||
SELECT * FROM t1
|
||||
WHERE HEX(CAST(UPPER(a) AS CHAR CHARACTER SET utf8)) <>
|
||||
HEX(UPPER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
|
||||
code a
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# End of 5.5 tests
|
||||
#
|
||||
|
@ -9859,3 +9859,567 @@ hex(convert(_eucjpms 0xA5FE41 using ucs2))
|
||||
select hex(convert(_eucjpms 0x8FABF841 using ucs2));
|
||||
hex(convert(_eucjpms 0x8FABF841 using ucs2))
|
||||
003F0041
|
||||
#
|
||||
# Start of 5.5 tests
|
||||
#
|
||||
#
|
||||
# Testing WL#4583 Case conversion in Asian character sets
|
||||
#
|
||||
SET NAMES utf8;
|
||||
SET collation_connection=eucjpms_japanese_ci;
|
||||
CREATE TABLE t1 (b VARCHAR(2));
|
||||
INSERT INTO t1 VALUES ('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7');
|
||||
INSERT INTO t1 VALUES ('8'),('9'),('A'),('B'),('C'),('D'),('E'),('F');
|
||||
CREATE TEMPORARY TABLE head AS SELECT concat(b1.b, b2.b) AS head FROM t1 b1, t1 b2;
|
||||
CREATE TEMPORARY TABLE tail AS SELECT concat(b1.b, b2.b) AS tail FROM t1 b1, t1 b2;
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 AS SELECT 'XXXXXX' AS code, ' ' AS a LIMIT 0;
|
||||
INSERT INTO t1 (code) SELECT concat('8E', head) FROM head
|
||||
WHERE (head BETWEEN 'A1' AND 'DF') ORDER BY head;
|
||||
INSERT INTO t1 (code) SELECT concat(head, tail)
|
||||
FROM head, tail
|
||||
WHERE (head BETWEEN '80' AND 'FF') AND (head NOT BETWEEN '8E' AND '8F')
|
||||
AND (tail BETWEEN '20' AND 'FF')
|
||||
ORDER BY head, tail;
|
||||
INSERT INTO t1 (code) SELECT concat('8F', head, tail)
|
||||
FROM head, tail
|
||||
WHERE (head BETWEEN '80' AND 'FF') AND (tail BETWEEN '20' AND 'FF')
|
||||
ORDER BY head, tail;
|
||||
DROP TEMPORARY TABLE head, tail;
|
||||
SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`code` varchar(6) CHARACTER SET eucjpms NOT NULL DEFAULT '',
|
||||
`a` varchar(1) CHARACTER SET eucjpms NOT NULL DEFAULT ''
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
UPDATE t1 SET a=unhex(code) ORDER BY code;
|
||||
Warnings:
|
||||
Warning 1366 Incorrect string value: '\x80 ' for column 'a' at row 1
|
||||
Warning 1366 Incorrect string value: '\x80!' for column 'a' at row 2
|
||||
Warning 1366 Incorrect string value: '\x80"' for column 'a' at row 3
|
||||
Warning 1366 Incorrect string value: '\x80#' for column 'a' at row 4
|
||||
Warning 1366 Incorrect string value: '\x80$' for column 'a' at row 5
|
||||
Warning 1366 Incorrect string value: '\x80%' for column 'a' at row 6
|
||||
Warning 1366 Incorrect string value: '\x80&' for column 'a' at row 7
|
||||
Warning 1366 Incorrect string value: '\x80'' for column 'a' at row 8
|
||||
Warning 1366 Incorrect string value: '\x80(' for column 'a' at row 9
|
||||
Warning 1366 Incorrect string value: '\x80)' for column 'a' at row 10
|
||||
Warning 1366 Incorrect string value: '\x80*' for column 'a' at row 11
|
||||
Warning 1366 Incorrect string value: '\x80+' for column 'a' at row 12
|
||||
Warning 1366 Incorrect string value: '\x80,' for column 'a' at row 13
|
||||
Warning 1366 Incorrect string value: '\x80-' for column 'a' at row 14
|
||||
Warning 1366 Incorrect string value: '\x80.' for column 'a' at row 15
|
||||
Warning 1366 Incorrect string value: '\x80/' for column 'a' at row 16
|
||||
Warning 1366 Incorrect string value: '\x800' for column 'a' at row 17
|
||||
Warning 1366 Incorrect string value: '\x801' for column 'a' at row 18
|
||||
Warning 1366 Incorrect string value: '\x802' for column 'a' at row 19
|
||||
Warning 1366 Incorrect string value: '\x803' for column 'a' at row 20
|
||||
Warning 1366 Incorrect string value: '\x804' for column 'a' at row 21
|
||||
Warning 1366 Incorrect string value: '\x805' for column 'a' at row 22
|
||||
Warning 1366 Incorrect string value: '\x806' for column 'a' at row 23
|
||||
Warning 1366 Incorrect string value: '\x807' for column 'a' at row 24
|
||||
Warning 1366 Incorrect string value: '\x808' for column 'a' at row 25
|
||||
Warning 1366 Incorrect string value: '\x809' for column 'a' at row 26
|
||||
Warning 1366 Incorrect string value: '\x80:' for column 'a' at row 27
|
||||
Warning 1366 Incorrect string value: '\x80;' for column 'a' at row 28
|
||||
Warning 1366 Incorrect string value: '\x80<' for column 'a' at row 29
|
||||
Warning 1366 Incorrect string value: '\x80=' for column 'a' at row 30
|
||||
Warning 1366 Incorrect string value: '\x80>' for column 'a' at row 31
|
||||
Warning 1366 Incorrect string value: '\x80?' for column 'a' at row 32
|
||||
Warning 1366 Incorrect string value: '\x80@' for column 'a' at row 33
|
||||
Warning 1366 Incorrect string value: '\x80A' for column 'a' at row 34
|
||||
Warning 1366 Incorrect string value: '\x80B' for column 'a' at row 35
|
||||
Warning 1366 Incorrect string value: '\x80C' for column 'a' at row 36
|
||||
Warning 1366 Incorrect string value: '\x80D' for column 'a' at row 37
|
||||
Warning 1366 Incorrect string value: '\x80E' for column 'a' at row 38
|
||||
Warning 1366 Incorrect string value: '\x80F' for column 'a' at row 39
|
||||
Warning 1366 Incorrect string value: '\x80G' for column 'a' at row 40
|
||||
Warning 1366 Incorrect string value: '\x80H' for column 'a' at row 41
|
||||
Warning 1366 Incorrect string value: '\x80I' for column 'a' at row 42
|
||||
Warning 1366 Incorrect string value: '\x80J' for column 'a' at row 43
|
||||
Warning 1366 Incorrect string value: '\x80K' for column 'a' at row 44
|
||||
Warning 1366 Incorrect string value: '\x80L' for column 'a' at row 45
|
||||
Warning 1366 Incorrect string value: '\x80M' for column 'a' at row 46
|
||||
Warning 1366 Incorrect string value: '\x80N' for column 'a' at row 47
|
||||
Warning 1366 Incorrect string value: '\x80O' for column 'a' at row 48
|
||||
Warning 1366 Incorrect string value: '\x80P' for column 'a' at row 49
|
||||
Warning 1366 Incorrect string value: '\x80Q' for column 'a' at row 50
|
||||
Warning 1366 Incorrect string value: '\x80R' for column 'a' at row 51
|
||||
Warning 1366 Incorrect string value: '\x80S' for column 'a' at row 52
|
||||
Warning 1366 Incorrect string value: '\x80T' for column 'a' at row 53
|
||||
Warning 1366 Incorrect string value: '\x80U' for column 'a' at row 54
|
||||
Warning 1366 Incorrect string value: '\x80V' for column 'a' at row 55
|
||||
Warning 1366 Incorrect string value: '\x80W' for column 'a' at row 56
|
||||
Warning 1366 Incorrect string value: '\x80X' for column 'a' at row 57
|
||||
Warning 1366 Incorrect string value: '\x80Y' for column 'a' at row 58
|
||||
Warning 1366 Incorrect string value: '\x80Z' for column 'a' at row 59
|
||||
Warning 1366 Incorrect string value: '\x80[' for column 'a' at row 60
|
||||
Warning 1366 Incorrect string value: '\x80\' for column 'a' at row 61
|
||||
Warning 1366 Incorrect string value: '\x80]' for column 'a' at row 62
|
||||
Warning 1366 Incorrect string value: '\x80^' for column 'a' at row 63
|
||||
Warning 1366 Incorrect string value: '\x80_' for column 'a' at row 64
|
||||
SELECT COUNT(*) FROM t1;
|
||||
COUNT(*)
|
||||
56959
|
||||
SELECT COUNT(*) FROM t1 WHERE a<>'';
|
||||
COUNT(*)
|
||||
17735
|
||||
SELECT COUNT(*) FROM t1 WHERE a<>'' AND OCTET_LENGTH(a)=2;
|
||||
COUNT(*)
|
||||
8899
|
||||
SELECT * FROM t1 WHERE CHAR_LENGTH(a)=2;
|
||||
code a
|
||||
SELECT COUNT(*) FROM t1 WHERE a<>'' AND OCTET_LENGTH(a)=3;
|
||||
COUNT(*)
|
||||
8836
|
||||
SELECT code, hex(upper(a)), hex(lower(a)),a, upper(a), lower(a) FROM t1 WHERE hex(a)<>hex(upper(a)) OR hex(a)<>hex(lower(a)) ORDER BY code;
|
||||
code hex(upper(a)) hex(lower(a)) a upper(a) lower(a)
|
||||
8FA6E1 8FA6E1 8FA6F1 Ά Ά ά
|
||||
8FA6E2 8FA6E2 8FA6F2 Έ Έ έ
|
||||
8FA6E3 8FA6E3 8FA6F3 Ή Ή ή
|
||||
8FA6E4 8FA6E4 8FA6F4 Ί Ί ί
|
||||
8FA6E5 8FA6E5 8FA6F5 Ϊ Ϊ ϊ
|
||||
8FA6E7 8FA6E7 8FA6F7 Ό Ό ό
|
||||
8FA6E9 8FA6E9 8FA6F9 Ύ Ύ ύ
|
||||
8FA6EA 8FA6EA 8FA6FA Ϋ Ϋ ϋ
|
||||
8FA6EC 8FA6EC 8FA6FC Ώ Ώ ώ
|
||||
8FA6F1 8FA6E1 8FA6F1 ά Ά ά
|
||||
8FA6F2 8FA6E2 8FA6F2 έ Έ έ
|
||||
8FA6F3 8FA6E3 8FA6F3 ή Ή ή
|
||||
8FA6F4 8FA6E4 8FA6F4 ί Ί ί
|
||||
8FA6F5 8FA6E5 8FA6F5 ϊ Ϊ ϊ
|
||||
8FA6F7 8FA6E7 8FA6F7 ό Ό ό
|
||||
8FA6F8 A6B2 8FA6F8 ς Σ ς
|
||||
8FA6F9 8FA6E9 8FA6F9 ύ Ύ ύ
|
||||
8FA6FA 8FA6EA 8FA6FA ϋ Ϋ ϋ
|
||||
8FA6FC 8FA6EC 8FA6FC ώ Ώ ώ
|
||||
8FA7C2 8FA7C2 8FA7F2 Ђ Ђ ђ
|
||||
8FA7C3 8FA7C3 8FA7F3 Ѓ Ѓ ѓ
|
||||
8FA7C4 8FA7C4 8FA7F4 Є Є є
|
||||
8FA7C5 8FA7C5 8FA7F5 Ѕ Ѕ ѕ
|
||||
8FA7C6 8FA7C6 8FA7F6 І І і
|
||||
8FA7C7 8FA7C7 8FA7F7 Ї Ї ї
|
||||
8FA7C8 8FA7C8 8FA7F8 Ј Ј ј
|
||||
8FA7C9 8FA7C9 8FA7F9 Љ Љ љ
|
||||
8FA7CA 8FA7CA 8FA7FA Њ Њ њ
|
||||
8FA7CB 8FA7CB 8FA7FB Ћ Ћ ћ
|
||||
8FA7CC 8FA7CC 8FA7FC Ќ Ќ ќ
|
||||
8FA7CD 8FA7CD 8FA7FD Ў Ў ў
|
||||
8FA7CE 8FA7CE 8FA7FE Џ Џ џ
|
||||
8FA7F2 8FA7C2 8FA7F2 ђ Ђ ђ
|
||||
8FA7F3 8FA7C3 8FA7F3 ѓ Ѓ ѓ
|
||||
8FA7F4 8FA7C4 8FA7F4 є Є є
|
||||
8FA7F5 8FA7C5 8FA7F5 ѕ Ѕ ѕ
|
||||
8FA7F6 8FA7C6 8FA7F6 і І і
|
||||
8FA7F7 8FA7C7 8FA7F7 ї Ї ї
|
||||
8FA7F8 8FA7C8 8FA7F8 ј Ј ј
|
||||
8FA7F9 8FA7C9 8FA7F9 љ Љ љ
|
||||
8FA7FA 8FA7CA 8FA7FA њ Њ њ
|
||||
8FA7FB 8FA7CB 8FA7FB ћ Ћ ћ
|
||||
8FA7FC 8FA7CC 8FA7FC ќ Ќ ќ
|
||||
8FA7FD 8FA7CD 8FA7FD ў Ў ў
|
||||
8FA7FE 8FA7CE 8FA7FE џ Џ џ
|
||||
8FA9A1 8FA9A1 8FA9C1 Æ Æ æ
|
||||
8FA9A2 8FA9A2 8FA9C2 Đ Đ đ
|
||||
8FA9A4 8FA9A4 8FA9C4 Ħ Ħ ħ
|
||||
8FA9A6 8FA9A6 8FA9C6 IJ IJ ij
|
||||
8FA9A8 8FA9A8 8FA9C8 Ł Ł ł
|
||||
8FA9A9 8FA9A9 8FA9C9 Ŀ Ŀ ŀ
|
||||
8FA9AB 8FA9AB 8FA9CB Ŋ Ŋ ŋ
|
||||
8FA9AC 8FA9AC 8FA9CC Ø Ø ø
|
||||
8FA9AD 8FA9AD 8FA9CD Œ Œ œ
|
||||
8FA9AF 8FA9AF 8FA9CF Ŧ Ŧ ŧ
|
||||
8FA9B0 8FA9B0 8FA9D0 Þ Þ þ
|
||||
8FA9C1 8FA9A1 8FA9C1 æ Æ æ
|
||||
8FA9C2 8FA9A2 8FA9C2 đ Đ đ
|
||||
8FA9C4 8FA9A4 8FA9C4 ħ Ħ ħ
|
||||
8FA9C5 49 8FA9C5 ı I ı
|
||||
8FA9C6 8FA9A6 8FA9C6 ij IJ ij
|
||||
8FA9C8 8FA9A8 8FA9C8 ł Ł ł
|
||||
8FA9C9 8FA9A9 8FA9C9 ŀ Ŀ ŀ
|
||||
8FA9CB 8FA9AB 8FA9CB ŋ Ŋ ŋ
|
||||
8FA9CC 8FA9AC 8FA9CC ø Ø ø
|
||||
8FA9CD 8FA9AD 8FA9CD œ Œ œ
|
||||
8FA9CF 8FA9AF 8FA9CF ŧ Ŧ ŧ
|
||||
8FA9D0 8FA9B0 8FA9D0 þ Þ þ
|
||||
8FAAA1 8FAAA1 8FABA1 Á Á á
|
||||
8FAAA2 8FAAA2 8FABA2 À À à
|
||||
8FAAA3 8FAAA3 8FABA3 Ä Ä ä
|
||||
8FAAA4 8FAAA4 8FABA4 Â Â â
|
||||
8FAAA5 8FAAA5 8FABA5 Ă Ă ă
|
||||
8FAAA6 8FAAA6 8FABA6 Ǎ Ǎ ǎ
|
||||
8FAAA7 8FAAA7 8FABA7 Ā Ā ā
|
||||
8FAAA8 8FAAA8 8FABA8 Ą Ą ą
|
||||
8FAAA9 8FAAA9 8FABA9 Å Å å
|
||||
8FAAAA 8FAAAA 8FABAA Ã Ã ã
|
||||
8FAAAB 8FAAAB 8FABAB Ć Ć ć
|
||||
8FAAAC 8FAAAC 8FABAC Ĉ Ĉ ĉ
|
||||
8FAAAD 8FAAAD 8FABAD Č Č č
|
||||
8FAAAE 8FAAAE 8FABAE Ç Ç ç
|
||||
8FAAAF 8FAAAF 8FABAF Ċ Ċ ċ
|
||||
8FAAB0 8FAAB0 8FABB0 Ď Ď ď
|
||||
8FAAB1 8FAAB1 8FABB1 É É é
|
||||
8FAAB2 8FAAB2 8FABB2 È È è
|
||||
8FAAB3 8FAAB3 8FABB3 Ë Ë ë
|
||||
8FAAB4 8FAAB4 8FABB4 Ê Ê ê
|
||||
8FAAB5 8FAAB5 8FABB5 Ě Ě ě
|
||||
8FAAB6 8FAAB6 8FABB6 Ė Ė ė
|
||||
8FAAB7 8FAAB7 8FABB7 Ē Ē ē
|
||||
8FAAB8 8FAAB8 8FABB8 Ę Ę ę
|
||||
8FAABA 8FAABA 8FABBA Ĝ Ĝ ĝ
|
||||
8FAABB 8FAABB 8FABBB Ğ Ğ ğ
|
||||
8FAABD 8FAABD 8FABBD Ġ Ġ ġ
|
||||
8FAABE 8FAABE 8FABBE Ĥ Ĥ ĥ
|
||||
8FAABF 8FAABF 8FABBF Í Í í
|
||||
8FAAC0 8FAAC0 8FABC0 Ì Ì ì
|
||||
8FAAC1 8FAAC1 8FABC1 Ï Ï ï
|
||||
8FAAC2 8FAAC2 8FABC2 Î Î î
|
||||
8FAAC3 8FAAC3 8FABC3 Ǐ Ǐ ǐ
|
||||
8FAAC4 8FAAC4 69 İ İ i
|
||||
8FAAC5 8FAAC5 8FABC5 Ī Ī ī
|
||||
8FAAC6 8FAAC6 8FABC6 Į Į į
|
||||
8FAAC7 8FAAC7 8FABC7 Ĩ Ĩ ĩ
|
||||
8FAAC8 8FAAC8 8FABC8 Ĵ Ĵ ĵ
|
||||
8FAAC9 8FAAC9 8FABC9 Ķ Ķ ķ
|
||||
8FAACA 8FAACA 8FABCA Ĺ Ĺ ĺ
|
||||
8FAACB 8FAACB 8FABCB Ľ Ľ ľ
|
||||
8FAACC 8FAACC 8FABCC Ļ Ļ ļ
|
||||
8FAACD 8FAACD 8FABCD Ń Ń ń
|
||||
8FAACE 8FAACE 8FABCE Ň Ň ň
|
||||
8FAACF 8FAACF 8FABCF Ņ Ņ ņ
|
||||
8FAAD0 8FAAD0 8FABD0 Ñ Ñ ñ
|
||||
8FAAD1 8FAAD1 8FABD1 Ó Ó ó
|
||||
8FAAD2 8FAAD2 8FABD2 Ò Ò ò
|
||||
8FAAD3 8FAAD3 8FABD3 Ö Ö ö
|
||||
8FAAD4 8FAAD4 8FABD4 Ô Ô ô
|
||||
8FAAD5 8FAAD5 8FABD5 Ǒ Ǒ ǒ
|
||||
8FAAD6 8FAAD6 8FABD6 Ő Ő ő
|
||||
8FAAD7 8FAAD7 8FABD7 Ō Ō ō
|
||||
8FAAD8 8FAAD8 8FABD8 Õ Õ õ
|
||||
8FAAD9 8FAAD9 8FABD9 Ŕ Ŕ ŕ
|
||||
8FAADA 8FAADA 8FABDA Ř Ř ř
|
||||
8FAADB 8FAADB 8FABDB Ŗ Ŗ ŗ
|
||||
8FAADC 8FAADC 8FABDC Ś Ś ś
|
||||
8FAADD 8FAADD 8FABDD Ŝ Ŝ ŝ
|
||||
8FAADE 8FAADE 8FABDE Š Š š
|
||||
8FAADF 8FAADF 8FABDF Ş Ş ş
|
||||
8FAAE0 8FAAE0 8FABE0 Ť Ť ť
|
||||
8FAAE1 8FAAE1 8FABE1 Ţ Ţ ţ
|
||||
8FAAE2 8FAAE2 8FABE2 Ú Ú ú
|
||||
8FAAE3 8FAAE3 8FABE3 Ù Ù ù
|
||||
8FAAE4 8FAAE4 8FABE4 Ü Ü ü
|
||||
8FAAE5 8FAAE5 8FABE5 Û Û û
|
||||
8FAAE6 8FAAE6 8FABE6 Ŭ Ŭ ŭ
|
||||
8FAAE7 8FAAE7 8FABE7 Ǔ Ǔ ǔ
|
||||
8FAAE8 8FAAE8 8FABE8 Ű Ű ű
|
||||
8FAAE9 8FAAE9 8FABE9 Ū Ū ū
|
||||
8FAAEA 8FAAEA 8FABEA Ų Ų ų
|
||||
8FAAEB 8FAAEB 8FABEB Ů Ů ů
|
||||
8FAAEC 8FAAEC 8FABEC Ũ Ũ ũ
|
||||
8FAAED 8FAAED 8FABED Ǘ Ǘ ǘ
|
||||
8FAAEE 8FAAEE 8FABEE Ǜ Ǜ ǜ
|
||||
8FAAEF 8FAAEF 8FABEF Ǚ Ǚ ǚ
|
||||
8FAAF0 8FAAF0 8FABF0 Ǖ Ǖ ǖ
|
||||
8FAAF1 8FAAF1 8FABF1 Ŵ Ŵ ŵ
|
||||
8FAAF2 8FAAF2 8FABF2 Ý Ý ý
|
||||
8FAAF3 8FAAF3 8FABF3 Ÿ Ÿ ÿ
|
||||
8FAAF4 8FAAF4 8FABF4 Ŷ Ŷ ŷ
|
||||
8FAAF5 8FAAF5 8FABF5 Ź Ź ź
|
||||
8FAAF6 8FAAF6 8FABF6 Ž Ž ž
|
||||
8FAAF7 8FAAF7 8FABF7 Ż Ż ż
|
||||
8FABA1 8FAAA1 8FABA1 á Á á
|
||||
8FABA2 8FAAA2 8FABA2 à À à
|
||||
8FABA3 8FAAA3 8FABA3 ä Ä ä
|
||||
8FABA4 8FAAA4 8FABA4 â Â â
|
||||
8FABA5 8FAAA5 8FABA5 ă Ă ă
|
||||
8FABA6 8FAAA6 8FABA6 ǎ Ǎ ǎ
|
||||
8FABA7 8FAAA7 8FABA7 ā Ā ā
|
||||
8FABA8 8FAAA8 8FABA8 ą Ą ą
|
||||
8FABA9 8FAAA9 8FABA9 å Å å
|
||||
8FABAA 8FAAAA 8FABAA ã Ã ã
|
||||
8FABAB 8FAAAB 8FABAB ć Ć ć
|
||||
8FABAC 8FAAAC 8FABAC ĉ Ĉ ĉ
|
||||
8FABAD 8FAAAD 8FABAD č Č č
|
||||
8FABAE 8FAAAE 8FABAE ç Ç ç
|
||||
8FABAF 8FAAAF 8FABAF ċ Ċ ċ
|
||||
8FABB0 8FAAB0 8FABB0 ď Ď ď
|
||||
8FABB1 8FAAB1 8FABB1 é É é
|
||||
8FABB2 8FAAB2 8FABB2 è È è
|
||||
8FABB3 8FAAB3 8FABB3 ë Ë ë
|
||||
8FABB4 8FAAB4 8FABB4 ê Ê ê
|
||||
8FABB5 8FAAB5 8FABB5 ě Ě ě
|
||||
8FABB6 8FAAB6 8FABB6 ė Ė ė
|
||||
8FABB7 8FAAB7 8FABB7 ē Ē ē
|
||||
8FABB8 8FAAB8 8FABB8 ę Ę ę
|
||||
8FABBA 8FAABA 8FABBA ĝ Ĝ ĝ
|
||||
8FABBB 8FAABB 8FABBB ğ Ğ ğ
|
||||
8FABBD 8FAABD 8FABBD ġ Ġ ġ
|
||||
8FABBE 8FAABE 8FABBE ĥ Ĥ ĥ
|
||||
8FABBF 8FAABF 8FABBF í Í í
|
||||
8FABC0 8FAAC0 8FABC0 ì Ì ì
|
||||
8FABC1 8FAAC1 8FABC1 ï Ï ï
|
||||
8FABC2 8FAAC2 8FABC2 î Î î
|
||||
8FABC3 8FAAC3 8FABC3 ǐ Ǐ ǐ
|
||||
8FABC5 8FAAC5 8FABC5 ī Ī ī
|
||||
8FABC6 8FAAC6 8FABC6 į Į į
|
||||
8FABC7 8FAAC7 8FABC7 ĩ Ĩ ĩ
|
||||
8FABC8 8FAAC8 8FABC8 ĵ Ĵ ĵ
|
||||
8FABC9 8FAAC9 8FABC9 ķ Ķ ķ
|
||||
8FABCA 8FAACA 8FABCA ĺ Ĺ ĺ
|
||||
8FABCB 8FAACB 8FABCB ľ Ľ ľ
|
||||
8FABCC 8FAACC 8FABCC ļ Ļ ļ
|
||||
8FABCD 8FAACD 8FABCD ń Ń ń
|
||||
8FABCE 8FAACE 8FABCE ň Ň ň
|
||||
8FABCF 8FAACF 8FABCF ņ Ņ ņ
|
||||
8FABD0 8FAAD0 8FABD0 ñ Ñ ñ
|
||||
8FABD1 8FAAD1 8FABD1 ó Ó ó
|
||||
8FABD2 8FAAD2 8FABD2 ò Ò ò
|
||||
8FABD3 8FAAD3 8FABD3 ö Ö ö
|
||||
8FABD4 8FAAD4 8FABD4 ô Ô ô
|
||||
8FABD5 8FAAD5 8FABD5 ǒ Ǒ ǒ
|
||||
8FABD6 8FAAD6 8FABD6 ő Ő ő
|
||||
8FABD7 8FAAD7 8FABD7 ō Ō ō
|
||||
8FABD8 8FAAD8 8FABD8 õ Õ õ
|
||||
8FABD9 8FAAD9 8FABD9 ŕ Ŕ ŕ
|
||||
8FABDA 8FAADA 8FABDA ř Ř ř
|
||||
8FABDB 8FAADB 8FABDB ŗ Ŗ ŗ
|
||||
8FABDC 8FAADC 8FABDC ś Ś ś
|
||||
8FABDD 8FAADD 8FABDD ŝ Ŝ ŝ
|
||||
8FABDE 8FAADE 8FABDE š Š š
|
||||
8FABDF 8FAADF 8FABDF ş Ş ş
|
||||
8FABE0 8FAAE0 8FABE0 ť Ť ť
|
||||
8FABE1 8FAAE1 8FABE1 ţ Ţ ţ
|
||||
8FABE2 8FAAE2 8FABE2 ú Ú ú
|
||||
8FABE3 8FAAE3 8FABE3 ù Ù ù
|
||||
8FABE4 8FAAE4 8FABE4 ü Ü ü
|
||||
8FABE5 8FAAE5 8FABE5 û Û û
|
||||
8FABE6 8FAAE6 8FABE6 ŭ Ŭ ŭ
|
||||
8FABE7 8FAAE7 8FABE7 ǔ Ǔ ǔ
|
||||
8FABE8 8FAAE8 8FABE8 ű Ű ű
|
||||
8FABE9 8FAAE9 8FABE9 ū Ū ū
|
||||
8FABEA 8FAAEA 8FABEA ų Ų ų
|
||||
8FABEB 8FAAEB 8FABEB ů Ů ů
|
||||
8FABEC 8FAAEC 8FABEC ũ Ũ ũ
|
||||
8FABED 8FAAED 8FABED ǘ Ǘ ǘ
|
||||
8FABEE 8FAAEE 8FABEE ǜ Ǜ ǜ
|
||||
8FABEF 8FAAEF 8FABEF ǚ Ǚ ǚ
|
||||
8FABF0 8FAAF0 8FABF0 ǖ Ǖ ǖ
|
||||
8FABF1 8FAAF1 8FABF1 ŵ Ŵ ŵ
|
||||
8FABF2 8FAAF2 8FABF2 ý Ý ý
|
||||
8FABF3 8FAAF3 8FABF3 ÿ Ÿ ÿ
|
||||
8FABF4 8FAAF4 8FABF4 ŷ Ŷ ŷ
|
||||
8FABF5 8FAAF5 8FABF5 ź Ź ź
|
||||
8FABF6 8FAAF6 8FABF6 ž Ž ž
|
||||
8FABF7 8FAAF7 8FABF7 ż Ż ż
|
||||
8FF3F3 8FF3FD 8FF3F3 ⅰ Ⅰ ⅰ
|
||||
8FF3F4 8FF3FE 8FF3F4 ⅱ Ⅱ ⅱ
|
||||
8FF3F5 8FF4A1 8FF3F5 ⅲ Ⅲ ⅲ
|
||||
8FF3F6 8FF4A2 8FF3F6 ⅳ Ⅳ ⅳ
|
||||
8FF3F7 8FF4A3 8FF3F7 ⅴ Ⅴ ⅴ
|
||||
8FF3F8 8FF4A4 8FF3F8 ⅵ Ⅵ ⅵ
|
||||
8FF3F9 8FF4A5 8FF3F9 ⅶ Ⅶ ⅶ
|
||||
8FF3FA 8FF4A6 8FF3FA ⅷ Ⅷ ⅷ
|
||||
8FF3FB 8FF4A7 8FF3FB ⅸ Ⅸ ⅸ
|
||||
8FF3FC 8FF4A8 8FF3FC ⅹ Ⅹ ⅹ
|
||||
8FF3FD 8FF3FD 8FF3F3 Ⅰ Ⅰ ⅰ
|
||||
8FF3FE 8FF3FE 8FF3F4 Ⅱ Ⅱ ⅱ
|
||||
8FF4A1 8FF4A1 8FF3F5 Ⅲ Ⅲ ⅲ
|
||||
8FF4A2 8FF4A2 8FF3F6 Ⅳ Ⅳ ⅳ
|
||||
8FF4A3 8FF4A3 8FF3F7 Ⅴ Ⅴ ⅴ
|
||||
8FF4A4 8FF4A4 8FF3F8 Ⅵ Ⅵ ⅵ
|
||||
8FF4A5 8FF4A5 8FF3F9 Ⅶ Ⅶ ⅶ
|
||||
8FF4A6 8FF4A6 8FF3FA Ⅷ Ⅷ ⅷ
|
||||
8FF4A7 8FF4A7 8FF3FB Ⅸ Ⅸ ⅸ
|
||||
8FF4A8 8FF4A8 8FF3FC Ⅹ Ⅹ ⅹ
|
||||
A2F2 A2F2 8FABA9 Å Å å
|
||||
A3C1 A3C1 A3E1 A A a
|
||||
A3C2 A3C2 A3E2 B B b
|
||||
A3C3 A3C3 A3E3 C C c
|
||||
A3C4 A3C4 A3E4 D D d
|
||||
A3C5 A3C5 A3E5 E E e
|
||||
A3C6 A3C6 A3E6 F F f
|
||||
A3C7 A3C7 A3E7 G G g
|
||||
A3C8 A3C8 A3E8 H H h
|
||||
A3C9 A3C9 A3E9 I I i
|
||||
A3CA A3CA A3EA J J j
|
||||
A3CB A3CB A3EB K K k
|
||||
A3CC A3CC A3EC L L l
|
||||
A3CD A3CD A3ED M M m
|
||||
A3CE A3CE A3EE N N n
|
||||
A3CF A3CF A3EF O O o
|
||||
A3D0 A3D0 A3F0 P P p
|
||||
A3D1 A3D1 A3F1 Q Q q
|
||||
A3D2 A3D2 A3F2 R R r
|
||||
A3D3 A3D3 A3F3 S S s
|
||||
A3D4 A3D4 A3F4 T T t
|
||||
A3D5 A3D5 A3F5 U U u
|
||||
A3D6 A3D6 A3F6 V V v
|
||||
A3D7 A3D7 A3F7 W W w
|
||||
A3D8 A3D8 A3F8 X X x
|
||||
A3D9 A3D9 A3F9 Y Y y
|
||||
A3DA A3DA A3FA Z Z z
|
||||
A3E1 A3C1 A3E1 a A a
|
||||
A3E2 A3C2 A3E2 b B b
|
||||
A3E3 A3C3 A3E3 c C c
|
||||
A3E4 A3C4 A3E4 d D d
|
||||
A3E5 A3C5 A3E5 e E e
|
||||
A3E6 A3C6 A3E6 f F f
|
||||
A3E7 A3C7 A3E7 g G g
|
||||
A3E8 A3C8 A3E8 h H h
|
||||
A3E9 A3C9 A3E9 i I i
|
||||
A3EA A3CA A3EA j J j
|
||||
A3EB A3CB A3EB k K k
|
||||
A3EC A3CC A3EC l L l
|
||||
A3ED A3CD A3ED m M m
|
||||
A3EE A3CE A3EE n N n
|
||||
A3EF A3CF A3EF o O o
|
||||
A3F0 A3D0 A3F0 p P p
|
||||
A3F1 A3D1 A3F1 q Q q
|
||||
A3F2 A3D2 A3F2 r R r
|
||||
A3F3 A3D3 A3F3 s S s
|
||||
A3F4 A3D4 A3F4 t T t
|
||||
A3F5 A3D5 A3F5 u U u
|
||||
A3F6 A3D6 A3F6 v V v
|
||||
A3F7 A3D7 A3F7 w W w
|
||||
A3F8 A3D8 A3F8 x X x
|
||||
A3F9 A3D9 A3F9 y Y y
|
||||
A3FA A3DA A3FA z Z z
|
||||
A6A1 A6A1 A6C1 Α Α α
|
||||
A6A2 A6A2 A6C2 Β Β β
|
||||
A6A3 A6A3 A6C3 Γ Γ γ
|
||||
A6A4 A6A4 A6C4 Δ Δ δ
|
||||
A6A5 A6A5 A6C5 Ε Ε ε
|
||||
A6A6 A6A6 A6C6 Ζ Ζ ζ
|
||||
A6A7 A6A7 A6C7 Η Η η
|
||||
A6A8 A6A8 A6C8 Θ Θ θ
|
||||
A6A9 A6A9 A6C9 Ι Ι ι
|
||||
A6AA A6AA A6CA Κ Κ κ
|
||||
A6AB A6AB A6CB Λ Λ λ
|
||||
A6AC A6AC A6CC Μ Μ μ
|
||||
A6AD A6AD A6CD Ν Ν ν
|
||||
A6AE A6AE A6CE Ξ Ξ ξ
|
||||
A6AF A6AF A6CF Ο Ο ο
|
||||
A6B0 A6B0 A6D0 Π Π π
|
||||
A6B1 A6B1 A6D1 Ρ Ρ ρ
|
||||
A6B2 A6B2 A6D2 Σ Σ σ
|
||||
A6B3 A6B3 A6D3 Τ Τ τ
|
||||
A6B4 A6B4 A6D4 Υ Υ υ
|
||||
A6B5 A6B5 A6D5 Φ Φ φ
|
||||
A6B6 A6B6 A6D6 Χ Χ χ
|
||||
A6B7 A6B7 A6D7 Ψ Ψ ψ
|
||||
A6B8 A6B8 A6D8 Ω Ω ω
|
||||
A6C1 A6A1 A6C1 α Α α
|
||||
A6C2 A6A2 A6C2 β Β β
|
||||
A6C3 A6A3 A6C3 γ Γ γ
|
||||
A6C4 A6A4 A6C4 δ Δ δ
|
||||
A6C5 A6A5 A6C5 ε Ε ε
|
||||
A6C6 A6A6 A6C6 ζ Ζ ζ
|
||||
A6C7 A6A7 A6C7 η Η η
|
||||
A6C8 A6A8 A6C8 θ Θ θ
|
||||
A6C9 A6A9 A6C9 ι Ι ι
|
||||
A6CA A6AA A6CA κ Κ κ
|
||||
A6CB A6AB A6CB λ Λ λ
|
||||
A6CC A6AC A6CC μ Μ μ
|
||||
A6CD A6AD A6CD ν Ν ν
|
||||
A6CE A6AE A6CE ξ Ξ ξ
|
||||
A6CF A6AF A6CF ο Ο ο
|
||||
A6D0 A6B0 A6D0 π Π π
|
||||
A6D1 A6B1 A6D1 ρ Ρ ρ
|
||||
A6D2 A6B2 A6D2 σ Σ σ
|
||||
A6D3 A6B3 A6D3 τ Τ τ
|
||||
A6D4 A6B4 A6D4 υ Υ υ
|
||||
A6D5 A6B5 A6D5 φ Φ φ
|
||||
A6D6 A6B6 A6D6 χ Χ χ
|
||||
A6D7 A6B7 A6D7 ψ Ψ ψ
|
||||
A6D8 A6B8 A6D8 ω Ω ω
|
||||
A7A1 A7A1 A7D1 А А а
|
||||
A7A2 A7A2 A7D2 Б Б б
|
||||
A7A3 A7A3 A7D3 В В в
|
||||
A7A4 A7A4 A7D4 Г Г г
|
||||
A7A5 A7A5 A7D5 Д Д д
|
||||
A7A6 A7A6 A7D6 Е Е е
|
||||
A7A7 A7A7 A7D7 Ё Ё ё
|
||||
A7A8 A7A8 A7D8 Ж Ж ж
|
||||
A7A9 A7A9 A7D9 З З з
|
||||
A7AA A7AA A7DA И И и
|
||||
A7AB A7AB A7DB Й Й й
|
||||
A7AC A7AC A7DC К К к
|
||||
A7AD A7AD A7DD Л Л л
|
||||
A7AE A7AE A7DE М М м
|
||||
A7AF A7AF A7DF Н Н н
|
||||
A7B0 A7B0 A7E0 О О о
|
||||
A7B1 A7B1 A7E1 П П п
|
||||
A7B2 A7B2 A7E2 Р Р р
|
||||
A7B3 A7B3 A7E3 С С с
|
||||
A7B4 A7B4 A7E4 Т Т т
|
||||
A7B5 A7B5 A7E5 У У у
|
||||
A7B6 A7B6 A7E6 Ф Ф ф
|
||||
A7B7 A7B7 A7E7 Х Х х
|
||||
A7B8 A7B8 A7E8 Ц Ц ц
|
||||
A7B9 A7B9 A7E9 Ч Ч ч
|
||||
A7BA A7BA A7EA Ш Ш ш
|
||||
A7BB A7BB A7EB Щ Щ щ
|
||||
A7BC A7BC A7EC Ъ Ъ ъ
|
||||
A7BD A7BD A7ED Ы Ы ы
|
||||
A7BE A7BE A7EE Ь Ь ь
|
||||
A7BF A7BF A7EF Э Э э
|
||||
A7C0 A7C0 A7F0 Ю Ю ю
|
||||
A7C1 A7C1 A7F1 Я Я я
|
||||
A7D1 A7A1 A7D1 а А а
|
||||
A7D2 A7A2 A7D2 б Б б
|
||||
A7D3 A7A3 A7D3 в В в
|
||||
A7D4 A7A4 A7D4 г Г г
|
||||
A7D5 A7A5 A7D5 д Д д
|
||||
A7D6 A7A6 A7D6 е Е е
|
||||
A7D7 A7A7 A7D7 ё Ё ё
|
||||
A7D8 A7A8 A7D8 ж Ж ж
|
||||
A7D9 A7A9 A7D9 з З з
|
||||
A7DA A7AA A7DA и И и
|
||||
A7DB A7AB A7DB й Й й
|
||||
A7DC A7AC A7DC к К к
|
||||
A7DD A7AD A7DD л Л л
|
||||
A7DE A7AE A7DE м М м
|
||||
A7DF A7AF A7DF н Н н
|
||||
A7E0 A7B0 A7E0 о О о
|
||||
A7E1 A7B1 A7E1 п П п
|
||||
A7E2 A7B2 A7E2 р Р р
|
||||
A7E3 A7B3 A7E3 с С с
|
||||
A7E4 A7B4 A7E4 т Т т
|
||||
A7E5 A7B5 A7E5 у У у
|
||||
A7E6 A7B6 A7E6 ф Ф ф
|
||||
A7E7 A7B7 A7E7 х Х х
|
||||
A7E8 A7B8 A7E8 ц Ц ц
|
||||
A7E9 A7B9 A7E9 ч Ч ч
|
||||
A7EA A7BA A7EA ш Ш ш
|
||||
A7EB A7BB A7EB щ Щ щ
|
||||
A7EC A7BC A7EC ъ Ъ ъ
|
||||
A7ED A7BD A7ED ы Ы ы
|
||||
A7EE A7BE A7EE ь Ь ь
|
||||
A7EF A7BF A7EF э Э э
|
||||
A7F0 A7C0 A7F0 ю Ю ю
|
||||
A7F1 A7C1 A7F1 я Я я
|
||||
ADB5 ADB5 8FF3F3 Ⅰ Ⅰ ⅰ
|
||||
ADB6 ADB6 8FF3F4 Ⅱ Ⅱ ⅱ
|
||||
ADB7 ADB7 8FF3F5 Ⅲ Ⅲ ⅲ
|
||||
ADB8 ADB8 8FF3F6 Ⅳ Ⅳ ⅳ
|
||||
ADB9 ADB9 8FF3F7 Ⅴ Ⅴ ⅴ
|
||||
ADBA ADBA 8FF3F8 Ⅵ Ⅵ ⅵ
|
||||
ADBB ADBB 8FF3F9 Ⅶ Ⅶ ⅶ
|
||||
ADBC ADBC 8FF3FA Ⅷ Ⅷ ⅷ
|
||||
ADBD ADBD 8FF3FB Ⅸ Ⅸ ⅸ
|
||||
ADBE ADBE 8FF3FC Ⅹ Ⅹ ⅹ
|
||||
SELECT * FROM t1
|
||||
WHERE HEX(CAST(LOWER(a) AS CHAR CHARACTER SET utf8)) <>
|
||||
HEX(LOWER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
|
||||
code a
|
||||
8FAABC Ģ
|
||||
SELECT * FROM t1
|
||||
WHERE HEX(CAST(UPPER(a) AS CHAR CHARACTER SET utf8)) <>
|
||||
HEX(UPPER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
|
||||
code a
|
||||
8FA9C3 ð
|
||||
8FABB9 ǵ
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# End of 5.5 tests
|
||||
#
|
||||
|
@ -24255,3 +24255,350 @@ FDFD FDFD E7BEB2 FDFD
|
||||
FDFE FDFE E8A9B0 FDFE
|
||||
DROP TABLE t1, t2;
|
||||
End of 5.4 tests
|
||||
#
|
||||
# Start of 5.5 tests
|
||||
#
|
||||
#
|
||||
# Testing WL#4583 Case conversion in Asian character sets
|
||||
#
|
||||
SET NAMES utf8;
|
||||
SET collation_connection=euckr_korean_ci;
|
||||
CREATE TABLE t1 (b VARCHAR(2));
|
||||
INSERT INTO t1 VALUES ('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7');
|
||||
INSERT INTO t1 VALUES ('8'),('9'),('A'),('B'),('C'),('D'),('E'),('F');
|
||||
CREATE TEMPORARY TABLE head AS SELECT concat(b1.b, b2.b) AS head FROM t1 b1, t1 b2;
|
||||
CREATE TEMPORARY TABLE tail AS SELECT concat(b1.b, b2.b) AS tail FROM t1 b1, t1 b2;
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 AS
|
||||
SELECT concat(head, tail) AS code, ' ' AS a
|
||||
FROM head, tail
|
||||
WHERE (head BETWEEN '80' AND 'FF') AND (tail BETWEEN '20' AND 'FF')
|
||||
ORDER BY head, tail;
|
||||
DROP TEMPORARY TABLE head, tail;
|
||||
SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`code` varchar(8) DEFAULT NULL,
|
||||
`a` varchar(1) CHARACTER SET euckr NOT NULL DEFAULT ''
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
UPDATE t1 SET a=unhex(code) ORDER BY code;
|
||||
Warnings:
|
||||
Warning 1366 Incorrect string value: '\x80 ' for column 'a' at row 1
|
||||
Warning 1366 Incorrect string value: '\x80!' for column 'a' at row 2
|
||||
Warning 1366 Incorrect string value: '\x80"' for column 'a' at row 3
|
||||
Warning 1366 Incorrect string value: '\x80#' for column 'a' at row 4
|
||||
Warning 1366 Incorrect string value: '\x80$' for column 'a' at row 5
|
||||
Warning 1366 Incorrect string value: '\x80%' for column 'a' at row 6
|
||||
Warning 1366 Incorrect string value: '\x80&' for column 'a' at row 7
|
||||
Warning 1366 Incorrect string value: '\x80'' for column 'a' at row 8
|
||||
Warning 1366 Incorrect string value: '\x80(' for column 'a' at row 9
|
||||
Warning 1366 Incorrect string value: '\x80)' for column 'a' at row 10
|
||||
Warning 1366 Incorrect string value: '\x80*' for column 'a' at row 11
|
||||
Warning 1366 Incorrect string value: '\x80+' for column 'a' at row 12
|
||||
Warning 1366 Incorrect string value: '\x80,' for column 'a' at row 13
|
||||
Warning 1366 Incorrect string value: '\x80-' for column 'a' at row 14
|
||||
Warning 1366 Incorrect string value: '\x80.' for column 'a' at row 15
|
||||
Warning 1366 Incorrect string value: '\x80/' for column 'a' at row 16
|
||||
Warning 1366 Incorrect string value: '\x800' for column 'a' at row 17
|
||||
Warning 1366 Incorrect string value: '\x801' for column 'a' at row 18
|
||||
Warning 1366 Incorrect string value: '\x802' for column 'a' at row 19
|
||||
Warning 1366 Incorrect string value: '\x803' for column 'a' at row 20
|
||||
Warning 1366 Incorrect string value: '\x804' for column 'a' at row 21
|
||||
Warning 1366 Incorrect string value: '\x805' for column 'a' at row 22
|
||||
Warning 1366 Incorrect string value: '\x806' for column 'a' at row 23
|
||||
Warning 1366 Incorrect string value: '\x807' for column 'a' at row 24
|
||||
Warning 1366 Incorrect string value: '\x808' for column 'a' at row 25
|
||||
Warning 1366 Incorrect string value: '\x809' for column 'a' at row 26
|
||||
Warning 1366 Incorrect string value: '\x80:' for column 'a' at row 27
|
||||
Warning 1366 Incorrect string value: '\x80;' for column 'a' at row 28
|
||||
Warning 1366 Incorrect string value: '\x80<' for column 'a' at row 29
|
||||
Warning 1366 Incorrect string value: '\x80=' for column 'a' at row 30
|
||||
Warning 1366 Incorrect string value: '\x80>' for column 'a' at row 31
|
||||
Warning 1366 Incorrect string value: '\x80?' for column 'a' at row 32
|
||||
Warning 1366 Incorrect string value: '\x80@' for column 'a' at row 33
|
||||
Warning 1366 Incorrect string value: '\x80A' for column 'a' at row 34
|
||||
Warning 1366 Incorrect string value: '\x80B' for column 'a' at row 35
|
||||
Warning 1366 Incorrect string value: '\x80C' for column 'a' at row 36
|
||||
Warning 1366 Incorrect string value: '\x80D' for column 'a' at row 37
|
||||
Warning 1366 Incorrect string value: '\x80E' for column 'a' at row 38
|
||||
Warning 1366 Incorrect string value: '\x80F' for column 'a' at row 39
|
||||
Warning 1366 Incorrect string value: '\x80G' for column 'a' at row 40
|
||||
Warning 1366 Incorrect string value: '\x80H' for column 'a' at row 41
|
||||
Warning 1366 Incorrect string value: '\x80I' for column 'a' at row 42
|
||||
Warning 1366 Incorrect string value: '\x80J' for column 'a' at row 43
|
||||
Warning 1366 Incorrect string value: '\x80K' for column 'a' at row 44
|
||||
Warning 1366 Incorrect string value: '\x80L' for column 'a' at row 45
|
||||
Warning 1366 Incorrect string value: '\x80M' for column 'a' at row 46
|
||||
Warning 1366 Incorrect string value: '\x80N' for column 'a' at row 47
|
||||
Warning 1366 Incorrect string value: '\x80O' for column 'a' at row 48
|
||||
Warning 1366 Incorrect string value: '\x80P' for column 'a' at row 49
|
||||
Warning 1366 Incorrect string value: '\x80Q' for column 'a' at row 50
|
||||
Warning 1366 Incorrect string value: '\x80R' for column 'a' at row 51
|
||||
Warning 1366 Incorrect string value: '\x80S' for column 'a' at row 52
|
||||
Warning 1366 Incorrect string value: '\x80T' for column 'a' at row 53
|
||||
Warning 1366 Incorrect string value: '\x80U' for column 'a' at row 54
|
||||
Warning 1366 Incorrect string value: '\x80V' for column 'a' at row 55
|
||||
Warning 1366 Incorrect string value: '\x80W' for column 'a' at row 56
|
||||
Warning 1366 Incorrect string value: '\x80X' for column 'a' at row 57
|
||||
Warning 1366 Incorrect string value: '\x80Y' for column 'a' at row 58
|
||||
Warning 1366 Incorrect string value: '\x80Z' for column 'a' at row 59
|
||||
Warning 1366 Incorrect string value: '\x80[' for column 'a' at row 60
|
||||
Warning 1366 Incorrect string value: '\x80\' for column 'a' at row 61
|
||||
Warning 1366 Incorrect string value: '\x80]' for column 'a' at row 62
|
||||
Warning 1366 Incorrect string value: '\x80^' for column 'a' at row 63
|
||||
Warning 1366 Incorrect string value: '\x80_' for column 'a' at row 64
|
||||
SELECT COUNT(*) FROM t1 WHERE a<>'';
|
||||
COUNT(*)
|
||||
22428
|
||||
SELECT code, hex(upper(a)), hex(lower(a)),a, upper(a), lower(a) FROM t1 WHERE hex(a)<>hex(upper(a)) OR hex(a)<>hex(lower(a));
|
||||
code hex(upper(a)) hex(lower(a)) a upper(a) lower(a)
|
||||
A3C1 A3C1 A3E1 A A a
|
||||
A3C2 A3C2 A3E2 B B b
|
||||
A3C3 A3C3 A3E3 C C c
|
||||
A3C4 A3C4 A3E4 D D d
|
||||
A3C5 A3C5 A3E5 E E e
|
||||
A3C6 A3C6 A3E6 F F f
|
||||
A3C7 A3C7 A3E7 G G g
|
||||
A3C8 A3C8 A3E8 H H h
|
||||
A3C9 A3C9 A3E9 I I i
|
||||
A3CA A3CA A3EA J J j
|
||||
A3CB A3CB A3EB K K k
|
||||
A3CC A3CC A3EC L L l
|
||||
A3CD A3CD A3ED M M m
|
||||
A3CE A3CE A3EE N N n
|
||||
A3CF A3CF A3EF O O o
|
||||
A3D0 A3D0 A3F0 P P p
|
||||
A3D1 A3D1 A3F1 Q Q q
|
||||
A3D2 A3D2 A3F2 R R r
|
||||
A3D3 A3D3 A3F3 S S s
|
||||
A3D4 A3D4 A3F4 T T t
|
||||
A3D5 A3D5 A3F5 U U u
|
||||
A3D6 A3D6 A3F6 V V v
|
||||
A3D7 A3D7 A3F7 W W w
|
||||
A3D8 A3D8 A3F8 X X x
|
||||
A3D9 A3D9 A3F9 Y Y y
|
||||
A3DA A3DA A3FA Z Z z
|
||||
A3E1 A3C1 A3E1 a A a
|
||||
A3E2 A3C2 A3E2 b B b
|
||||
A3E3 A3C3 A3E3 c C c
|
||||
A3E4 A3C4 A3E4 d D d
|
||||
A3E5 A3C5 A3E5 e E e
|
||||
A3E6 A3C6 A3E6 f F f
|
||||
A3E7 A3C7 A3E7 g G g
|
||||
A3E8 A3C8 A3E8 h H h
|
||||
A3E9 A3C9 A3E9 i I i
|
||||
A3EA A3CA A3EA j J j
|
||||
A3EB A3CB A3EB k K k
|
||||
A3EC A3CC A3EC l L l
|
||||
A3ED A3CD A3ED m M m
|
||||
A3EE A3CE A3EE n N n
|
||||
A3EF A3CF A3EF o O o
|
||||
A3F0 A3D0 A3F0 p P p
|
||||
A3F1 A3D1 A3F1 q Q q
|
||||
A3F2 A3D2 A3F2 r R r
|
||||
A3F3 A3D3 A3F3 s S s
|
||||
A3F4 A3D4 A3F4 t T t
|
||||
A3F5 A3D5 A3F5 u U u
|
||||
A3F6 A3D6 A3F6 v V v
|
||||
A3F7 A3D7 A3F7 w W w
|
||||
A3F8 A3D8 A3F8 x X x
|
||||
A3F9 A3D9 A3F9 y Y y
|
||||
A3FA A3DA A3FA z Z z
|
||||
A5A1 A5B0 A5A1 ⅰ Ⅰ ⅰ
|
||||
A5A2 A5B1 A5A2 ⅱ Ⅱ ⅱ
|
||||
A5A3 A5B2 A5A3 ⅲ Ⅲ ⅲ
|
||||
A5A4 A5B3 A5A4 ⅳ Ⅳ ⅳ
|
||||
A5A5 A5B4 A5A5 ⅴ Ⅴ ⅴ
|
||||
A5A6 A5B5 A5A6 ⅵ Ⅵ ⅵ
|
||||
A5A7 A5B6 A5A7 ⅶ Ⅶ ⅶ
|
||||
A5A8 A5B7 A5A8 ⅷ Ⅷ ⅷ
|
||||
A5A9 A5B8 A5A9 ⅸ Ⅸ ⅸ
|
||||
A5AA A5B9 A5AA ⅹ Ⅹ ⅹ
|
||||
A5B0 A5B0 A5A1 Ⅰ Ⅰ ⅰ
|
||||
A5B1 A5B1 A5A2 Ⅱ Ⅱ ⅱ
|
||||
A5B2 A5B2 A5A3 Ⅲ Ⅲ ⅲ
|
||||
A5B3 A5B3 A5A4 Ⅳ Ⅳ ⅳ
|
||||
A5B4 A5B4 A5A5 Ⅴ Ⅴ ⅴ
|
||||
A5B5 A5B5 A5A6 Ⅵ Ⅵ ⅵ
|
||||
A5B6 A5B6 A5A7 Ⅶ Ⅶ ⅶ
|
||||
A5B7 A5B7 A5A8 Ⅷ Ⅷ ⅷ
|
||||
A5B8 A5B8 A5A9 Ⅸ Ⅸ ⅸ
|
||||
A5B9 A5B9 A5AA Ⅹ Ⅹ ⅹ
|
||||
A5C1 A5C1 A5E1 Α Α α
|
||||
A5C2 A5C2 A5E2 Β Β β
|
||||
A5C3 A5C3 A5E3 Γ Γ γ
|
||||
A5C4 A5C4 A5E4 Δ Δ δ
|
||||
A5C5 A5C5 A5E5 Ε Ε ε
|
||||
A5C6 A5C6 A5E6 Ζ Ζ ζ
|
||||
A5C7 A5C7 A5E7 Η Η η
|
||||
A5C8 A5C8 A5E8 Θ Θ θ
|
||||
A5C9 A5C9 A5E9 Ι Ι ι
|
||||
A5CA A5CA A5EA Κ Κ κ
|
||||
A5CB A5CB A5EB Λ Λ λ
|
||||
A5CC A5CC A5EC Μ Μ μ
|
||||
A5CD A5CD A5ED Ν Ν ν
|
||||
A5CE A5CE A5EE Ξ Ξ ξ
|
||||
A5CF A5CF A5EF Ο Ο ο
|
||||
A5D0 A5D0 A5F0 Π Π π
|
||||
A5D1 A5D1 A5F1 Ρ Ρ ρ
|
||||
A5D2 A5D2 A5F2 Σ Σ σ
|
||||
A5D3 A5D3 A5F3 Τ Τ τ
|
||||
A5D4 A5D4 A5F4 Υ Υ υ
|
||||
A5D5 A5D5 A5F5 Φ Φ φ
|
||||
A5D6 A5D6 A5F6 Χ Χ χ
|
||||
A5D7 A5D7 A5F7 Ψ Ψ ψ
|
||||
A5D8 A5D8 A5F8 Ω Ω ω
|
||||
A5E1 A5C1 A5E1 α Α α
|
||||
A5E2 A5C2 A5E2 β Β β
|
||||
A5E3 A5C3 A5E3 γ Γ γ
|
||||
A5E4 A5C4 A5E4 δ Δ δ
|
||||
A5E5 A5C5 A5E5 ε Ε ε
|
||||
A5E6 A5C6 A5E6 ζ Ζ ζ
|
||||
A5E7 A5C7 A5E7 η Η η
|
||||
A5E8 A5C8 A5E8 θ Θ θ
|
||||
A5E9 A5C9 A5E9 ι Ι ι
|
||||
A5EA A5CA A5EA κ Κ κ
|
||||
A5EB A5CB A5EB λ Λ λ
|
||||
A5EC A5CC A5EC μ Μ μ
|
||||
A5ED A5CD A5ED ν Ν ν
|
||||
A5EE A5CE A5EE ξ Ξ ξ
|
||||
A5EF A5CF A5EF ο Ο ο
|
||||
A5F0 A5D0 A5F0 π Π π
|
||||
A5F1 A5D1 A5F1 ρ Ρ ρ
|
||||
A5F2 A5D2 A5F2 σ Σ σ
|
||||
A5F3 A5D3 A5F3 τ Τ τ
|
||||
A5F4 A5D4 A5F4 υ Υ υ
|
||||
A5F5 A5D5 A5F5 φ Φ φ
|
||||
A5F6 A5D6 A5F6 χ Χ χ
|
||||
A5F7 A5D7 A5F7 ψ Ψ ψ
|
||||
A5F8 A5D8 A5F8 ω Ω ω
|
||||
A7D9 A7D9 A5F8 Ω Ω ω
|
||||
A8A1 A8A1 A9A1 Æ Æ æ
|
||||
A8A2 A8A2 A9A3 Ð Ð ð
|
||||
A8A4 A8A4 A9A4 Ħ Ħ ħ
|
||||
A8A6 A8A6 A9A6 IJ IJ ij
|
||||
A8A8 A8A8 A9A8 Ŀ Ŀ ŀ
|
||||
A8A9 A8A9 A9A9 Ł Ł ł
|
||||
A8AA A8AA A9AA Ø Ø ø
|
||||
A8AB A8AB A9AB Œ Œ œ
|
||||
A8AD A8AD A9AD Þ Þ þ
|
||||
A8AE A8AE A9AE Ŧ Ŧ ŧ
|
||||
A8AF A8AF A9AF Ŋ Ŋ ŋ
|
||||
A9A1 A8A1 A9A1 æ Æ æ
|
||||
A9A3 A8A2 A9A3 ð Ð ð
|
||||
A9A4 A8A4 A9A4 ħ Ħ ħ
|
||||
A9A5 49 A9A5 ı I ı
|
||||
A9A6 A8A6 A9A6 ij IJ ij
|
||||
A9A8 A8A8 A9A8 ŀ Ŀ ŀ
|
||||
A9A9 A8A9 A9A9 ł Ł ł
|
||||
A9AA A8AA A9AA ø Ø ø
|
||||
A9AB A8AB A9AB œ Œ œ
|
||||
A9AD A8AD A9AD þ Þ þ
|
||||
A9AE A8AE A9AE ŧ Ŧ ŧ
|
||||
A9AF A8AF A9AF ŋ Ŋ ŋ
|
||||
ACA1 ACA1 ACD1 А А а
|
||||
ACA2 ACA2 ACD2 Б Б б
|
||||
ACA3 ACA3 ACD3 В В в
|
||||
ACA4 ACA4 ACD4 Г Г г
|
||||
ACA5 ACA5 ACD5 Д Д д
|
||||
ACA6 ACA6 ACD6 Е Е е
|
||||
ACA7 ACA7 ACD7 Ё Ё ё
|
||||
ACA8 ACA8 ACD8 Ж Ж ж
|
||||
ACA9 ACA9 ACD9 З З з
|
||||
ACAA ACAA ACDA И И и
|
||||
ACAB ACAB ACDB Й Й й
|
||||
ACAC ACAC ACDC К К к
|
||||
ACAD ACAD ACDD Л Л л
|
||||
ACAE ACAE ACDE М М м
|
||||
ACAF ACAF ACDF Н Н н
|
||||
ACB0 ACB0 ACE0 О О о
|
||||
ACB1 ACB1 ACE1 П П п
|
||||
ACB2 ACB2 ACE2 Р Р р
|
||||
ACB3 ACB3 ACE3 С С с
|
||||
ACB4 ACB4 ACE4 Т Т т
|
||||
ACB5 ACB5 ACE5 У У у
|
||||
ACB6 ACB6 ACE6 Ф Ф ф
|
||||
ACB7 ACB7 ACE7 Х Х х
|
||||
ACB8 ACB8 ACE8 Ц Ц ц
|
||||
ACB9 ACB9 ACE9 Ч Ч ч
|
||||
ACBA ACBA ACEA Ш Ш ш
|
||||
ACBB ACBB ACEB Щ Щ щ
|
||||
ACBC ACBC ACEC Ъ Ъ ъ
|
||||
ACBD ACBD ACED Ы Ы ы
|
||||
ACBE ACBE ACEE Ь Ь ь
|
||||
ACBF ACBF ACEF Э Э э
|
||||
ACC0 ACC0 ACF0 Ю Ю ю
|
||||
ACC1 ACC1 ACF1 Я Я я
|
||||
ACD1 ACA1 ACD1 а А а
|
||||
ACD2 ACA2 ACD2 б Б б
|
||||
ACD3 ACA3 ACD3 в В в
|
||||
ACD4 ACA4 ACD4 г Г г
|
||||
ACD5 ACA5 ACD5 д Д д
|
||||
ACD6 ACA6 ACD6 е Е е
|
||||
ACD7 ACA7 ACD7 ё Ё ё
|
||||
ACD8 ACA8 ACD8 ж Ж ж
|
||||
ACD9 ACA9 ACD9 з З з
|
||||
ACDA ACAA ACDA и И и
|
||||
ACDB ACAB ACDB й Й й
|
||||
ACDC ACAC ACDC к К к
|
||||
ACDD ACAD ACDD л Л л
|
||||
ACDE ACAE ACDE м М м
|
||||
ACDF ACAF ACDF н Н н
|
||||
ACE0 ACB0 ACE0 о О о
|
||||
ACE1 ACB1 ACE1 п П п
|
||||
ACE2 ACB2 ACE2 р Р р
|
||||
ACE3 ACB3 ACE3 с С с
|
||||
ACE4 ACB4 ACE4 т Т т
|
||||
ACE5 ACB5 ACE5 у У у
|
||||
ACE6 ACB6 ACE6 ф Ф ф
|
||||
ACE7 ACB7 ACE7 х Х х
|
||||
ACE8 ACB8 ACE8 ц Ц ц
|
||||
ACE9 ACB9 ACE9 ч Ч ч
|
||||
ACEA ACBA ACEA ш Ш ш
|
||||
ACEB ACBB ACEB щ Щ щ
|
||||
ACEC ACBC ACEC ъ Ъ ъ
|
||||
ACED ACBD ACED ы Ы ы
|
||||
ACEE ACBE ACEE ь Ь ь
|
||||
ACEF ACBF ACEF э Э э
|
||||
ACF0 ACC0 ACF0 ю Ю ю
|
||||
ACF1 ACC1 ACF1 я Я я
|
||||
SELECT * FROM t1
|
||||
WHERE HEX(CAST(LOWER(a) AS CHAR CHARACTER SET utf8)) <>
|
||||
HEX(LOWER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
|
||||
code a
|
||||
A1CA Å
|
||||
SELECT * FROM t1
|
||||
WHERE HEX(CAST(UPPER(a) AS CHAR CHARACTER SET utf8)) <>
|
||||
HEX(UPPER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
|
||||
code a
|
||||
A8CD ⓐ
|
||||
A8CE ⓑ
|
||||
A8CF ⓒ
|
||||
A8D0 ⓓ
|
||||
A8D1 ⓔ
|
||||
A8D2 ⓕ
|
||||
A8D3 ⓖ
|
||||
A8D4 ⓗ
|
||||
A8D5 ⓘ
|
||||
A8D6 ⓙ
|
||||
A8D7 ⓚ
|
||||
A8D8 ⓛ
|
||||
A8D9 ⓜ
|
||||
A8DA ⓝ
|
||||
A8DB ⓞ
|
||||
A8DC ⓟ
|
||||
A8DD ⓠ
|
||||
A8DE ⓡ
|
||||
A8DF ⓢ
|
||||
A8E0 ⓣ
|
||||
A8E1 ⓤ
|
||||
A8E2 ⓥ
|
||||
A8E3 ⓦ
|
||||
A8E4 ⓧ
|
||||
A8E5 ⓨ
|
||||
A8E6 ⓩ
|
||||
A9A2 đ
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# End of 5.5 tests
|
||||
#
|
||||
|
@ -235,3 +235,316 @@ hex(a)
|
||||
A2A1
|
||||
D7FE
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# Start of 5.5 tests
|
||||
#
|
||||
#
|
||||
# Testing WL#4583 Case conversion in Asian character sets
|
||||
#
|
||||
SET NAMES utf8;
|
||||
SET collation_connection=gb2312_chinese_ci;
|
||||
CREATE TABLE t1 (b VARCHAR(2));
|
||||
INSERT INTO t1 VALUES ('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7');
|
||||
INSERT INTO t1 VALUES ('8'),('9'),('A'),('B'),('C'),('D'),('E'),('F');
|
||||
CREATE TEMPORARY TABLE head AS SELECT concat(b1.b, b2.b) AS head FROM t1 b1, t1 b2;
|
||||
CREATE TEMPORARY TABLE tail AS SELECT concat(b1.b, b2.b) AS tail FROM t1 b1, t1 b2;
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 AS
|
||||
SELECT concat(head, tail) AS code, ' ' AS a
|
||||
FROM head, tail
|
||||
WHERE (head BETWEEN '80' AND 'FF') AND (tail BETWEEN '20' AND 'FF')
|
||||
ORDER BY head, tail;
|
||||
DROP TEMPORARY TABLE head, tail;
|
||||
SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`code` varchar(8) DEFAULT NULL,
|
||||
`a` varchar(1) CHARACTER SET gb2312 NOT NULL DEFAULT ''
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
UPDATE t1 SET a=unhex(code) ORDER BY code;
|
||||
Warnings:
|
||||
Warning 1366 Incorrect string value: '\x80 ' for column 'a' at row 1
|
||||
Warning 1366 Incorrect string value: '\x80!' for column 'a' at row 2
|
||||
Warning 1366 Incorrect string value: '\x80"' for column 'a' at row 3
|
||||
Warning 1366 Incorrect string value: '\x80#' for column 'a' at row 4
|
||||
Warning 1366 Incorrect string value: '\x80$' for column 'a' at row 5
|
||||
Warning 1366 Incorrect string value: '\x80%' for column 'a' at row 6
|
||||
Warning 1366 Incorrect string value: '\x80&' for column 'a' at row 7
|
||||
Warning 1366 Incorrect string value: '\x80'' for column 'a' at row 8
|
||||
Warning 1366 Incorrect string value: '\x80(' for column 'a' at row 9
|
||||
Warning 1366 Incorrect string value: '\x80)' for column 'a' at row 10
|
||||
Warning 1366 Incorrect string value: '\x80*' for column 'a' at row 11
|
||||
Warning 1366 Incorrect string value: '\x80+' for column 'a' at row 12
|
||||
Warning 1366 Incorrect string value: '\x80,' for column 'a' at row 13
|
||||
Warning 1366 Incorrect string value: '\x80-' for column 'a' at row 14
|
||||
Warning 1366 Incorrect string value: '\x80.' for column 'a' at row 15
|
||||
Warning 1366 Incorrect string value: '\x80/' for column 'a' at row 16
|
||||
Warning 1366 Incorrect string value: '\x800' for column 'a' at row 17
|
||||
Warning 1366 Incorrect string value: '\x801' for column 'a' at row 18
|
||||
Warning 1366 Incorrect string value: '\x802' for column 'a' at row 19
|
||||
Warning 1366 Incorrect string value: '\x803' for column 'a' at row 20
|
||||
Warning 1366 Incorrect string value: '\x804' for column 'a' at row 21
|
||||
Warning 1366 Incorrect string value: '\x805' for column 'a' at row 22
|
||||
Warning 1366 Incorrect string value: '\x806' for column 'a' at row 23
|
||||
Warning 1366 Incorrect string value: '\x807' for column 'a' at row 24
|
||||
Warning 1366 Incorrect string value: '\x808' for column 'a' at row 25
|
||||
Warning 1366 Incorrect string value: '\x809' for column 'a' at row 26
|
||||
Warning 1366 Incorrect string value: '\x80:' for column 'a' at row 27
|
||||
Warning 1366 Incorrect string value: '\x80;' for column 'a' at row 28
|
||||
Warning 1366 Incorrect string value: '\x80<' for column 'a' at row 29
|
||||
Warning 1366 Incorrect string value: '\x80=' for column 'a' at row 30
|
||||
Warning 1366 Incorrect string value: '\x80>' for column 'a' at row 31
|
||||
Warning 1366 Incorrect string value: '\x80?' for column 'a' at row 32
|
||||
Warning 1366 Incorrect string value: '\x80@' for column 'a' at row 33
|
||||
Warning 1366 Incorrect string value: '\x80A' for column 'a' at row 34
|
||||
Warning 1366 Incorrect string value: '\x80B' for column 'a' at row 35
|
||||
Warning 1366 Incorrect string value: '\x80C' for column 'a' at row 36
|
||||
Warning 1366 Incorrect string value: '\x80D' for column 'a' at row 37
|
||||
Warning 1366 Incorrect string value: '\x80E' for column 'a' at row 38
|
||||
Warning 1366 Incorrect string value: '\x80F' for column 'a' at row 39
|
||||
Warning 1366 Incorrect string value: '\x80G' for column 'a' at row 40
|
||||
Warning 1366 Incorrect string value: '\x80H' for column 'a' at row 41
|
||||
Warning 1366 Incorrect string value: '\x80I' for column 'a' at row 42
|
||||
Warning 1366 Incorrect string value: '\x80J' for column 'a' at row 43
|
||||
Warning 1366 Incorrect string value: '\x80K' for column 'a' at row 44
|
||||
Warning 1366 Incorrect string value: '\x80L' for column 'a' at row 45
|
||||
Warning 1366 Incorrect string value: '\x80M' for column 'a' at row 46
|
||||
Warning 1366 Incorrect string value: '\x80N' for column 'a' at row 47
|
||||
Warning 1366 Incorrect string value: '\x80O' for column 'a' at row 48
|
||||
Warning 1366 Incorrect string value: '\x80P' for column 'a' at row 49
|
||||
Warning 1366 Incorrect string value: '\x80Q' for column 'a' at row 50
|
||||
Warning 1366 Incorrect string value: '\x80R' for column 'a' at row 51
|
||||
Warning 1366 Incorrect string value: '\x80S' for column 'a' at row 52
|
||||
Warning 1366 Incorrect string value: '\x80T' for column 'a' at row 53
|
||||
Warning 1366 Incorrect string value: '\x80U' for column 'a' at row 54
|
||||
Warning 1366 Incorrect string value: '\x80V' for column 'a' at row 55
|
||||
Warning 1366 Incorrect string value: '\x80W' for column 'a' at row 56
|
||||
Warning 1366 Incorrect string value: '\x80X' for column 'a' at row 57
|
||||
Warning 1366 Incorrect string value: '\x80Y' for column 'a' at row 58
|
||||
Warning 1366 Incorrect string value: '\x80Z' for column 'a' at row 59
|
||||
Warning 1366 Incorrect string value: '\x80[' for column 'a' at row 60
|
||||
Warning 1366 Incorrect string value: '\x80\' for column 'a' at row 61
|
||||
Warning 1366 Incorrect string value: '\x80]' for column 'a' at row 62
|
||||
Warning 1366 Incorrect string value: '\x80^' for column 'a' at row 63
|
||||
Warning 1366 Incorrect string value: '\x80_' for column 'a' at row 64
|
||||
SELECT COUNT(*) FROM t1 WHERE a<>'';
|
||||
COUNT(*)
|
||||
8178
|
||||
SELECT code, hex(upper(a)), hex(lower(a)),a, upper(a), lower(a) FROM t1 WHERE hex(a)<>hex(upper(a)) OR hex(a)<>hex(lower(a));
|
||||
code hex(upper(a)) hex(lower(a)) a upper(a) lower(a)
|
||||
A3C1 A3C1 A3E1 A A a
|
||||
A3C2 A3C2 A3E2 B B b
|
||||
A3C3 A3C3 A3E3 C C c
|
||||
A3C4 A3C4 A3E4 D D d
|
||||
A3C5 A3C5 A3E5 E E e
|
||||
A3C6 A3C6 A3E6 F F f
|
||||
A3C7 A3C7 A3E7 G G g
|
||||
A3C8 A3C8 A3E8 H H h
|
||||
A3C9 A3C9 A3E9 I I i
|
||||
A3CA A3CA A3EA J J j
|
||||
A3CB A3CB A3EB K K k
|
||||
A3CC A3CC A3EC L L l
|
||||
A3CD A3CD A3ED M M m
|
||||
A3CE A3CE A3EE N N n
|
||||
A3CF A3CF A3EF O O o
|
||||
A3D0 A3D0 A3F0 P P p
|
||||
A3D1 A3D1 A3F1 Q Q q
|
||||
A3D2 A3D2 A3F2 R R r
|
||||
A3D3 A3D3 A3F3 S S s
|
||||
A3D4 A3D4 A3F4 T T t
|
||||
A3D5 A3D5 A3F5 U U u
|
||||
A3D6 A3D6 A3F6 V V v
|
||||
A3D7 A3D7 A3F7 W W w
|
||||
A3D8 A3D8 A3F8 X X x
|
||||
A3D9 A3D9 A3F9 Y Y y
|
||||
A3DA A3DA A3FA Z Z z
|
||||
A3E1 A3C1 A3E1 a A a
|
||||
A3E2 A3C2 A3E2 b B b
|
||||
A3E3 A3C3 A3E3 c C c
|
||||
A3E4 A3C4 A3E4 d D d
|
||||
A3E5 A3C5 A3E5 e E e
|
||||
A3E6 A3C6 A3E6 f F f
|
||||
A3E7 A3C7 A3E7 g G g
|
||||
A3E8 A3C8 A3E8 h H h
|
||||
A3E9 A3C9 A3E9 i I i
|
||||
A3EA A3CA A3EA j J j
|
||||
A3EB A3CB A3EB k K k
|
||||
A3EC A3CC A3EC l L l
|
||||
A3ED A3CD A3ED m M m
|
||||
A3EE A3CE A3EE n N n
|
||||
A3EF A3CF A3EF o O o
|
||||
A3F0 A3D0 A3F0 p P p
|
||||
A3F1 A3D1 A3F1 q Q q
|
||||
A3F2 A3D2 A3F2 r R r
|
||||
A3F3 A3D3 A3F3 s S s
|
||||
A3F4 A3D4 A3F4 t T t
|
||||
A3F5 A3D5 A3F5 u U u
|
||||
A3F6 A3D6 A3F6 v V v
|
||||
A3F7 A3D7 A3F7 w W w
|
||||
A3F8 A3D8 A3F8 x X x
|
||||
A3F9 A3D9 A3F9 y Y y
|
||||
A3FA A3DA A3FA z Z z
|
||||
A6A1 A6A1 A6C1 Α Α α
|
||||
A6A2 A6A2 A6C2 Β Β β
|
||||
A6A3 A6A3 A6C3 Γ Γ γ
|
||||
A6A4 A6A4 A6C4 Δ Δ δ
|
||||
A6A5 A6A5 A6C5 Ε Ε ε
|
||||
A6A6 A6A6 A6C6 Ζ Ζ ζ
|
||||
A6A7 A6A7 A6C7 Η Η η
|
||||
A6A8 A6A8 A6C8 Θ Θ θ
|
||||
A6A9 A6A9 A6C9 Ι Ι ι
|
||||
A6AA A6AA A6CA Κ Κ κ
|
||||
A6AB A6AB A6CB Λ Λ λ
|
||||
A6AC A6AC A6CC Μ Μ μ
|
||||
A6AD A6AD A6CD Ν Ν ν
|
||||
A6AE A6AE A6CE Ξ Ξ ξ
|
||||
A6AF A6AF A6CF Ο Ο ο
|
||||
A6B0 A6B0 A6D0 Π Π π
|
||||
A6B1 A6B1 A6D1 Ρ Ρ ρ
|
||||
A6B2 A6B2 A6D2 Σ Σ σ
|
||||
A6B3 A6B3 A6D3 Τ Τ τ
|
||||
A6B4 A6B4 A6D4 Υ Υ υ
|
||||
A6B5 A6B5 A6D5 Φ Φ φ
|
||||
A6B6 A6B6 A6D6 Χ Χ χ
|
||||
A6B7 A6B7 A6D7 Ψ Ψ ψ
|
||||
A6B8 A6B8 A6D8 Ω Ω ω
|
||||
A6C1 A6A1 A6C1 α Α α
|
||||
A6C2 A6A2 A6C2 β Β β
|
||||
A6C3 A6A3 A6C3 γ Γ γ
|
||||
A6C4 A6A4 A6C4 δ Δ δ
|
||||
A6C5 A6A5 A6C5 ε Ε ε
|
||||
A6C6 A6A6 A6C6 ζ Ζ ζ
|
||||
A6C7 A6A7 A6C7 η Η η
|
||||
A6C8 A6A8 A6C8 θ Θ θ
|
||||
A6C9 A6A9 A6C9 ι Ι ι
|
||||
A6CA A6AA A6CA κ Κ κ
|
||||
A6CB A6AB A6CB λ Λ λ
|
||||
A6CC A6AC A6CC μ Μ μ
|
||||
A6CD A6AD A6CD ν Ν ν
|
||||
A6CE A6AE A6CE ξ Ξ ξ
|
||||
A6CF A6AF A6CF ο Ο ο
|
||||
A6D0 A6B0 A6D0 π Π π
|
||||
A6D1 A6B1 A6D1 ρ Ρ ρ
|
||||
A6D2 A6B2 A6D2 σ Σ σ
|
||||
A6D3 A6B3 A6D3 τ Τ τ
|
||||
A6D4 A6B4 A6D4 υ Υ υ
|
||||
A6D5 A6B5 A6D5 φ Φ φ
|
||||
A6D6 A6B6 A6D6 χ Χ χ
|
||||
A6D7 A6B7 A6D7 ψ Ψ ψ
|
||||
A6D8 A6B8 A6D8 ω Ω ω
|
||||
A7A1 A7A1 A7D1 А А а
|
||||
A7A2 A7A2 A7D2 Б Б б
|
||||
A7A3 A7A3 A7D3 В В в
|
||||
A7A4 A7A4 A7D4 Г Г г
|
||||
A7A5 A7A5 A7D5 Д Д д
|
||||
A7A6 A7A6 A7D6 Е Е е
|
||||
A7A7 A7A7 A7D7 Ё Ё ё
|
||||
A7A8 A7A8 A7D8 Ж Ж ж
|
||||
A7A9 A7A9 A7D9 З З з
|
||||
A7AA A7AA A7DA И И и
|
||||
A7AB A7AB A7DB Й Й й
|
||||
A7AC A7AC A7DC К К к
|
||||
A7AD A7AD A7DD Л Л л
|
||||
A7AE A7AE A7DE М М м
|
||||
A7AF A7AF A7DF Н Н н
|
||||
A7B0 A7B0 A7E0 О О о
|
||||
A7B1 A7B1 A7E1 П П п
|
||||
A7B2 A7B2 A7E2 Р Р р
|
||||
A7B3 A7B3 A7E3 С С с
|
||||
A7B4 A7B4 A7E4 Т Т т
|
||||
A7B5 A7B5 A7E5 У У у
|
||||
A7B6 A7B6 A7E6 Ф Ф ф
|
||||
A7B7 A7B7 A7E7 Х Х х
|
||||
A7B8 A7B8 A7E8 Ц Ц ц
|
||||
A7B9 A7B9 A7E9 Ч Ч ч
|
||||
A7BA A7BA A7EA Ш Ш ш
|
||||
A7BB A7BB A7EB Щ Щ щ
|
||||
A7BC A7BC A7EC Ъ Ъ ъ
|
||||
A7BD A7BD A7ED Ы Ы ы
|
||||
A7BE A7BE A7EE Ь Ь ь
|
||||
A7BF A7BF A7EF Э Э э
|
||||
A7C0 A7C0 A7F0 Ю Ю ю
|
||||
A7C1 A7C1 A7F1 Я Я я
|
||||
A7D1 A7A1 A7D1 а А а
|
||||
A7D2 A7A2 A7D2 б Б б
|
||||
A7D3 A7A3 A7D3 в В в
|
||||
A7D4 A7A4 A7D4 г Г г
|
||||
A7D5 A7A5 A7D5 д Д д
|
||||
A7D6 A7A6 A7D6 е Е е
|
||||
A7D7 A7A7 A7D7 ё Ё ё
|
||||
A7D8 A7A8 A7D8 ж Ж ж
|
||||
A7D9 A7A9 A7D9 з З з
|
||||
A7DA A7AA A7DA и И и
|
||||
A7DB A7AB A7DB й Й й
|
||||
A7DC A7AC A7DC к К к
|
||||
A7DD A7AD A7DD л Л л
|
||||
A7DE A7AE A7DE м М м
|
||||
A7DF A7AF A7DF н Н н
|
||||
A7E0 A7B0 A7E0 о О о
|
||||
A7E1 A7B1 A7E1 п П п
|
||||
A7E2 A7B2 A7E2 р Р р
|
||||
A7E3 A7B3 A7E3 с С с
|
||||
A7E4 A7B4 A7E4 т Т т
|
||||
A7E5 A7B5 A7E5 у У у
|
||||
A7E6 A7B6 A7E6 ф Ф ф
|
||||
A7E7 A7B7 A7E7 х Х х
|
||||
A7E8 A7B8 A7E8 ц Ц ц
|
||||
A7E9 A7B9 A7E9 ч Ч ч
|
||||
A7EA A7BA A7EA ш Ш ш
|
||||
A7EB A7BB A7EB щ Щ щ
|
||||
A7EC A7BC A7EC ъ Ъ ъ
|
||||
A7ED A7BD A7ED ы Ы ы
|
||||
A7EE A7BE A7EE ь Ь ь
|
||||
A7EF A7BF A7EF э Э э
|
||||
A7F0 A7C0 A7F0 ю Ю ю
|
||||
A7F1 A7C1 A7F1 я Я я
|
||||
SELECT * FROM t1
|
||||
WHERE HEX(CAST(LOWER(a) AS CHAR CHARACTER SET utf8)) <>
|
||||
HEX(LOWER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
|
||||
code a
|
||||
A2F1 Ⅰ
|
||||
A2F2 Ⅱ
|
||||
A2F3 Ⅲ
|
||||
A2F4 Ⅳ
|
||||
A2F5 Ⅴ
|
||||
A2F6 Ⅵ
|
||||
A2F7 Ⅶ
|
||||
A2F8 Ⅷ
|
||||
A2F9 Ⅸ
|
||||
A2FA Ⅹ
|
||||
A2FB Ⅺ
|
||||
A2FC Ⅻ
|
||||
SELECT * FROM t1
|
||||
WHERE HEX(CAST(UPPER(a) AS CHAR CHARACTER SET utf8)) <>
|
||||
HEX(UPPER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
|
||||
code a
|
||||
A8A1 ā
|
||||
A8A2 á
|
||||
A8A3 ǎ
|
||||
A8A4 à
|
||||
A8A5 ē
|
||||
A8A6 é
|
||||
A8A7 ě
|
||||
A8A8 è
|
||||
A8A9 ī
|
||||
A8AA í
|
||||
A8AB ǐ
|
||||
A8AC ì
|
||||
A8AD ō
|
||||
A8AE ó
|
||||
A8AF ǒ
|
||||
A8B0 ò
|
||||
A8B1 ū
|
||||
A8B2 ú
|
||||
A8B3 ǔ
|
||||
A8B4 ù
|
||||
A8B5 ǖ
|
||||
A8B6 ǘ
|
||||
A8B7 ǚ
|
||||
A8B8 ǜ
|
||||
A8B9 ü
|
||||
A8BA ê
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# End of 5.5 tests
|
||||
#
|
||||
|
@ -255,3 +255,328 @@ SELECT a FROM t1 GROUP BY 1 LIMIT 1 INTO @nullll;
|
||||
SELECT b FROM t1 GROUP BY 1 LIMIT 1 INTO @nullll;
|
||||
DROP TABLES t1;
|
||||
End of 5.0 tests
|
||||
#
|
||||
# Start of 5.5 tests
|
||||
#
|
||||
#
|
||||
# Testing WL#4583 Case conversion in Asian character sets
|
||||
#
|
||||
SET NAMES utf8;
|
||||
SET collation_connection=gbk_chinese_ci;
|
||||
CREATE TABLE t1 (b VARCHAR(2));
|
||||
INSERT INTO t1 VALUES ('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7');
|
||||
INSERT INTO t1 VALUES ('8'),('9'),('A'),('B'),('C'),('D'),('E'),('F');
|
||||
CREATE TEMPORARY TABLE head AS SELECT concat(b1.b, b2.b) AS head FROM t1 b1, t1 b2;
|
||||
CREATE TEMPORARY TABLE tail AS SELECT concat(b1.b, b2.b) AS tail FROM t1 b1, t1 b2;
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 AS
|
||||
SELECT concat(head, tail) AS code, ' ' AS a
|
||||
FROM head, tail
|
||||
WHERE (head BETWEEN '80' AND 'FF') AND (tail BETWEEN '20' AND 'FF')
|
||||
ORDER BY head, tail;
|
||||
DROP TEMPORARY TABLE head, tail;
|
||||
SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`code` varchar(8) DEFAULT NULL,
|
||||
`a` varchar(1) CHARACTER SET gbk NOT NULL DEFAULT ''
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
UPDATE t1 SET a=unhex(code) ORDER BY code;
|
||||
Warnings:
|
||||
Warning 1366 Incorrect string value: '\x80 ' for column 'a' at row 1
|
||||
Warning 1366 Incorrect string value: '\x80!' for column 'a' at row 2
|
||||
Warning 1366 Incorrect string value: '\x80"' for column 'a' at row 3
|
||||
Warning 1366 Incorrect string value: '\x80#' for column 'a' at row 4
|
||||
Warning 1366 Incorrect string value: '\x80$' for column 'a' at row 5
|
||||
Warning 1366 Incorrect string value: '\x80%' for column 'a' at row 6
|
||||
Warning 1366 Incorrect string value: '\x80&' for column 'a' at row 7
|
||||
Warning 1366 Incorrect string value: '\x80'' for column 'a' at row 8
|
||||
Warning 1366 Incorrect string value: '\x80(' for column 'a' at row 9
|
||||
Warning 1366 Incorrect string value: '\x80)' for column 'a' at row 10
|
||||
Warning 1366 Incorrect string value: '\x80*' for column 'a' at row 11
|
||||
Warning 1366 Incorrect string value: '\x80+' for column 'a' at row 12
|
||||
Warning 1366 Incorrect string value: '\x80,' for column 'a' at row 13
|
||||
Warning 1366 Incorrect string value: '\x80-' for column 'a' at row 14
|
||||
Warning 1366 Incorrect string value: '\x80.' for column 'a' at row 15
|
||||
Warning 1366 Incorrect string value: '\x80/' for column 'a' at row 16
|
||||
Warning 1366 Incorrect string value: '\x800' for column 'a' at row 17
|
||||
Warning 1366 Incorrect string value: '\x801' for column 'a' at row 18
|
||||
Warning 1366 Incorrect string value: '\x802' for column 'a' at row 19
|
||||
Warning 1366 Incorrect string value: '\x803' for column 'a' at row 20
|
||||
Warning 1366 Incorrect string value: '\x804' for column 'a' at row 21
|
||||
Warning 1366 Incorrect string value: '\x805' for column 'a' at row 22
|
||||
Warning 1366 Incorrect string value: '\x806' for column 'a' at row 23
|
||||
Warning 1366 Incorrect string value: '\x807' for column 'a' at row 24
|
||||
Warning 1366 Incorrect string value: '\x808' for column 'a' at row 25
|
||||
Warning 1366 Incorrect string value: '\x809' for column 'a' at row 26
|
||||
Warning 1366 Incorrect string value: '\x80:' for column 'a' at row 27
|
||||
Warning 1366 Incorrect string value: '\x80;' for column 'a' at row 28
|
||||
Warning 1366 Incorrect string value: '\x80<' for column 'a' at row 29
|
||||
Warning 1366 Incorrect string value: '\x80=' for column 'a' at row 30
|
||||
Warning 1366 Incorrect string value: '\x80>' for column 'a' at row 31
|
||||
Warning 1366 Incorrect string value: '\x80?' for column 'a' at row 32
|
||||
Warning 1366 Incorrect string value: '\x80@' for column 'a' at row 33
|
||||
Warning 1366 Incorrect string value: '\x80A' for column 'a' at row 34
|
||||
Warning 1366 Incorrect string value: '\x80B' for column 'a' at row 35
|
||||
Warning 1366 Incorrect string value: '\x80C' for column 'a' at row 36
|
||||
Warning 1366 Incorrect string value: '\x80D' for column 'a' at row 37
|
||||
Warning 1366 Incorrect string value: '\x80E' for column 'a' at row 38
|
||||
Warning 1366 Incorrect string value: '\x80F' for column 'a' at row 39
|
||||
Warning 1366 Incorrect string value: '\x80G' for column 'a' at row 40
|
||||
Warning 1366 Incorrect string value: '\x80H' for column 'a' at row 41
|
||||
Warning 1366 Incorrect string value: '\x80I' for column 'a' at row 42
|
||||
Warning 1366 Incorrect string value: '\x80J' for column 'a' at row 43
|
||||
Warning 1366 Incorrect string value: '\x80K' for column 'a' at row 44
|
||||
Warning 1366 Incorrect string value: '\x80L' for column 'a' at row 45
|
||||
Warning 1366 Incorrect string value: '\x80M' for column 'a' at row 46
|
||||
Warning 1366 Incorrect string value: '\x80N' for column 'a' at row 47
|
||||
Warning 1366 Incorrect string value: '\x80O' for column 'a' at row 48
|
||||
Warning 1366 Incorrect string value: '\x80P' for column 'a' at row 49
|
||||
Warning 1366 Incorrect string value: '\x80Q' for column 'a' at row 50
|
||||
Warning 1366 Incorrect string value: '\x80R' for column 'a' at row 51
|
||||
Warning 1366 Incorrect string value: '\x80S' for column 'a' at row 52
|
||||
Warning 1366 Incorrect string value: '\x80T' for column 'a' at row 53
|
||||
Warning 1366 Incorrect string value: '\x80U' for column 'a' at row 54
|
||||
Warning 1366 Incorrect string value: '\x80V' for column 'a' at row 55
|
||||
Warning 1366 Incorrect string value: '\x80W' for column 'a' at row 56
|
||||
Warning 1366 Incorrect string value: '\x80X' for column 'a' at row 57
|
||||
Warning 1366 Incorrect string value: '\x80Y' for column 'a' at row 58
|
||||
Warning 1366 Incorrect string value: '\x80Z' for column 'a' at row 59
|
||||
Warning 1366 Incorrect string value: '\x80[' for column 'a' at row 60
|
||||
Warning 1366 Incorrect string value: '\x80\' for column 'a' at row 61
|
||||
Warning 1366 Incorrect string value: '\x80]' for column 'a' at row 62
|
||||
Warning 1366 Incorrect string value: '\x80^' for column 'a' at row 63
|
||||
Warning 1366 Incorrect string value: '\x80_' for column 'a' at row 64
|
||||
SELECT COUNT(*) FROM t1 WHERE a<>'';
|
||||
COUNT(*)
|
||||
23940
|
||||
SELECT code, hex(upper(a)), hex(lower(a)),a, upper(a), lower(a) FROM t1 WHERE hex(a)<>hex(upper(a)) OR hex(a)<>hex(lower(a));
|
||||
code hex(upper(a)) hex(lower(a)) a upper(a) lower(a)
|
||||
A2A1 A2F1 A2A1 ⅰ Ⅰ ⅰ
|
||||
A2A2 A2F2 A2A2 ⅱ Ⅱ ⅱ
|
||||
A2A3 A2F3 A2A3 ⅲ Ⅲ ⅲ
|
||||
A2A4 A2F4 A2A4 ⅳ Ⅳ ⅳ
|
||||
A2A5 A2F5 A2A5 ⅴ Ⅴ ⅴ
|
||||
A2A6 A2F6 A2A6 ⅵ Ⅵ ⅵ
|
||||
A2A7 A2F7 A2A7 ⅶ Ⅶ ⅶ
|
||||
A2A8 A2F8 A2A8 ⅷ Ⅷ ⅷ
|
||||
A2A9 A2F9 A2A9 ⅸ Ⅸ ⅸ
|
||||
A2AA A2FA A2AA ⅹ Ⅹ ⅹ
|
||||
A2F1 A2F1 A2A1 Ⅰ Ⅰ ⅰ
|
||||
A2F2 A2F2 A2A2 Ⅱ Ⅱ ⅱ
|
||||
A2F3 A2F3 A2A3 Ⅲ Ⅲ ⅲ
|
||||
A2F4 A2F4 A2A4 Ⅳ Ⅳ ⅳ
|
||||
A2F5 A2F5 A2A5 Ⅴ Ⅴ ⅴ
|
||||
A2F6 A2F6 A2A6 Ⅵ Ⅵ ⅵ
|
||||
A2F7 A2F7 A2A7 Ⅶ Ⅶ ⅶ
|
||||
A2F8 A2F8 A2A8 Ⅷ Ⅷ ⅷ
|
||||
A2F9 A2F9 A2A9 Ⅸ Ⅸ ⅸ
|
||||
A2FA A2FA A2AA Ⅹ Ⅹ ⅹ
|
||||
A3C1 A3C1 A3E1 A A a
|
||||
A3C2 A3C2 A3E2 B B b
|
||||
A3C3 A3C3 A3E3 C C c
|
||||
A3C4 A3C4 A3E4 D D d
|
||||
A3C5 A3C5 A3E5 E E e
|
||||
A3C6 A3C6 A3E6 F F f
|
||||
A3C7 A3C7 A3E7 G G g
|
||||
A3C8 A3C8 A3E8 H H h
|
||||
A3C9 A3C9 A3E9 I I i
|
||||
A3CA A3CA A3EA J J j
|
||||
A3CB A3CB A3EB K K k
|
||||
A3CC A3CC A3EC L L l
|
||||
A3CD A3CD A3ED M M m
|
||||
A3CE A3CE A3EE N N n
|
||||
A3CF A3CF A3EF O O o
|
||||
A3D0 A3D0 A3F0 P P p
|
||||
A3D1 A3D1 A3F1 Q Q q
|
||||
A3D2 A3D2 A3F2 R R r
|
||||
A3D3 A3D3 A3F3 S S s
|
||||
A3D4 A3D4 A3F4 T T t
|
||||
A3D5 A3D5 A3F5 U U u
|
||||
A3D6 A3D6 A3F6 V V v
|
||||
A3D7 A3D7 A3F7 W W w
|
||||
A3D8 A3D8 A3F8 X X x
|
||||
A3D9 A3D9 A3F9 Y Y y
|
||||
A3DA A3DA A3FA Z Z z
|
||||
A3E1 A3C1 A3E1 a A a
|
||||
A3E2 A3C2 A3E2 b B b
|
||||
A3E3 A3C3 A3E3 c C c
|
||||
A3E4 A3C4 A3E4 d D d
|
||||
A3E5 A3C5 A3E5 e E e
|
||||
A3E6 A3C6 A3E6 f F f
|
||||
A3E7 A3C7 A3E7 g G g
|
||||
A3E8 A3C8 A3E8 h H h
|
||||
A3E9 A3C9 A3E9 i I i
|
||||
A3EA A3CA A3EA j J j
|
||||
A3EB A3CB A3EB k K k
|
||||
A3EC A3CC A3EC l L l
|
||||
A3ED A3CD A3ED m M m
|
||||
A3EE A3CE A3EE n N n
|
||||
A3EF A3CF A3EF o O o
|
||||
A3F0 A3D0 A3F0 p P p
|
||||
A3F1 A3D1 A3F1 q Q q
|
||||
A3F2 A3D2 A3F2 r R r
|
||||
A3F3 A3D3 A3F3 s S s
|
||||
A3F4 A3D4 A3F4 t T t
|
||||
A3F5 A3D5 A3F5 u U u
|
||||
A3F6 A3D6 A3F6 v V v
|
||||
A3F7 A3D7 A3F7 w W w
|
||||
A3F8 A3D8 A3F8 x X x
|
||||
A3F9 A3D9 A3F9 y Y y
|
||||
A3FA A3DA A3FA z Z z
|
||||
A6A1 A6A1 A6C1 Α Α α
|
||||
A6A2 A6A2 A6C2 Β Β β
|
||||
A6A3 A6A3 A6C3 Γ Γ γ
|
||||
A6A4 A6A4 A6C4 Δ Δ δ
|
||||
A6A5 A6A5 A6C5 Ε Ε ε
|
||||
A6A6 A6A6 A6C6 Ζ Ζ ζ
|
||||
A6A7 A6A7 A6C7 Η Η η
|
||||
A6A8 A6A8 A6C8 Θ Θ θ
|
||||
A6A9 A6A9 A6C9 Ι Ι ι
|
||||
A6AA A6AA A6CA Κ Κ κ
|
||||
A6AB A6AB A6CB Λ Λ λ
|
||||
A6AC A6AC A6CC Μ Μ μ
|
||||
A6AD A6AD A6CD Ν Ν ν
|
||||
A6AE A6AE A6CE Ξ Ξ ξ
|
||||
A6AF A6AF A6CF Ο Ο ο
|
||||
A6B0 A6B0 A6D0 Π Π π
|
||||
A6B1 A6B1 A6D1 Ρ Ρ ρ
|
||||
A6B2 A6B2 A6D2 Σ Σ σ
|
||||
A6B3 A6B3 A6D3 Τ Τ τ
|
||||
A6B4 A6B4 A6D4 Υ Υ υ
|
||||
A6B5 A6B5 A6D5 Φ Φ φ
|
||||
A6B6 A6B6 A6D6 Χ Χ χ
|
||||
A6B7 A6B7 A6D7 Ψ Ψ ψ
|
||||
A6B8 A6B8 A6D8 Ω Ω ω
|
||||
A6C1 A6A1 A6C1 α Α α
|
||||
A6C2 A6A2 A6C2 β Β β
|
||||
A6C3 A6A3 A6C3 γ Γ γ
|
||||
A6C4 A6A4 A6C4 δ Δ δ
|
||||
A6C5 A6A5 A6C5 ε Ε ε
|
||||
A6C6 A6A6 A6C6 ζ Ζ ζ
|
||||
A6C7 A6A7 A6C7 η Η η
|
||||
A6C8 A6A8 A6C8 θ Θ θ
|
||||
A6C9 A6A9 A6C9 ι Ι ι
|
||||
A6CA A6AA A6CA κ Κ κ
|
||||
A6CB A6AB A6CB λ Λ λ
|
||||
A6CC A6AC A6CC μ Μ μ
|
||||
A6CD A6AD A6CD ν Ν ν
|
||||
A6CE A6AE A6CE ξ Ξ ξ
|
||||
A6CF A6AF A6CF ο Ο ο
|
||||
A6D0 A6B0 A6D0 π Π π
|
||||
A6D1 A6B1 A6D1 ρ Ρ ρ
|
||||
A6D2 A6B2 A6D2 σ Σ σ
|
||||
A6D3 A6B3 A6D3 τ Τ τ
|
||||
A6D4 A6B4 A6D4 υ Υ υ
|
||||
A6D5 A6B5 A6D5 φ Φ φ
|
||||
A6D6 A6B6 A6D6 χ Χ χ
|
||||
A6D7 A6B7 A6D7 ψ Ψ ψ
|
||||
A6D8 A6B8 A6D8 ω Ω ω
|
||||
A7A1 A7A1 A7D1 А А а
|
||||
A7A2 A7A2 A7D2 Б Б б
|
||||
A7A3 A7A3 A7D3 В В в
|
||||
A7A4 A7A4 A7D4 Г Г г
|
||||
A7A5 A7A5 A7D5 Д Д д
|
||||
A7A6 A7A6 A7D6 Е Е е
|
||||
A7A7 A7A7 A7D7 Ё Ё ё
|
||||
A7A8 A7A8 A7D8 Ж Ж ж
|
||||
A7A9 A7A9 A7D9 З З з
|
||||
A7AA A7AA A7DA И И и
|
||||
A7AB A7AB A7DB Й Й й
|
||||
A7AC A7AC A7DC К К к
|
||||
A7AD A7AD A7DD Л Л л
|
||||
A7AE A7AE A7DE М М м
|
||||
A7AF A7AF A7DF Н Н н
|
||||
A7B0 A7B0 A7E0 О О о
|
||||
A7B1 A7B1 A7E1 П П п
|
||||
A7B2 A7B2 A7E2 Р Р р
|
||||
A7B3 A7B3 A7E3 С С с
|
||||
A7B4 A7B4 A7E4 Т Т т
|
||||
A7B5 A7B5 A7E5 У У у
|
||||
A7B6 A7B6 A7E6 Ф Ф ф
|
||||
A7B7 A7B7 A7E7 Х Х х
|
||||
A7B8 A7B8 A7E8 Ц Ц ц
|
||||
A7B9 A7B9 A7E9 Ч Ч ч
|
||||
A7BA A7BA A7EA Ш Ш ш
|
||||
A7BB A7BB A7EB Щ Щ щ
|
||||
A7BC A7BC A7EC Ъ Ъ ъ
|
||||
A7BD A7BD A7ED Ы Ы ы
|
||||
A7BE A7BE A7EE Ь Ь ь
|
||||
A7BF A7BF A7EF Э Э э
|
||||
A7C0 A7C0 A7F0 Ю Ю ю
|
||||
A7C1 A7C1 A7F1 Я Я я
|
||||
A7D1 A7A1 A7D1 а А а
|
||||
A7D2 A7A2 A7D2 б Б б
|
||||
A7D3 A7A3 A7D3 в В в
|
||||
A7D4 A7A4 A7D4 г Г г
|
||||
A7D5 A7A5 A7D5 д Д д
|
||||
A7D6 A7A6 A7D6 е Е е
|
||||
A7D7 A7A7 A7D7 ё Ё ё
|
||||
A7D8 A7A8 A7D8 ж Ж ж
|
||||
A7D9 A7A9 A7D9 з З з
|
||||
A7DA A7AA A7DA и И и
|
||||
A7DB A7AB A7DB й Й й
|
||||
A7DC A7AC A7DC к К к
|
||||
A7DD A7AD A7DD л Л л
|
||||
A7DE A7AE A7DE м М м
|
||||
A7DF A7AF A7DF н Н н
|
||||
A7E0 A7B0 A7E0 о О о
|
||||
A7E1 A7B1 A7E1 п П п
|
||||
A7E2 A7B2 A7E2 р Р р
|
||||
A7E3 A7B3 A7E3 с С с
|
||||
A7E4 A7B4 A7E4 т Т т
|
||||
A7E5 A7B5 A7E5 у У у
|
||||
A7E6 A7B6 A7E6 ф Ф ф
|
||||
A7E7 A7B7 A7E7 х Х х
|
||||
A7E8 A7B8 A7E8 ц Ц ц
|
||||
A7E9 A7B9 A7E9 ч Ч ч
|
||||
A7EA A7BA A7EA ш Ш ш
|
||||
A7EB A7BB A7EB щ Щ щ
|
||||
A7EC A7BC A7EC ъ Ъ ъ
|
||||
A7ED A7BD A7ED ы Ы ы
|
||||
A7EE A7BE A7EE ь Ь ь
|
||||
A7EF A7BF A7EF э Э э
|
||||
A7F0 A7C0 A7F0 ю Ю ю
|
||||
A7F1 A7C1 A7F1 я Я я
|
||||
SELECT * FROM t1
|
||||
WHERE HEX(CAST(LOWER(a) AS CHAR CHARACTER SET utf8)) <>
|
||||
HEX(LOWER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
|
||||
code a
|
||||
A2FB Ⅺ
|
||||
A2FC Ⅻ
|
||||
SELECT * FROM t1
|
||||
WHERE HEX(CAST(UPPER(a) AS CHAR CHARACTER SET utf8)) <>
|
||||
HEX(UPPER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
|
||||
code a
|
||||
A8A1 ā
|
||||
A8A2 á
|
||||
A8A3 ǎ
|
||||
A8A4 à
|
||||
A8A5 ē
|
||||
A8A6 é
|
||||
A8A7 ě
|
||||
A8A8 è
|
||||
A8A9 ī
|
||||
A8AA í
|
||||
A8AB ǐ
|
||||
A8AC ì
|
||||
A8AD ō
|
||||
A8AE ó
|
||||
A8AF ǒ
|
||||
A8B0 ò
|
||||
A8B1 ū
|
||||
A8B2 ú
|
||||
A8B3 ǔ
|
||||
A8B4 ù
|
||||
A8B5 ǖ
|
||||
A8B6 ǘ
|
||||
A8B7 ǚ
|
||||
A8B8 ǜ
|
||||
A8B9 ü
|
||||
A8BA ê
|
||||
A8BD ń
|
||||
A8BE ň
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# End of 5.5 tests
|
||||
#
|
||||
|
@ -219,3 +219,290 @@ hex(a) hex(lower(a)) hex(upper(a))
|
||||
8372835E 8372835E 8372835E
|
||||
DROP TABLE t1;
|
||||
# End of 5.1 tests
|
||||
#
|
||||
# Start of 5.5 tests
|
||||
#
|
||||
#
|
||||
# Testing WL#4583 Case conversion in Asian character sets
|
||||
#
|
||||
SET NAMES utf8;
|
||||
SET collation_connection=sjis_japanese_ci;
|
||||
CREATE TABLE t1 (b VARCHAR(2));
|
||||
INSERT INTO t1 VALUES ('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7');
|
||||
INSERT INTO t1 VALUES ('8'),('9'),('A'),('B'),('C'),('D'),('E'),('F');
|
||||
CREATE TEMPORARY TABLE head AS SELECT concat(b1.b, b2.b) AS head FROM t1 b1, t1 b2;
|
||||
CREATE TEMPORARY TABLE tail AS SELECT concat(b1.b, b2.b) AS tail FROM t1 b1, t1 b2;
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 AS
|
||||
SELECT concat(head, tail) AS code, ' ' AS a
|
||||
FROM head, tail
|
||||
WHERE (head BETWEEN '80' AND 'FF') AND (head NOT BETWEEN 'A1' AND 'DF')
|
||||
AND (tail BETWEEN '20' AND 'FF')
|
||||
ORDER BY head, tail;
|
||||
INSERT t1 (code) SELECT head FROM head WHERE (head BETWEEN 'A1' AND 'DF');
|
||||
DROP TEMPORARY TABLE head, tail;
|
||||
SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`code` varchar(8) DEFAULT NULL,
|
||||
`a` varchar(1) CHARACTER SET sjis NOT NULL DEFAULT ''
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
UPDATE t1 SET a=unhex(code) ORDER BY code;
|
||||
Warnings:
|
||||
Warning 1366 Incorrect string value: '\x80 ' for column 'a' at row 1
|
||||
Warning 1366 Incorrect string value: '\x80!' for column 'a' at row 2
|
||||
Warning 1366 Incorrect string value: '\x80"' for column 'a' at row 3
|
||||
Warning 1366 Incorrect string value: '\x80#' for column 'a' at row 4
|
||||
Warning 1366 Incorrect string value: '\x80$' for column 'a' at row 5
|
||||
Warning 1366 Incorrect string value: '\x80%' for column 'a' at row 6
|
||||
Warning 1366 Incorrect string value: '\x80&' for column 'a' at row 7
|
||||
Warning 1366 Incorrect string value: '\x80'' for column 'a' at row 8
|
||||
Warning 1366 Incorrect string value: '\x80(' for column 'a' at row 9
|
||||
Warning 1366 Incorrect string value: '\x80)' for column 'a' at row 10
|
||||
Warning 1366 Incorrect string value: '\x80*' for column 'a' at row 11
|
||||
Warning 1366 Incorrect string value: '\x80+' for column 'a' at row 12
|
||||
Warning 1366 Incorrect string value: '\x80,' for column 'a' at row 13
|
||||
Warning 1366 Incorrect string value: '\x80-' for column 'a' at row 14
|
||||
Warning 1366 Incorrect string value: '\x80.' for column 'a' at row 15
|
||||
Warning 1366 Incorrect string value: '\x80/' for column 'a' at row 16
|
||||
Warning 1366 Incorrect string value: '\x800' for column 'a' at row 17
|
||||
Warning 1366 Incorrect string value: '\x801' for column 'a' at row 18
|
||||
Warning 1366 Incorrect string value: '\x802' for column 'a' at row 19
|
||||
Warning 1366 Incorrect string value: '\x803' for column 'a' at row 20
|
||||
Warning 1366 Incorrect string value: '\x804' for column 'a' at row 21
|
||||
Warning 1366 Incorrect string value: '\x805' for column 'a' at row 22
|
||||
Warning 1366 Incorrect string value: '\x806' for column 'a' at row 23
|
||||
Warning 1366 Incorrect string value: '\x807' for column 'a' at row 24
|
||||
Warning 1366 Incorrect string value: '\x808' for column 'a' at row 25
|
||||
Warning 1366 Incorrect string value: '\x809' for column 'a' at row 26
|
||||
Warning 1366 Incorrect string value: '\x80:' for column 'a' at row 27
|
||||
Warning 1366 Incorrect string value: '\x80;' for column 'a' at row 28
|
||||
Warning 1366 Incorrect string value: '\x80<' for column 'a' at row 29
|
||||
Warning 1366 Incorrect string value: '\x80=' for column 'a' at row 30
|
||||
Warning 1366 Incorrect string value: '\x80>' for column 'a' at row 31
|
||||
Warning 1366 Incorrect string value: '\x80?' for column 'a' at row 32
|
||||
Warning 1366 Incorrect string value: '\x80@' for column 'a' at row 33
|
||||
Warning 1366 Incorrect string value: '\x80A' for column 'a' at row 34
|
||||
Warning 1366 Incorrect string value: '\x80B' for column 'a' at row 35
|
||||
Warning 1366 Incorrect string value: '\x80C' for column 'a' at row 36
|
||||
Warning 1366 Incorrect string value: '\x80D' for column 'a' at row 37
|
||||
Warning 1366 Incorrect string value: '\x80E' for column 'a' at row 38
|
||||
Warning 1366 Incorrect string value: '\x80F' for column 'a' at row 39
|
||||
Warning 1366 Incorrect string value: '\x80G' for column 'a' at row 40
|
||||
Warning 1366 Incorrect string value: '\x80H' for column 'a' at row 41
|
||||
Warning 1366 Incorrect string value: '\x80I' for column 'a' at row 42
|
||||
Warning 1366 Incorrect string value: '\x80J' for column 'a' at row 43
|
||||
Warning 1366 Incorrect string value: '\x80K' for column 'a' at row 44
|
||||
Warning 1366 Incorrect string value: '\x80L' for column 'a' at row 45
|
||||
Warning 1366 Incorrect string value: '\x80M' for column 'a' at row 46
|
||||
Warning 1366 Incorrect string value: '\x80N' for column 'a' at row 47
|
||||
Warning 1366 Incorrect string value: '\x80O' for column 'a' at row 48
|
||||
Warning 1366 Incorrect string value: '\x80P' for column 'a' at row 49
|
||||
Warning 1366 Incorrect string value: '\x80Q' for column 'a' at row 50
|
||||
Warning 1366 Incorrect string value: '\x80R' for column 'a' at row 51
|
||||
Warning 1366 Incorrect string value: '\x80S' for column 'a' at row 52
|
||||
Warning 1366 Incorrect string value: '\x80T' for column 'a' at row 53
|
||||
Warning 1366 Incorrect string value: '\x80U' for column 'a' at row 54
|
||||
Warning 1366 Incorrect string value: '\x80V' for column 'a' at row 55
|
||||
Warning 1366 Incorrect string value: '\x80W' for column 'a' at row 56
|
||||
Warning 1366 Incorrect string value: '\x80X' for column 'a' at row 57
|
||||
Warning 1366 Incorrect string value: '\x80Y' for column 'a' at row 58
|
||||
Warning 1366 Incorrect string value: '\x80Z' for column 'a' at row 59
|
||||
Warning 1366 Incorrect string value: '\x80[' for column 'a' at row 60
|
||||
Warning 1366 Incorrect string value: '\x80\' for column 'a' at row 61
|
||||
Warning 1366 Incorrect string value: '\x80]' for column 'a' at row 62
|
||||
Warning 1366 Incorrect string value: '\x80^' for column 'a' at row 63
|
||||
Warning 1366 Incorrect string value: '\x80_' for column 'a' at row 64
|
||||
SELECT COUNT(*) FROM t1;
|
||||
COUNT(*)
|
||||
14623
|
||||
SELECT COUNT(*) FROM t1 WHERE a<>'' AND OCTET_LENGTH(a)=1;
|
||||
COUNT(*)
|
||||
63
|
||||
SELECT COUNT(*) FROM t1 WHERE a<>'' AND OCTET_LENGTH(a)=2;
|
||||
COUNT(*)
|
||||
11280
|
||||
SELECT code, hex(upper(a)), hex(lower(a)),a, upper(a), lower(a)
|
||||
FROM t1
|
||||
WHERE hex(a)<>hex(upper(a)) OR hex(a)<>hex(lower(a))
|
||||
ORDER BY code;
|
||||
code hex(upper(a)) hex(lower(a)) a upper(a) lower(a)
|
||||
8260 8260 8281 A A a
|
||||
8261 8261 8282 B B b
|
||||
8262 8262 8283 C C c
|
||||
8263 8263 8284 D D d
|
||||
8264 8264 8285 E E e
|
||||
8265 8265 8286 F F f
|
||||
8266 8266 8287 G G g
|
||||
8267 8267 8288 H H h
|
||||
8268 8268 8289 I I i
|
||||
8269 8269 828A J J j
|
||||
826A 826A 828B K K k
|
||||
826B 826B 828C L L l
|
||||
826C 826C 828D M M m
|
||||
826D 826D 828E N N n
|
||||
826E 826E 828F O O o
|
||||
826F 826F 8290 P P p
|
||||
8270 8270 8291 Q Q q
|
||||
8271 8271 8292 R R r
|
||||
8272 8272 8293 S S s
|
||||
8273 8273 8294 T T t
|
||||
8274 8274 8295 U U u
|
||||
8275 8275 8296 V V v
|
||||
8276 8276 8297 W W w
|
||||
8277 8277 8298 X X x
|
||||
8278 8278 8299 Y Y y
|
||||
8279 8279 829A Z Z z
|
||||
8281 8260 8281 a A a
|
||||
8282 8261 8282 b B b
|
||||
8283 8262 8283 c C c
|
||||
8284 8263 8284 d D d
|
||||
8285 8264 8285 e E e
|
||||
8286 8265 8286 f F f
|
||||
8287 8266 8287 g G g
|
||||
8288 8267 8288 h H h
|
||||
8289 8268 8289 i I i
|
||||
828A 8269 828A j J j
|
||||
828B 826A 828B k K k
|
||||
828C 826B 828C l L l
|
||||
828D 826C 828D m M m
|
||||
828E 826D 828E n N n
|
||||
828F 826E 828F o O o
|
||||
8290 826F 8290 p P p
|
||||
8291 8270 8291 q Q q
|
||||
8292 8271 8292 r R r
|
||||
8293 8272 8293 s S s
|
||||
8294 8273 8294 t T t
|
||||
8295 8274 8295 u U u
|
||||
8296 8275 8296 v V v
|
||||
8297 8276 8297 w W w
|
||||
8298 8277 8298 x X x
|
||||
8299 8278 8299 y Y y
|
||||
829A 8279 829A z Z z
|
||||
839F 839F 83BF Α Α α
|
||||
83A0 83A0 83C0 Β Β β
|
||||
83A1 83A1 83C1 Γ Γ γ
|
||||
83A2 83A2 83C2 Δ Δ δ
|
||||
83A3 83A3 83C3 Ε Ε ε
|
||||
83A4 83A4 83C4 Ζ Ζ ζ
|
||||
83A5 83A5 83C5 Η Η η
|
||||
83A6 83A6 83C6 Θ Θ θ
|
||||
83A7 83A7 83C7 Ι Ι ι
|
||||
83A8 83A8 83C8 Κ Κ κ
|
||||
83A9 83A9 83C9 Λ Λ λ
|
||||
83AA 83AA 83CA Μ Μ μ
|
||||
83AB 83AB 83CB Ν Ν ν
|
||||
83AC 83AC 83CC Ξ Ξ ξ
|
||||
83AD 83AD 83CD Ο Ο ο
|
||||
83AE 83AE 83CE Π Π π
|
||||
83AF 83AF 83CF Ρ Ρ ρ
|
||||
83B0 83B0 83D0 Σ Σ σ
|
||||
83B1 83B1 83D1 Τ Τ τ
|
||||
83B2 83B2 83D2 Υ Υ υ
|
||||
83B3 83B3 83D3 Φ Φ φ
|
||||
83B4 83B4 83D4 Χ Χ χ
|
||||
83B5 83B5 83D5 Ψ Ψ ψ
|
||||
83B6 83B6 83D6 Ω Ω ω
|
||||
83BF 839F 83BF α Α α
|
||||
83C0 83A0 83C0 β Β β
|
||||
83C1 83A1 83C1 γ Γ γ
|
||||
83C2 83A2 83C2 δ Δ δ
|
||||
83C3 83A3 83C3 ε Ε ε
|
||||
83C4 83A4 83C4 ζ Ζ ζ
|
||||
83C5 83A5 83C5 η Η η
|
||||
83C6 83A6 83C6 θ Θ θ
|
||||
83C7 83A7 83C7 ι Ι ι
|
||||
83C8 83A8 83C8 κ Κ κ
|
||||
83C9 83A9 83C9 λ Λ λ
|
||||
83CA 83AA 83CA μ Μ μ
|
||||
83CB 83AB 83CB ν Ν ν
|
||||
83CC 83AC 83CC ξ Ξ ξ
|
||||
83CD 83AD 83CD ο Ο ο
|
||||
83CE 83AE 83CE π Π π
|
||||
83CF 83AF 83CF ρ Ρ ρ
|
||||
83D0 83B0 83D0 σ Σ σ
|
||||
83D1 83B1 83D1 τ Τ τ
|
||||
83D2 83B2 83D2 υ Υ υ
|
||||
83D3 83B3 83D3 φ Φ φ
|
||||
83D4 83B4 83D4 χ Χ χ
|
||||
83D5 83B5 83D5 ψ Ψ ψ
|
||||
83D6 83B6 83D6 ω Ω ω
|
||||
8440 8440 8470 А А а
|
||||
8441 8441 8471 Б Б б
|
||||
8442 8442 8472 В В в
|
||||
8443 8443 8473 Г Г г
|
||||
8444 8444 8474 Д Д д
|
||||
8445 8445 8475 Е Е е
|
||||
8446 8446 8476 Ё Ё ё
|
||||
8447 8447 8477 Ж Ж ж
|
||||
8448 8448 8478 З З з
|
||||
8449 8449 8479 И И и
|
||||
844A 844A 847A Й Й й
|
||||
844B 844B 847B К К к
|
||||
844C 844C 847C Л Л л
|
||||
844D 844D 847D М М м
|
||||
844E 844E 847E Н Н н
|
||||
844F 844F 8480 О О о
|
||||
8450 8450 8481 П П п
|
||||
8451 8451 8482 Р Р р
|
||||
8452 8452 8483 С С с
|
||||
8453 8453 8484 Т Т т
|
||||
8454 8454 8485 У У у
|
||||
8455 8455 8486 Ф Ф ф
|
||||
8456 8456 8487 Х Х х
|
||||
8457 8457 8488 Ц Ц ц
|
||||
8458 8458 8489 Ч Ч ч
|
||||
8459 8459 848A Ш Ш ш
|
||||
845A 845A 848B Щ Щ щ
|
||||
845B 845B 848C Ъ Ъ ъ
|
||||
845C 845C 848D Ы Ы ы
|
||||
845D 845D 848E Ь Ь ь
|
||||
845E 845E 848F Э Э э
|
||||
845F 845F 8490 Ю Ю ю
|
||||
8460 8460 8491 Я Я я
|
||||
8470 8440 8470 а А а
|
||||
8471 8441 8471 б Б б
|
||||
8472 8442 8472 в В в
|
||||
8473 8443 8473 г Г г
|
||||
8474 8444 8474 д Д д
|
||||
8475 8445 8475 е Е е
|
||||
8476 8446 8476 ё Ё ё
|
||||
8477 8447 8477 ж Ж ж
|
||||
8478 8448 8478 з З з
|
||||
8479 8449 8479 и И и
|
||||
847A 844A 847A й Й й
|
||||
847B 844B 847B к К к
|
||||
847C 844C 847C л Л л
|
||||
847D 844D 847D м М м
|
||||
847E 844E 847E н Н н
|
||||
8480 844F 8480 о О о
|
||||
8481 8450 8481 п П п
|
||||
8482 8451 8482 р Р р
|
||||
8483 8452 8483 с С с
|
||||
8484 8453 8484 т Т т
|
||||
8485 8454 8485 у У у
|
||||
8486 8455 8486 ф Ф ф
|
||||
8487 8456 8487 х Х х
|
||||
8488 8457 8488 ц Ц ц
|
||||
8489 8458 8489 ч Ч ч
|
||||
848A 8459 848A ш Ш ш
|
||||
848B 845A 848B щ Щ щ
|
||||
848C 845B 848C ъ Ъ ъ
|
||||
848D 845C 848D ы Ы ы
|
||||
848E 845D 848E ь Ь ь
|
||||
848F 845E 848F э Э э
|
||||
8490 845F 8490 ю Ю ю
|
||||
8491 8460 8491 я Я я
|
||||
SELECT * FROM t1
|
||||
WHERE HEX(CAST(LOWER(a) AS CHAR CHARACTER SET utf8)) <>
|
||||
HEX(LOWER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
|
||||
code a
|
||||
81F0 Å
|
||||
SELECT * FROM t1
|
||||
WHERE HEX(CAST(UPPER(a) AS CHAR CHARACTER SET utf8)) <>
|
||||
HEX(UPPER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
|
||||
code a
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# End of 5.5 tests
|
||||
#
|
||||
|
@ -2377,3 +2377,535 @@ DROP TABLE t2;
|
||||
set names default;
|
||||
set character_set_database=default;
|
||||
set character_set_server=default;
|
||||
#
|
||||
# Start of 5.5 tests
|
||||
#
|
||||
#
|
||||
# Testing WL#4583 Case conversion in Asian character sets
|
||||
#
|
||||
SET NAMES utf8;
|
||||
SET collation_connection=ujis_japanese_ci;
|
||||
CREATE TABLE t1 (b VARCHAR(2));
|
||||
INSERT INTO t1 VALUES ('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7');
|
||||
INSERT INTO t1 VALUES ('8'),('9'),('A'),('B'),('C'),('D'),('E'),('F');
|
||||
CREATE TEMPORARY TABLE head AS SELECT concat(b1.b, b2.b) AS head FROM t1 b1, t1 b2;
|
||||
CREATE TEMPORARY TABLE tail AS SELECT concat(b1.b, b2.b) AS tail FROM t1 b1, t1 b2;
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 AS SELECT 'XXXXXX' AS code, ' ' AS a LIMIT 0;
|
||||
INSERT INTO t1 (code) SELECT concat('8E', head) FROM head
|
||||
WHERE (head BETWEEN 'A1' AND 'DF') ORDER BY head;
|
||||
INSERT INTO t1 (code) SELECT concat(head, tail)
|
||||
FROM head, tail
|
||||
WHERE (head BETWEEN '80' AND 'FF') AND (head NOT BETWEEN '8E' AND '8F')
|
||||
AND (tail BETWEEN '20' AND 'FF')
|
||||
ORDER BY head, tail;
|
||||
INSERT INTO t1 (code) SELECT concat('8F', head, tail)
|
||||
FROM head, tail
|
||||
WHERE (head BETWEEN '80' AND 'FF') AND (tail BETWEEN '80' AND 'FF')
|
||||
ORDER BY head, tail;
|
||||
DROP TEMPORARY TABLE head, tail;
|
||||
SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`code` varchar(6) CHARACTER SET ujis NOT NULL DEFAULT '',
|
||||
`a` varchar(1) CHARACTER SET ujis NOT NULL DEFAULT ''
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
UPDATE t1 SET a=unhex(code) ORDER BY code;
|
||||
Warnings:
|
||||
Warning 1366 Incorrect string value: '\x80 ' for column 'a' at row 1
|
||||
Warning 1366 Incorrect string value: '\x80!' for column 'a' at row 2
|
||||
Warning 1366 Incorrect string value: '\x80"' for column 'a' at row 3
|
||||
Warning 1366 Incorrect string value: '\x80#' for column 'a' at row 4
|
||||
Warning 1366 Incorrect string value: '\x80$' for column 'a' at row 5
|
||||
Warning 1366 Incorrect string value: '\x80%' for column 'a' at row 6
|
||||
Warning 1366 Incorrect string value: '\x80&' for column 'a' at row 7
|
||||
Warning 1366 Incorrect string value: '\x80'' for column 'a' at row 8
|
||||
Warning 1366 Incorrect string value: '\x80(' for column 'a' at row 9
|
||||
Warning 1366 Incorrect string value: '\x80)' for column 'a' at row 10
|
||||
Warning 1366 Incorrect string value: '\x80*' for column 'a' at row 11
|
||||
Warning 1366 Incorrect string value: '\x80+' for column 'a' at row 12
|
||||
Warning 1366 Incorrect string value: '\x80,' for column 'a' at row 13
|
||||
Warning 1366 Incorrect string value: '\x80-' for column 'a' at row 14
|
||||
Warning 1366 Incorrect string value: '\x80.' for column 'a' at row 15
|
||||
Warning 1366 Incorrect string value: '\x80/' for column 'a' at row 16
|
||||
Warning 1366 Incorrect string value: '\x800' for column 'a' at row 17
|
||||
Warning 1366 Incorrect string value: '\x801' for column 'a' at row 18
|
||||
Warning 1366 Incorrect string value: '\x802' for column 'a' at row 19
|
||||
Warning 1366 Incorrect string value: '\x803' for column 'a' at row 20
|
||||
Warning 1366 Incorrect string value: '\x804' for column 'a' at row 21
|
||||
Warning 1366 Incorrect string value: '\x805' for column 'a' at row 22
|
||||
Warning 1366 Incorrect string value: '\x806' for column 'a' at row 23
|
||||
Warning 1366 Incorrect string value: '\x807' for column 'a' at row 24
|
||||
Warning 1366 Incorrect string value: '\x808' for column 'a' at row 25
|
||||
Warning 1366 Incorrect string value: '\x809' for column 'a' at row 26
|
||||
Warning 1366 Incorrect string value: '\x80:' for column 'a' at row 27
|
||||
Warning 1366 Incorrect string value: '\x80;' for column 'a' at row 28
|
||||
Warning 1366 Incorrect string value: '\x80<' for column 'a' at row 29
|
||||
Warning 1366 Incorrect string value: '\x80=' for column 'a' at row 30
|
||||
Warning 1366 Incorrect string value: '\x80>' for column 'a' at row 31
|
||||
Warning 1366 Incorrect string value: '\x80?' for column 'a' at row 32
|
||||
Warning 1366 Incorrect string value: '\x80@' for column 'a' at row 33
|
||||
Warning 1366 Incorrect string value: '\x80A' for column 'a' at row 34
|
||||
Warning 1366 Incorrect string value: '\x80B' for column 'a' at row 35
|
||||
Warning 1366 Incorrect string value: '\x80C' for column 'a' at row 36
|
||||
Warning 1366 Incorrect string value: '\x80D' for column 'a' at row 37
|
||||
Warning 1366 Incorrect string value: '\x80E' for column 'a' at row 38
|
||||
Warning 1366 Incorrect string value: '\x80F' for column 'a' at row 39
|
||||
Warning 1366 Incorrect string value: '\x80G' for column 'a' at row 40
|
||||
Warning 1366 Incorrect string value: '\x80H' for column 'a' at row 41
|
||||
Warning 1366 Incorrect string value: '\x80I' for column 'a' at row 42
|
||||
Warning 1366 Incorrect string value: '\x80J' for column 'a' at row 43
|
||||
Warning 1366 Incorrect string value: '\x80K' for column 'a' at row 44
|
||||
Warning 1366 Incorrect string value: '\x80L' for column 'a' at row 45
|
||||
Warning 1366 Incorrect string value: '\x80M' for column 'a' at row 46
|
||||
Warning 1366 Incorrect string value: '\x80N' for column 'a' at row 47
|
||||
Warning 1366 Incorrect string value: '\x80O' for column 'a' at row 48
|
||||
Warning 1366 Incorrect string value: '\x80P' for column 'a' at row 49
|
||||
Warning 1366 Incorrect string value: '\x80Q' for column 'a' at row 50
|
||||
Warning 1366 Incorrect string value: '\x80R' for column 'a' at row 51
|
||||
Warning 1366 Incorrect string value: '\x80S' for column 'a' at row 52
|
||||
Warning 1366 Incorrect string value: '\x80T' for column 'a' at row 53
|
||||
Warning 1366 Incorrect string value: '\x80U' for column 'a' at row 54
|
||||
Warning 1366 Incorrect string value: '\x80V' for column 'a' at row 55
|
||||
Warning 1366 Incorrect string value: '\x80W' for column 'a' at row 56
|
||||
Warning 1366 Incorrect string value: '\x80X' for column 'a' at row 57
|
||||
Warning 1366 Incorrect string value: '\x80Y' for column 'a' at row 58
|
||||
Warning 1366 Incorrect string value: '\x80Z' for column 'a' at row 59
|
||||
Warning 1366 Incorrect string value: '\x80[' for column 'a' at row 60
|
||||
Warning 1366 Incorrect string value: '\x80\' for column 'a' at row 61
|
||||
Warning 1366 Incorrect string value: '\x80]' for column 'a' at row 62
|
||||
Warning 1366 Incorrect string value: '\x80^' for column 'a' at row 63
|
||||
Warning 1366 Incorrect string value: '\x80_' for column 'a' at row 64
|
||||
SELECT COUNT(*) FROM t1;
|
||||
COUNT(*)
|
||||
44671
|
||||
SELECT COUNT(*) FROM t1 WHERE a<>'';
|
||||
COUNT(*)
|
||||
17735
|
||||
SELECT COUNT(*) FROM t1 WHERE a<>'' AND OCTET_LENGTH(a)=2;
|
||||
COUNT(*)
|
||||
8899
|
||||
SELECT COUNT(*) FROM t1 WHERE a<>'' AND OCTET_LENGTH(a)=3;
|
||||
COUNT(*)
|
||||
8836
|
||||
SELECT code, hex(upper(a)), hex(lower(a)),a, upper(a), lower(a) FROM t1 WHERE hex(a)<>hex(upper(a)) OR hex(a)<>hex(lower(a)) ORDER BY code;
|
||||
code hex(upper(a)) hex(lower(a)) a upper(a) lower(a)
|
||||
8FA6E1 8FA6E1 8FA6F1 Ά Ά ά
|
||||
8FA6E2 8FA6E2 8FA6F2 Έ Έ έ
|
||||
8FA6E3 8FA6E3 8FA6F3 Ή Ή ή
|
||||
8FA6E4 8FA6E4 8FA6F4 Ί Ί ί
|
||||
8FA6E5 8FA6E5 8FA6F5 Ϊ Ϊ ϊ
|
||||
8FA6E7 8FA6E7 8FA6F7 Ό Ό ό
|
||||
8FA6E9 8FA6E9 8FA6F9 Ύ Ύ ύ
|
||||
8FA6EA 8FA6EA 8FA6FA Ϋ Ϋ ϋ
|
||||
8FA6EC 8FA6EC 8FA6FC Ώ Ώ ώ
|
||||
8FA6F1 8FA6E1 8FA6F1 ά Ά ά
|
||||
8FA6F2 8FA6E2 8FA6F2 έ Έ έ
|
||||
8FA6F3 8FA6E3 8FA6F3 ή Ή ή
|
||||
8FA6F4 8FA6E4 8FA6F4 ί Ί ί
|
||||
8FA6F5 8FA6E5 8FA6F5 ϊ Ϊ ϊ
|
||||
8FA6F7 8FA6E7 8FA6F7 ό Ό ό
|
||||
8FA6F8 A6B2 8FA6F8 ς Σ ς
|
||||
8FA6F9 8FA6E9 8FA6F9 ύ Ύ ύ
|
||||
8FA6FA 8FA6EA 8FA6FA ϋ Ϋ ϋ
|
||||
8FA6FC 8FA6EC 8FA6FC ώ Ώ ώ
|
||||
8FA7C2 8FA7C2 8FA7F2 Ђ Ђ ђ
|
||||
8FA7C3 8FA7C3 8FA7F3 Ѓ Ѓ ѓ
|
||||
8FA7C4 8FA7C4 8FA7F4 Є Є є
|
||||
8FA7C5 8FA7C5 8FA7F5 Ѕ Ѕ ѕ
|
||||
8FA7C6 8FA7C6 8FA7F6 І І і
|
||||
8FA7C7 8FA7C7 8FA7F7 Ї Ї ї
|
||||
8FA7C8 8FA7C8 8FA7F8 Ј Ј ј
|
||||
8FA7C9 8FA7C9 8FA7F9 Љ Љ љ
|
||||
8FA7CA 8FA7CA 8FA7FA Њ Њ њ
|
||||
8FA7CB 8FA7CB 8FA7FB Ћ Ћ ћ
|
||||
8FA7CC 8FA7CC 8FA7FC Ќ Ќ ќ
|
||||
8FA7CD 8FA7CD 8FA7FD Ў Ў ў
|
||||
8FA7CE 8FA7CE 8FA7FE Џ Џ џ
|
||||
8FA7F2 8FA7C2 8FA7F2 ђ Ђ ђ
|
||||
8FA7F3 8FA7C3 8FA7F3 ѓ Ѓ ѓ
|
||||
8FA7F4 8FA7C4 8FA7F4 є Є є
|
||||
8FA7F5 8FA7C5 8FA7F5 ѕ Ѕ ѕ
|
||||
8FA7F6 8FA7C6 8FA7F6 і І і
|
||||
8FA7F7 8FA7C7 8FA7F7 ї Ї ї
|
||||
8FA7F8 8FA7C8 8FA7F8 ј Ј ј
|
||||
8FA7F9 8FA7C9 8FA7F9 љ Љ љ
|
||||
8FA7FA 8FA7CA 8FA7FA њ Њ њ
|
||||
8FA7FB 8FA7CB 8FA7FB ћ Ћ ћ
|
||||
8FA7FC 8FA7CC 8FA7FC ќ Ќ ќ
|
||||
8FA7FD 8FA7CD 8FA7FD ў Ў ў
|
||||
8FA7FE 8FA7CE 8FA7FE џ Џ џ
|
||||
8FA9A1 8FA9A1 8FA9C1 Æ Æ æ
|
||||
8FA9A2 8FA9A2 8FA9C2 Đ Đ đ
|
||||
8FA9A4 8FA9A4 8FA9C4 Ħ Ħ ħ
|
||||
8FA9A6 8FA9A6 8FA9C6 IJ IJ ij
|
||||
8FA9A8 8FA9A8 8FA9C8 Ł Ł ł
|
||||
8FA9A9 8FA9A9 8FA9C9 Ŀ Ŀ ŀ
|
||||
8FA9AB 8FA9AB 8FA9CB Ŋ Ŋ ŋ
|
||||
8FA9AC 8FA9AC 8FA9CC Ø Ø ø
|
||||
8FA9AD 8FA9AD 8FA9CD Œ Œ œ
|
||||
8FA9AF 8FA9AF 8FA9CF Ŧ Ŧ ŧ
|
||||
8FA9B0 8FA9B0 8FA9D0 Þ Þ þ
|
||||
8FA9C1 8FA9A1 8FA9C1 æ Æ æ
|
||||
8FA9C2 8FA9A2 8FA9C2 đ Đ đ
|
||||
8FA9C4 8FA9A4 8FA9C4 ħ Ħ ħ
|
||||
8FA9C5 49 8FA9C5 ı I ı
|
||||
8FA9C6 8FA9A6 8FA9C6 ij IJ ij
|
||||
8FA9C8 8FA9A8 8FA9C8 ł Ł ł
|
||||
8FA9C9 8FA9A9 8FA9C9 ŀ Ŀ ŀ
|
||||
8FA9CB 8FA9AB 8FA9CB ŋ Ŋ ŋ
|
||||
8FA9CC 8FA9AC 8FA9CC ø Ø ø
|
||||
8FA9CD 8FA9AD 8FA9CD œ Œ œ
|
||||
8FA9CF 8FA9AF 8FA9CF ŧ Ŧ ŧ
|
||||
8FA9D0 8FA9B0 8FA9D0 þ Þ þ
|
||||
8FAAA1 8FAAA1 8FABA1 Á Á á
|
||||
8FAAA2 8FAAA2 8FABA2 À À à
|
||||
8FAAA3 8FAAA3 8FABA3 Ä Ä ä
|
||||
8FAAA4 8FAAA4 8FABA4 Â Â â
|
||||
8FAAA5 8FAAA5 8FABA5 Ă Ă ă
|
||||
8FAAA6 8FAAA6 8FABA6 Ǎ Ǎ ǎ
|
||||
8FAAA7 8FAAA7 8FABA7 Ā Ā ā
|
||||
8FAAA8 8FAAA8 8FABA8 Ą Ą ą
|
||||
8FAAA9 8FAAA9 8FABA9 Å Å å
|
||||
8FAAAA 8FAAAA 8FABAA Ã Ã ã
|
||||
8FAAAB 8FAAAB 8FABAB Ć Ć ć
|
||||
8FAAAC 8FAAAC 8FABAC Ĉ Ĉ ĉ
|
||||
8FAAAD 8FAAAD 8FABAD Č Č č
|
||||
8FAAAE 8FAAAE 8FABAE Ç Ç ç
|
||||
8FAAAF 8FAAAF 8FABAF Ċ Ċ ċ
|
||||
8FAAB0 8FAAB0 8FABB0 Ď Ď ď
|
||||
8FAAB1 8FAAB1 8FABB1 É É é
|
||||
8FAAB2 8FAAB2 8FABB2 È È è
|
||||
8FAAB3 8FAAB3 8FABB3 Ë Ë ë
|
||||
8FAAB4 8FAAB4 8FABB4 Ê Ê ê
|
||||
8FAAB5 8FAAB5 8FABB5 Ě Ě ě
|
||||
8FAAB6 8FAAB6 8FABB6 Ė Ė ė
|
||||
8FAAB7 8FAAB7 8FABB7 Ē Ē ē
|
||||
8FAAB8 8FAAB8 8FABB8 Ę Ę ę
|
||||
8FAABA 8FAABA 8FABBA Ĝ Ĝ ĝ
|
||||
8FAABB 8FAABB 8FABBB Ğ Ğ ğ
|
||||
8FAABD 8FAABD 8FABBD Ġ Ġ ġ
|
||||
8FAABE 8FAABE 8FABBE Ĥ Ĥ ĥ
|
||||
8FAABF 8FAABF 8FABBF Í Í í
|
||||
8FAAC0 8FAAC0 8FABC0 Ì Ì ì
|
||||
8FAAC1 8FAAC1 8FABC1 Ï Ï ï
|
||||
8FAAC2 8FAAC2 8FABC2 Î Î î
|
||||
8FAAC3 8FAAC3 8FABC3 Ǐ Ǐ ǐ
|
||||
8FAAC4 8FAAC4 69 İ İ i
|
||||
8FAAC5 8FAAC5 8FABC5 Ī Ī ī
|
||||
8FAAC6 8FAAC6 8FABC6 Į Į į
|
||||
8FAAC7 8FAAC7 8FABC7 Ĩ Ĩ ĩ
|
||||
8FAAC8 8FAAC8 8FABC8 Ĵ Ĵ ĵ
|
||||
8FAAC9 8FAAC9 8FABC9 Ķ Ķ ķ
|
||||
8FAACA 8FAACA 8FABCA Ĺ Ĺ ĺ
|
||||
8FAACB 8FAACB 8FABCB Ľ Ľ ľ
|
||||
8FAACC 8FAACC 8FABCC Ļ Ļ ļ
|
||||
8FAACD 8FAACD 8FABCD Ń Ń ń
|
||||
8FAACE 8FAACE 8FABCE Ň Ň ň
|
||||
8FAACF 8FAACF 8FABCF Ņ Ņ ņ
|
||||
8FAAD0 8FAAD0 8FABD0 Ñ Ñ ñ
|
||||
8FAAD1 8FAAD1 8FABD1 Ó Ó ó
|
||||
8FAAD2 8FAAD2 8FABD2 Ò Ò ò
|
||||
8FAAD3 8FAAD3 8FABD3 Ö Ö ö
|
||||
8FAAD4 8FAAD4 8FABD4 Ô Ô ô
|
||||
8FAAD5 8FAAD5 8FABD5 Ǒ Ǒ ǒ
|
||||
8FAAD6 8FAAD6 8FABD6 Ő Ő ő
|
||||
8FAAD7 8FAAD7 8FABD7 Ō Ō ō
|
||||
8FAAD8 8FAAD8 8FABD8 Õ Õ õ
|
||||
8FAAD9 8FAAD9 8FABD9 Ŕ Ŕ ŕ
|
||||
8FAADA 8FAADA 8FABDA Ř Ř ř
|
||||
8FAADB 8FAADB 8FABDB Ŗ Ŗ ŗ
|
||||
8FAADC 8FAADC 8FABDC Ś Ś ś
|
||||
8FAADD 8FAADD 8FABDD Ŝ Ŝ ŝ
|
||||
8FAADE 8FAADE 8FABDE Š Š š
|
||||
8FAADF 8FAADF 8FABDF Ş Ş ş
|
||||
8FAAE0 8FAAE0 8FABE0 Ť Ť ť
|
||||
8FAAE1 8FAAE1 8FABE1 Ţ Ţ ţ
|
||||
8FAAE2 8FAAE2 8FABE2 Ú Ú ú
|
||||
8FAAE3 8FAAE3 8FABE3 Ù Ù ù
|
||||
8FAAE4 8FAAE4 8FABE4 Ü Ü ü
|
||||
8FAAE5 8FAAE5 8FABE5 Û Û û
|
||||
8FAAE6 8FAAE6 8FABE6 Ŭ Ŭ ŭ
|
||||
8FAAE7 8FAAE7 8FABE7 Ǔ Ǔ ǔ
|
||||
8FAAE8 8FAAE8 8FABE8 Ű Ű ű
|
||||
8FAAE9 8FAAE9 8FABE9 Ū Ū ū
|
||||
8FAAEA 8FAAEA 8FABEA Ų Ų ų
|
||||
8FAAEB 8FAAEB 8FABEB Ů Ů ů
|
||||
8FAAEC 8FAAEC 8FABEC Ũ Ũ ũ
|
||||
8FAAED 8FAAED 8FABED Ǘ Ǘ ǘ
|
||||
8FAAEE 8FAAEE 8FABEE Ǜ Ǜ ǜ
|
||||
8FAAEF 8FAAEF 8FABEF Ǚ Ǚ ǚ
|
||||
8FAAF0 8FAAF0 8FABF0 Ǖ Ǖ ǖ
|
||||
8FAAF1 8FAAF1 8FABF1 Ŵ Ŵ ŵ
|
||||
8FAAF2 8FAAF2 8FABF2 Ý Ý ý
|
||||
8FAAF3 8FAAF3 8FABF3 Ÿ Ÿ ÿ
|
||||
8FAAF4 8FAAF4 8FABF4 Ŷ Ŷ ŷ
|
||||
8FAAF5 8FAAF5 8FABF5 Ź Ź ź
|
||||
8FAAF6 8FAAF6 8FABF6 Ž Ž ž
|
||||
8FAAF7 8FAAF7 8FABF7 Ż Ż ż
|
||||
8FABA1 8FAAA1 8FABA1 á Á á
|
||||
8FABA2 8FAAA2 8FABA2 à À à
|
||||
8FABA3 8FAAA3 8FABA3 ä Ä ä
|
||||
8FABA4 8FAAA4 8FABA4 â Â â
|
||||
8FABA5 8FAAA5 8FABA5 ă Ă ă
|
||||
8FABA6 8FAAA6 8FABA6 ǎ Ǎ ǎ
|
||||
8FABA7 8FAAA7 8FABA7 ā Ā ā
|
||||
8FABA8 8FAAA8 8FABA8 ą Ą ą
|
||||
8FABA9 8FAAA9 8FABA9 å Å å
|
||||
8FABAA 8FAAAA 8FABAA ã Ã ã
|
||||
8FABAB 8FAAAB 8FABAB ć Ć ć
|
||||
8FABAC 8FAAAC 8FABAC ĉ Ĉ ĉ
|
||||
8FABAD 8FAAAD 8FABAD č Č č
|
||||
8FABAE 8FAAAE 8FABAE ç Ç ç
|
||||
8FABAF 8FAAAF 8FABAF ċ Ċ ċ
|
||||
8FABB0 8FAAB0 8FABB0 ď Ď ď
|
||||
8FABB1 8FAAB1 8FABB1 é É é
|
||||
8FABB2 8FAAB2 8FABB2 è È è
|
||||
8FABB3 8FAAB3 8FABB3 ë Ë ë
|
||||
8FABB4 8FAAB4 8FABB4 ê Ê ê
|
||||
8FABB5 8FAAB5 8FABB5 ě Ě ě
|
||||
8FABB6 8FAAB6 8FABB6 ė Ė ė
|
||||
8FABB7 8FAAB7 8FABB7 ē Ē ē
|
||||
8FABB8 8FAAB8 8FABB8 ę Ę ę
|
||||
8FABBA 8FAABA 8FABBA ĝ Ĝ ĝ
|
||||
8FABBB 8FAABB 8FABBB ğ Ğ ğ
|
||||
8FABBD 8FAABD 8FABBD ġ Ġ ġ
|
||||
8FABBE 8FAABE 8FABBE ĥ Ĥ ĥ
|
||||
8FABBF 8FAABF 8FABBF í Í í
|
||||
8FABC0 8FAAC0 8FABC0 ì Ì ì
|
||||
8FABC1 8FAAC1 8FABC1 ï Ï ï
|
||||
8FABC2 8FAAC2 8FABC2 î Î î
|
||||
8FABC3 8FAAC3 8FABC3 ǐ Ǐ ǐ
|
||||
8FABC5 8FAAC5 8FABC5 ī Ī ī
|
||||
8FABC6 8FAAC6 8FABC6 į Į į
|
||||
8FABC7 8FAAC7 8FABC7 ĩ Ĩ ĩ
|
||||
8FABC8 8FAAC8 8FABC8 ĵ Ĵ ĵ
|
||||
8FABC9 8FAAC9 8FABC9 ķ Ķ ķ
|
||||
8FABCA 8FAACA 8FABCA ĺ Ĺ ĺ
|
||||
8FABCB 8FAACB 8FABCB ľ Ľ ľ
|
||||
8FABCC 8FAACC 8FABCC ļ Ļ ļ
|
||||
8FABCD 8FAACD 8FABCD ń Ń ń
|
||||
8FABCE 8FAACE 8FABCE ň Ň ň
|
||||
8FABCF 8FAACF 8FABCF ņ Ņ ņ
|
||||
8FABD0 8FAAD0 8FABD0 ñ Ñ ñ
|
||||
8FABD1 8FAAD1 8FABD1 ó Ó ó
|
||||
8FABD2 8FAAD2 8FABD2 ò Ò ò
|
||||
8FABD3 8FAAD3 8FABD3 ö Ö ö
|
||||
8FABD4 8FAAD4 8FABD4 ô Ô ô
|
||||
8FABD5 8FAAD5 8FABD5 ǒ Ǒ ǒ
|
||||
8FABD6 8FAAD6 8FABD6 ő Ő ő
|
||||
8FABD7 8FAAD7 8FABD7 ō Ō ō
|
||||
8FABD8 8FAAD8 8FABD8 õ Õ õ
|
||||
8FABD9 8FAAD9 8FABD9 ŕ Ŕ ŕ
|
||||
8FABDA 8FAADA 8FABDA ř Ř ř
|
||||
8FABDB 8FAADB 8FABDB ŗ Ŗ ŗ
|
||||
8FABDC 8FAADC 8FABDC ś Ś ś
|
||||
8FABDD 8FAADD 8FABDD ŝ Ŝ ŝ
|
||||
8FABDE 8FAADE 8FABDE š Š š
|
||||
8FABDF 8FAADF 8FABDF ş Ş ş
|
||||
8FABE0 8FAAE0 8FABE0 ť Ť ť
|
||||
8FABE1 8FAAE1 8FABE1 ţ Ţ ţ
|
||||
8FABE2 8FAAE2 8FABE2 ú Ú ú
|
||||
8FABE3 8FAAE3 8FABE3 ù Ù ù
|
||||
8FABE4 8FAAE4 8FABE4 ü Ü ü
|
||||
8FABE5 8FAAE5 8FABE5 û Û û
|
||||
8FABE6 8FAAE6 8FABE6 ŭ Ŭ ŭ
|
||||
8FABE7 8FAAE7 8FABE7 ǔ Ǔ ǔ
|
||||
8FABE8 8FAAE8 8FABE8 ű Ű ű
|
||||
8FABE9 8FAAE9 8FABE9 ū Ū ū
|
||||
8FABEA 8FAAEA 8FABEA ų Ų ų
|
||||
8FABEB 8FAAEB 8FABEB ů Ů ů
|
||||
8FABEC 8FAAEC 8FABEC ũ Ũ ũ
|
||||
8FABED 8FAAED 8FABED ǘ Ǘ ǘ
|
||||
8FABEE 8FAAEE 8FABEE ǜ Ǜ ǜ
|
||||
8FABEF 8FAAEF 8FABEF ǚ Ǚ ǚ
|
||||
8FABF0 8FAAF0 8FABF0 ǖ Ǖ ǖ
|
||||
8FABF1 8FAAF1 8FABF1 ŵ Ŵ ŵ
|
||||
8FABF2 8FAAF2 8FABF2 ý Ý ý
|
||||
8FABF3 8FAAF3 8FABF3 ÿ Ÿ ÿ
|
||||
8FABF4 8FAAF4 8FABF4 ŷ Ŷ ŷ
|
||||
8FABF5 8FAAF5 8FABF5 ź Ź ź
|
||||
8FABF6 8FAAF6 8FABF6 ž Ž ž
|
||||
8FABF7 8FAAF7 8FABF7 ż Ż ż
|
||||
A2F2 A2F2 8FABA9 Å Å å
|
||||
A3C1 A3C1 A3E1 A A a
|
||||
A3C2 A3C2 A3E2 B B b
|
||||
A3C3 A3C3 A3E3 C C c
|
||||
A3C4 A3C4 A3E4 D D d
|
||||
A3C5 A3C5 A3E5 E E e
|
||||
A3C6 A3C6 A3E6 F F f
|
||||
A3C7 A3C7 A3E7 G G g
|
||||
A3C8 A3C8 A3E8 H H h
|
||||
A3C9 A3C9 A3E9 I I i
|
||||
A3CA A3CA A3EA J J j
|
||||
A3CB A3CB A3EB K K k
|
||||
A3CC A3CC A3EC L L l
|
||||
A3CD A3CD A3ED M M m
|
||||
A3CE A3CE A3EE N N n
|
||||
A3CF A3CF A3EF O O o
|
||||
A3D0 A3D0 A3F0 P P p
|
||||
A3D1 A3D1 A3F1 Q Q q
|
||||
A3D2 A3D2 A3F2 R R r
|
||||
A3D3 A3D3 A3F3 S S s
|
||||
A3D4 A3D4 A3F4 T T t
|
||||
A3D5 A3D5 A3F5 U U u
|
||||
A3D6 A3D6 A3F6 V V v
|
||||
A3D7 A3D7 A3F7 W W w
|
||||
A3D8 A3D8 A3F8 X X x
|
||||
A3D9 A3D9 A3F9 Y Y y
|
||||
A3DA A3DA A3FA Z Z z
|
||||
A3E1 A3C1 A3E1 a A a
|
||||
A3E2 A3C2 A3E2 b B b
|
||||
A3E3 A3C3 A3E3 c C c
|
||||
A3E4 A3C4 A3E4 d D d
|
||||
A3E5 A3C5 A3E5 e E e
|
||||
A3E6 A3C6 A3E6 f F f
|
||||
A3E7 A3C7 A3E7 g G g
|
||||
A3E8 A3C8 A3E8 h H h
|
||||
A3E9 A3C9 A3E9 i I i
|
||||
A3EA A3CA A3EA j J j
|
||||
A3EB A3CB A3EB k K k
|
||||
A3EC A3CC A3EC l L l
|
||||
A3ED A3CD A3ED m M m
|
||||
A3EE A3CE A3EE n N n
|
||||
A3EF A3CF A3EF o O o
|
||||
A3F0 A3D0 A3F0 p P p
|
||||
A3F1 A3D1 A3F1 q Q q
|
||||
A3F2 A3D2 A3F2 r R r
|
||||
A3F3 A3D3 A3F3 s S s
|
||||
A3F4 A3D4 A3F4 t T t
|
||||
A3F5 A3D5 A3F5 u U u
|
||||
A3F6 A3D6 A3F6 v V v
|
||||
A3F7 A3D7 A3F7 w W w
|
||||
A3F8 A3D8 A3F8 x X x
|
||||
A3F9 A3D9 A3F9 y Y y
|
||||
A3FA A3DA A3FA z Z z
|
||||
A6A1 A6A1 A6C1 Α Α α
|
||||
A6A2 A6A2 A6C2 Β Β β
|
||||
A6A3 A6A3 A6C3 Γ Γ γ
|
||||
A6A4 A6A4 A6C4 Δ Δ δ
|
||||
A6A5 A6A5 A6C5 Ε Ε ε
|
||||
A6A6 A6A6 A6C6 Ζ Ζ ζ
|
||||
A6A7 A6A7 A6C7 Η Η η
|
||||
A6A8 A6A8 A6C8 Θ Θ θ
|
||||
A6A9 A6A9 A6C9 Ι Ι ι
|
||||
A6AA A6AA A6CA Κ Κ κ
|
||||
A6AB A6AB A6CB Λ Λ λ
|
||||
A6AC A6AC A6CC Μ Μ μ
|
||||
A6AD A6AD A6CD Ν Ν ν
|
||||
A6AE A6AE A6CE Ξ Ξ ξ
|
||||
A6AF A6AF A6CF Ο Ο ο
|
||||
A6B0 A6B0 A6D0 Π Π π
|
||||
A6B1 A6B1 A6D1 Ρ Ρ ρ
|
||||
A6B2 A6B2 A6D2 Σ Σ σ
|
||||
A6B3 A6B3 A6D3 Τ Τ τ
|
||||
A6B4 A6B4 A6D4 Υ Υ υ
|
||||
A6B5 A6B5 A6D5 Φ Φ φ
|
||||
A6B6 A6B6 A6D6 Χ Χ χ
|
||||
A6B7 A6B7 A6D7 Ψ Ψ ψ
|
||||
A6B8 A6B8 A6D8 Ω Ω ω
|
||||
A6C1 A6A1 A6C1 α Α α
|
||||
A6C2 A6A2 A6C2 β Β β
|
||||
A6C3 A6A3 A6C3 γ Γ γ
|
||||
A6C4 A6A4 A6C4 δ Δ δ
|
||||
A6C5 A6A5 A6C5 ε Ε ε
|
||||
A6C6 A6A6 A6C6 ζ Ζ ζ
|
||||
A6C7 A6A7 A6C7 η Η η
|
||||
A6C8 A6A8 A6C8 θ Θ θ
|
||||
A6C9 A6A9 A6C9 ι Ι ι
|
||||
A6CA A6AA A6CA κ Κ κ
|
||||
A6CB A6AB A6CB λ Λ λ
|
||||
A6CC A6AC A6CC μ Μ μ
|
||||
A6CD A6AD A6CD ν Ν ν
|
||||
A6CE A6AE A6CE ξ Ξ ξ
|
||||
A6CF A6AF A6CF ο Ο ο
|
||||
A6D0 A6B0 A6D0 π Π π
|
||||
A6D1 A6B1 A6D1 ρ Ρ ρ
|
||||
A6D2 A6B2 A6D2 σ Σ σ
|
||||
A6D3 A6B3 A6D3 τ Τ τ
|
||||
A6D4 A6B4 A6D4 υ Υ υ
|
||||
A6D5 A6B5 A6D5 φ Φ φ
|
||||
A6D6 A6B6 A6D6 χ Χ χ
|
||||
A6D7 A6B7 A6D7 ψ Ψ ψ
|
||||
A6D8 A6B8 A6D8 ω Ω ω
|
||||
A7A1 A7A1 A7D1 А А а
|
||||
A7A2 A7A2 A7D2 Б Б б
|
||||
A7A3 A7A3 A7D3 В В в
|
||||
A7A4 A7A4 A7D4 Г Г г
|
||||
A7A5 A7A5 A7D5 Д Д д
|
||||
A7A6 A7A6 A7D6 Е Е е
|
||||
A7A7 A7A7 A7D7 Ё Ё ё
|
||||
A7A8 A7A8 A7D8 Ж Ж ж
|
||||
A7A9 A7A9 A7D9 З З з
|
||||
A7AA A7AA A7DA И И и
|
||||
A7AB A7AB A7DB Й Й й
|
||||
A7AC A7AC A7DC К К к
|
||||
A7AD A7AD A7DD Л Л л
|
||||
A7AE A7AE A7DE М М м
|
||||
A7AF A7AF A7DF Н Н н
|
||||
A7B0 A7B0 A7E0 О О о
|
||||
A7B1 A7B1 A7E1 П П п
|
||||
A7B2 A7B2 A7E2 Р Р р
|
||||
A7B3 A7B3 A7E3 С С с
|
||||
A7B4 A7B4 A7E4 Т Т т
|
||||
A7B5 A7B5 A7E5 У У у
|
||||
A7B6 A7B6 A7E6 Ф Ф ф
|
||||
A7B7 A7B7 A7E7 Х Х х
|
||||
A7B8 A7B8 A7E8 Ц Ц ц
|
||||
A7B9 A7B9 A7E9 Ч Ч ч
|
||||
A7BA A7BA A7EA Ш Ш ш
|
||||
A7BB A7BB A7EB Щ Щ щ
|
||||
A7BC A7BC A7EC Ъ Ъ ъ
|
||||
A7BD A7BD A7ED Ы Ы ы
|
||||
A7BE A7BE A7EE Ь Ь ь
|
||||
A7BF A7BF A7EF Э Э э
|
||||
A7C0 A7C0 A7F0 Ю Ю ю
|
||||
A7C1 A7C1 A7F1 Я Я я
|
||||
A7D1 A7A1 A7D1 а А а
|
||||
A7D2 A7A2 A7D2 б Б б
|
||||
A7D3 A7A3 A7D3 в В в
|
||||
A7D4 A7A4 A7D4 г Г г
|
||||
A7D5 A7A5 A7D5 д Д д
|
||||
A7D6 A7A6 A7D6 е Е е
|
||||
A7D7 A7A7 A7D7 ё Ё ё
|
||||
A7D8 A7A8 A7D8 ж Ж ж
|
||||
A7D9 A7A9 A7D9 з З з
|
||||
A7DA A7AA A7DA и И и
|
||||
A7DB A7AB A7DB й Й й
|
||||
A7DC A7AC A7DC к К к
|
||||
A7DD A7AD A7DD л Л л
|
||||
A7DE A7AE A7DE м М м
|
||||
A7DF A7AF A7DF н Н н
|
||||
A7E0 A7B0 A7E0 о О о
|
||||
A7E1 A7B1 A7E1 п П п
|
||||
A7E2 A7B2 A7E2 р Р р
|
||||
A7E3 A7B3 A7E3 с С с
|
||||
A7E4 A7B4 A7E4 т Т т
|
||||
A7E5 A7B5 A7E5 у У у
|
||||
A7E6 A7B6 A7E6 ф Ф ф
|
||||
A7E7 A7B7 A7E7 х Х х
|
||||
A7E8 A7B8 A7E8 ц Ц ц
|
||||
A7E9 A7B9 A7E9 ч Ч ч
|
||||
A7EA A7BA A7EA ш Ш ш
|
||||
A7EB A7BB A7EB щ Щ щ
|
||||
A7EC A7BC A7EC ъ Ъ ъ
|
||||
A7ED A7BD A7ED ы Ы ы
|
||||
A7EE A7BE A7EE ь Ь ь
|
||||
A7EF A7BF A7EF э Э э
|
||||
A7F0 A7C0 A7F0 ю Ю ю
|
||||
A7F1 A7C1 A7F1 я Я я
|
||||
SELECT * FROM t1
|
||||
WHERE HEX(CAST(LOWER(a) AS CHAR CHARACTER SET utf8)) <>
|
||||
HEX(LOWER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
|
||||
code a
|
||||
8FAABC Ģ
|
||||
SELECT * FROM t1
|
||||
WHERE HEX(CAST(UPPER(a) AS CHAR CHARACTER SET utf8)) <>
|
||||
HEX(UPPER(CAST(a AS CHAR CHARACTER SET utf8))) ORDER BY code;
|
||||
code a
|
||||
8FA9C3 ð
|
||||
8FABB9 ǵ
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# End of 5.5 tests
|
||||
#
|
||||
|
@ -50,6 +50,7 @@ information_schema
|
||||
mtr
|
||||
mysql
|
||||
mysqltest
|
||||
performance_schema
|
||||
test
|
||||
flush tables with read lock;
|
||||
drop database mysqltest;
|
||||
@ -61,6 +62,7 @@ Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
performance_schema
|
||||
test
|
||||
drop database mysqltest;
|
||||
ERROR HY000: Can't drop database 'mysqltest'; database doesn't exist
|
||||
|
@ -11,12 +11,14 @@ select * from information_schema.SCHEMATA where schema_name > 'm';
|
||||
CATALOG_NAME SCHEMA_NAME DEFAULT_CHARACTER_SET_NAME DEFAULT_COLLATION_NAME SQL_PATH
|
||||
def mtr latin1 latin1_swedish_ci NULL
|
||||
def mysql latin1 latin1_swedish_ci NULL
|
||||
def performance_schema utf8 utf8_general_ci NULL
|
||||
def test latin1 latin1_swedish_ci NULL
|
||||
select schema_name from information_schema.schemata;
|
||||
schema_name
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
performance_schema
|
||||
test
|
||||
show databases like 't%';
|
||||
Database (t%)
|
||||
@ -26,6 +28,7 @@ Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
performance_schema
|
||||
test
|
||||
show databases where `database` = 't%';
|
||||
Database
|
||||
@ -364,6 +367,7 @@ c
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
performance_schema
|
||||
test
|
||||
explain select * from v0;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
|
@ -419,6 +419,38 @@ The following options may be given as the first argument:
|
||||
default}
|
||||
--partition[=name] Enable or disable partition plugin. Possible values are
|
||||
ON, OFF, FORCE (don't start if the plugin fails to load).
|
||||
--performance-schema
|
||||
Enable the performance schema.
|
||||
--performance-schema-events-waits-history-long-size=#
|
||||
Number of rows in EVENTS_WAITS_HISTORY_LONG.
|
||||
--performance-schema-events-waits-history-size=#
|
||||
Number of rows per thread in EVENTS_WAITS_HISTORY.
|
||||
--performance-schema-max-cond-classes=#
|
||||
Maximum number of condition instruments.
|
||||
--performance-schema-max-cond-instances=#
|
||||
Maximum number of instrumented condition objects.
|
||||
--performance-schema-max-file-classes=#
|
||||
Maximum number of file instruments.
|
||||
--performance-schema-max-file-handles=#
|
||||
Maximum number of opened instrumented files.
|
||||
--performance-schema-max-file-instances=#
|
||||
Maximum number of instrumented files.
|
||||
--performance-schema-max-mutex-classes=#
|
||||
Maximum number of mutex instruments.
|
||||
--performance-schema-max-mutex-instances=#
|
||||
Maximum number of instrumented MUTEX objects.
|
||||
--performance-schema-max-rwlock-classes=#
|
||||
Maximum number of rwlock instruments.
|
||||
--performance-schema-max-rwlock-instances=#
|
||||
Maximum number of instrumented RWLOCK objects.
|
||||
--performance-schema-max-table-handles=#
|
||||
Maximum number of opened instrumented tables.
|
||||
--performance-schema-max-table-instances=#
|
||||
Maximum number of instrumented tables.
|
||||
--performance-schema-max-thread-classes=#
|
||||
Maximum number of thread instruments.
|
||||
--performance-schema-max-thread-instances=#
|
||||
Maximum number of instrumented threads.
|
||||
--pid-file=name Pid file used by safe_mysqld
|
||||
--plugin-dir=name Directory for plugins
|
||||
--plugin-load=name Optional semicolon-separated list of plugins to load,
|
||||
@ -718,220 +750,236 @@ The following options may be given as the first argument:
|
||||
-W, --warnings[=#] Deprecated; use --log-warnings instead.
|
||||
|
||||
Variables (--variable-name=value)
|
||||
and boolean options {FALSE|TRUE} Value (after reading options)
|
||||
----------------------------------- --------------------------------------
|
||||
abort-slave-event-count 0
|
||||
allow-suspicious-udfs FALSE
|
||||
archive ON
|
||||
auto-increment-increment 1
|
||||
auto-increment-offset 1
|
||||
automatic-sp-privileges TRUE
|
||||
back-log 50
|
||||
big-tables FALSE
|
||||
bind-address (No default value)
|
||||
binlog-cache-size 32768
|
||||
binlog-format STATEMENT
|
||||
binlog-row-event-max-size 1024
|
||||
blackhole ON
|
||||
bulk-insert-buffer-size 8388608
|
||||
character-set-client-handshake TRUE
|
||||
character-set-filesystem binary
|
||||
character-set-server latin1
|
||||
character-sets-dir MYSQL_SHAREDIR/charsets/
|
||||
chroot (No default value)
|
||||
collation-server latin1_swedish_ci
|
||||
completion-type NO_CHAIN
|
||||
concurrent-insert AUTO
|
||||
connect-timeout 10
|
||||
console FALSE
|
||||
date-format %Y-%m-%d
|
||||
datetime-format %Y-%m-%d %H:%i:%s
|
||||
default-character-set latin1
|
||||
default-collation latin1_swedish_ci
|
||||
default-storage-engine MyISAM
|
||||
default-time-zone (No default value)
|
||||
default-week-format 0
|
||||
delay-key-write ON
|
||||
delayed-insert-limit 100
|
||||
delayed-insert-timeout 300
|
||||
delayed-queue-size 1000
|
||||
disconnect-slave-event-count 0
|
||||
div-precision-increment 4
|
||||
enable-locking FALSE
|
||||
engine-condition-pushdown TRUE
|
||||
event-scheduler OFF
|
||||
expire-logs-days 0
|
||||
external-locking FALSE
|
||||
federated ON
|
||||
flush FALSE
|
||||
flush-time 0
|
||||
ft-boolean-syntax + -><()~*:""&|
|
||||
ft-max-word-len 84
|
||||
ft-min-word-len 4
|
||||
ft-query-expansion-limit 20
|
||||
ft-stopword-file (No default value)
|
||||
gdb FALSE
|
||||
general-log FALSE
|
||||
group-concat-max-len 1024
|
||||
help TRUE
|
||||
ignore-builtin-innodb FALSE
|
||||
init-connect
|
||||
init-file (No default value)
|
||||
init-rpl-role MASTER
|
||||
init-slave
|
||||
interactive-timeout 28800
|
||||
join-buffer-size 131072
|
||||
keep-files-on-create FALSE
|
||||
key-buffer-size 8388608
|
||||
key-cache-age-threshold 300
|
||||
key-cache-block-size 1024
|
||||
key-cache-division-limit 100
|
||||
language MYSQL_SHAREDIR/
|
||||
large-pages FALSE
|
||||
lc-messages en_US
|
||||
lc-messages-dir MYSQL_SHAREDIR/
|
||||
lc-time-names en_US
|
||||
local-infile TRUE
|
||||
log-bin (No default value)
|
||||
log-bin-index (No default value)
|
||||
log-bin-trust-function-creators FALSE
|
||||
log-error
|
||||
log-isam myisam.log
|
||||
log-output FILE
|
||||
log-queries-not-using-indexes FALSE
|
||||
log-short-format FALSE
|
||||
log-slave-updates FALSE
|
||||
log-slow-admin-statements FALSE
|
||||
log-slow-slave-statements FALSE
|
||||
log-tc tc.log
|
||||
log-tc-size 24576
|
||||
log-update (No default value)
|
||||
log-warnings 1
|
||||
long-query-time 10
|
||||
low-priority-updates FALSE
|
||||
lower-case-table-names 1
|
||||
master-info-file master.info
|
||||
master-retry-count 86400
|
||||
max-allowed-packet 1048576
|
||||
max-binlog-cache-size 18446744073709547520
|
||||
max-binlog-dump-events 0
|
||||
max-binlog-size 1073741824
|
||||
max-connect-errors 10
|
||||
max-connections 151
|
||||
max-delayed-threads 20
|
||||
max-error-count 64
|
||||
max-heap-table-size 16777216
|
||||
max-join-size 18446744073709551615
|
||||
max-length-for-sort-data 1024
|
||||
max-prepared-stmt-count 16382
|
||||
max-relay-log-size 0
|
||||
max-seeks-for-key 18446744073709551615
|
||||
max-sort-length 1024
|
||||
max-sp-recursion-depth 0
|
||||
max-tmp-tables 32
|
||||
max-user-connections 0
|
||||
max-write-lock-count 18446744073709551615
|
||||
memlock FALSE
|
||||
min-examined-row-limit 0
|
||||
multi-range-count 256
|
||||
myisam-block-size 1024
|
||||
myisam-data-pointer-size 6
|
||||
myisam-max-sort-file-size 9223372036853727232
|
||||
myisam-mmap-size 18446744073709551615
|
||||
myisam-recover-options OFF
|
||||
myisam-repair-threads 1
|
||||
myisam-sort-buffer-size 8388608
|
||||
myisam-stats-method nulls_unequal
|
||||
myisam-use-mmap FALSE
|
||||
net-buffer-length 16384
|
||||
net-read-timeout 30
|
||||
net-retry-count 10
|
||||
net-write-timeout 60
|
||||
new FALSE
|
||||
old FALSE
|
||||
old-alter-table FALSE
|
||||
old-passwords FALSE
|
||||
old-style-user-limits FALSE
|
||||
optimizer-prune-level 1
|
||||
optimizer-search-depth 62
|
||||
optimizer-switch index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on
|
||||
partition ON
|
||||
plugin-dir MYSQL_LIBDIR/mysql/plugin
|
||||
plugin-load (No default value)
|
||||
port 3306
|
||||
port-open-timeout 0
|
||||
preload-buffer-size 32768
|
||||
profiling-history-size 15
|
||||
query-alloc-block-size 8192
|
||||
query-cache-limit 1048576
|
||||
query-cache-min-res-unit 4096
|
||||
query-cache-size 0
|
||||
query-cache-type ON
|
||||
query-cache-wlock-invalidate FALSE
|
||||
query-prealloc-size 8192
|
||||
range-alloc-block-size 4096
|
||||
read-buffer-size 131072
|
||||
read-only FALSE
|
||||
read-rnd-buffer-size 262144
|
||||
record-buffer 131072
|
||||
relay-log (No default value)
|
||||
relay-log-index (No default value)
|
||||
relay-log-info-file relay-log.info
|
||||
relay-log-purge TRUE
|
||||
relay-log-recovery FALSE
|
||||
relay-log-space-limit 0
|
||||
replicate-same-server-id FALSE
|
||||
report-host (No default value)
|
||||
report-password (No default value)
|
||||
report-port 3306
|
||||
report-user (No default value)
|
||||
rpl-recovery-rank 0
|
||||
safe-user-create FALSE
|
||||
secure-auth FALSE
|
||||
secure-file-priv (No default value)
|
||||
server-id 0
|
||||
show-slave-auth-info FALSE
|
||||
skip-grant-tables TRUE
|
||||
skip-networking FALSE
|
||||
skip-show-database FALSE
|
||||
skip-slave-start FALSE
|
||||
slave-compressed-protocol FALSE
|
||||
slave-exec-mode STRICT
|
||||
slave-net-timeout 3600
|
||||
slave-skip-errors (No default value)
|
||||
slave-transaction-retries 10
|
||||
slow-launch-time 2
|
||||
slow-query-log FALSE
|
||||
socket /tmp/mysql.sock
|
||||
sort-buffer-size 2097152
|
||||
sporadic-binlog-dump-fail FALSE
|
||||
sql-mode
|
||||
symbolic-links FALSE
|
||||
sync-binlog 0
|
||||
sync-frm TRUE
|
||||
sync-master-info 0
|
||||
sync-relay-log 0
|
||||
sync-relay-log-info 0
|
||||
sysdate-is-now FALSE
|
||||
table-cache 400
|
||||
table-definition-cache 400
|
||||
table-lock-wait-timeout 50
|
||||
table-open-cache 400
|
||||
tc-heuristic-recover COMMIT
|
||||
thread-cache-size 0
|
||||
thread-handling one-thread-per-connection
|
||||
thread-stack 262144
|
||||
time-format %H:%i:%s
|
||||
timed-mutexes FALSE
|
||||
tmp-table-size 16777216
|
||||
transaction-alloc-block-size 8192
|
||||
transaction-isolation REPEATABLE-READ
|
||||
transaction-prealloc-size 4096
|
||||
updatable-views-with-limit YES
|
||||
use-symbolic-links FALSE
|
||||
verbose TRUE
|
||||
wait-timeout 28800
|
||||
warnings 1
|
||||
and boolean options {FALSE|TRUE} Value (after reading options)
|
||||
------------------------------------------------- ------------------------
|
||||
abort-slave-event-count 0
|
||||
allow-suspicious-udfs FALSE
|
||||
archive ON
|
||||
auto-increment-increment 1
|
||||
auto-increment-offset 1
|
||||
automatic-sp-privileges TRUE
|
||||
back-log 50
|
||||
big-tables FALSE
|
||||
bind-address (No default value)
|
||||
binlog-cache-size 32768
|
||||
binlog-format STATEMENT
|
||||
binlog-row-event-max-size 1024
|
||||
blackhole ON
|
||||
bulk-insert-buffer-size 8388608
|
||||
character-set-client-handshake TRUE
|
||||
character-set-filesystem binary
|
||||
character-set-server latin1
|
||||
character-sets-dir MYSQL_SHAREDIR/charsets/
|
||||
chroot (No default value)
|
||||
collation-server latin1_swedish_ci
|
||||
completion-type NO_CHAIN
|
||||
concurrent-insert AUTO
|
||||
connect-timeout 10
|
||||
console FALSE
|
||||
date-format %Y-%m-%d
|
||||
datetime-format %Y-%m-%d %H:%i:%s
|
||||
default-character-set latin1
|
||||
default-collation latin1_swedish_ci
|
||||
default-storage-engine MyISAM
|
||||
default-time-zone (No default value)
|
||||
default-week-format 0
|
||||
delay-key-write ON
|
||||
delayed-insert-limit 100
|
||||
delayed-insert-timeout 300
|
||||
delayed-queue-size 1000
|
||||
disconnect-slave-event-count 0
|
||||
div-precision-increment 4
|
||||
enable-locking FALSE
|
||||
engine-condition-pushdown TRUE
|
||||
event-scheduler OFF
|
||||
expire-logs-days 0
|
||||
external-locking FALSE
|
||||
federated ON
|
||||
flush FALSE
|
||||
flush-time 0
|
||||
ft-boolean-syntax + -><()~*:""&|
|
||||
ft-max-word-len 84
|
||||
ft-min-word-len 4
|
||||
ft-query-expansion-limit 20
|
||||
ft-stopword-file (No default value)
|
||||
gdb FALSE
|
||||
general-log FALSE
|
||||
group-concat-max-len 1024
|
||||
help TRUE
|
||||
ignore-builtin-innodb FALSE
|
||||
init-connect
|
||||
init-file (No default value)
|
||||
init-rpl-role MASTER
|
||||
init-slave
|
||||
interactive-timeout 28800
|
||||
join-buffer-size 131072
|
||||
keep-files-on-create FALSE
|
||||
key-buffer-size 8388608
|
||||
key-cache-age-threshold 300
|
||||
key-cache-block-size 1024
|
||||
key-cache-division-limit 100
|
||||
language MYSQL_SHAREDIR/
|
||||
large-pages FALSE
|
||||
lc-messages en_US
|
||||
lc-messages-dir MYSQL_SHAREDIR/
|
||||
lc-time-names en_US
|
||||
local-infile TRUE
|
||||
log-bin (No default value)
|
||||
log-bin-index (No default value)
|
||||
log-bin-trust-function-creators FALSE
|
||||
log-error
|
||||
log-isam myisam.log
|
||||
log-output FILE
|
||||
log-queries-not-using-indexes FALSE
|
||||
log-short-format FALSE
|
||||
log-slave-updates FALSE
|
||||
log-slow-admin-statements FALSE
|
||||
log-slow-slave-statements FALSE
|
||||
log-tc tc.log
|
||||
log-tc-size 24576
|
||||
log-update (No default value)
|
||||
log-warnings 1
|
||||
long-query-time 10
|
||||
low-priority-updates FALSE
|
||||
lower-case-table-names 1
|
||||
master-info-file master.info
|
||||
master-retry-count 86400
|
||||
max-allowed-packet 1048576
|
||||
max-binlog-cache-size 18446744073709547520
|
||||
max-binlog-dump-events 0
|
||||
max-binlog-size 1073741824
|
||||
max-connect-errors 10
|
||||
max-connections 151
|
||||
max-delayed-threads 20
|
||||
max-error-count 64
|
||||
max-heap-table-size 16777216
|
||||
max-join-size 18446744073709551615
|
||||
max-length-for-sort-data 1024
|
||||
max-prepared-stmt-count 16382
|
||||
max-relay-log-size 0
|
||||
max-seeks-for-key 18446744073709551615
|
||||
max-sort-length 1024
|
||||
max-sp-recursion-depth 0
|
||||
max-tmp-tables 32
|
||||
max-user-connections 0
|
||||
max-write-lock-count 18446744073709551615
|
||||
memlock FALSE
|
||||
min-examined-row-limit 0
|
||||
multi-range-count 256
|
||||
myisam-block-size 1024
|
||||
myisam-data-pointer-size 6
|
||||
myisam-max-sort-file-size 9223372036853727232
|
||||
myisam-mmap-size 18446744073709551615
|
||||
myisam-recover-options OFF
|
||||
myisam-repair-threads 1
|
||||
myisam-sort-buffer-size 8388608
|
||||
myisam-stats-method nulls_unequal
|
||||
myisam-use-mmap FALSE
|
||||
net-buffer-length 16384
|
||||
net-read-timeout 30
|
||||
net-retry-count 10
|
||||
net-write-timeout 60
|
||||
new FALSE
|
||||
old FALSE
|
||||
old-alter-table FALSE
|
||||
old-passwords FALSE
|
||||
old-style-user-limits FALSE
|
||||
optimizer-prune-level 1
|
||||
optimizer-search-depth 62
|
||||
optimizer-switch index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on
|
||||
partition ON
|
||||
performance-schema FALSE
|
||||
performance-schema-events-waits-history-long-size 10000
|
||||
performance-schema-events-waits-history-size 10
|
||||
performance-schema-max-cond-classes 80
|
||||
performance-schema-max-cond-instances 1000
|
||||
performance-schema-max-file-classes 50
|
||||
performance-schema-max-file-handles 32768
|
||||
performance-schema-max-file-instances 10000
|
||||
performance-schema-max-mutex-classes 200
|
||||
performance-schema-max-mutex-instances 1000
|
||||
performance-schema-max-rwlock-classes 20
|
||||
performance-schema-max-rwlock-instances 1000
|
||||
performance-schema-max-table-handles 100000
|
||||
performance-schema-max-table-instances 50000
|
||||
performance-schema-max-thread-classes 50
|
||||
performance-schema-max-thread-instances 1000
|
||||
plugin-dir MYSQL_LIBDIR/mysql/plugin
|
||||
plugin-load (No default value)
|
||||
port 3306
|
||||
port-open-timeout 0
|
||||
preload-buffer-size 32768
|
||||
profiling-history-size 15
|
||||
query-alloc-block-size 8192
|
||||
query-cache-limit 1048576
|
||||
query-cache-min-res-unit 4096
|
||||
query-cache-size 0
|
||||
query-cache-type ON
|
||||
query-cache-wlock-invalidate FALSE
|
||||
query-prealloc-size 8192
|
||||
range-alloc-block-size 4096
|
||||
read-buffer-size 131072
|
||||
read-only FALSE
|
||||
read-rnd-buffer-size 262144
|
||||
record-buffer 131072
|
||||
relay-log (No default value)
|
||||
relay-log-index (No default value)
|
||||
relay-log-info-file relay-log.info
|
||||
relay-log-purge TRUE
|
||||
relay-log-recovery FALSE
|
||||
relay-log-space-limit 0
|
||||
replicate-same-server-id FALSE
|
||||
report-host (No default value)
|
||||
report-password (No default value)
|
||||
report-port 3306
|
||||
report-user (No default value)
|
||||
rpl-recovery-rank 0
|
||||
safe-user-create FALSE
|
||||
secure-auth FALSE
|
||||
secure-file-priv (No default value)
|
||||
server-id 0
|
||||
show-slave-auth-info FALSE
|
||||
skip-grant-tables TRUE
|
||||
skip-networking FALSE
|
||||
skip-show-database FALSE
|
||||
skip-slave-start FALSE
|
||||
slave-compressed-protocol FALSE
|
||||
slave-exec-mode STRICT
|
||||
slave-net-timeout 3600
|
||||
slave-skip-errors (No default value)
|
||||
slave-transaction-retries 10
|
||||
slow-launch-time 2
|
||||
slow-query-log FALSE
|
||||
socket /tmp/mysql.sock
|
||||
sort-buffer-size 2097152
|
||||
sporadic-binlog-dump-fail FALSE
|
||||
sql-mode
|
||||
symbolic-links FALSE
|
||||
sync-binlog 0
|
||||
sync-frm TRUE
|
||||
sync-master-info 0
|
||||
sync-relay-log 0
|
||||
sync-relay-log-info 0
|
||||
sysdate-is-now FALSE
|
||||
table-cache 400
|
||||
table-definition-cache 400
|
||||
table-lock-wait-timeout 50
|
||||
table-open-cache 400
|
||||
tc-heuristic-recover COMMIT
|
||||
thread-cache-size 0
|
||||
thread-handling one-thread-per-connection
|
||||
thread-stack 262144
|
||||
time-format %H:%i:%s
|
||||
timed-mutexes FALSE
|
||||
tmp-table-size 16777216
|
||||
transaction-alloc-block-size 8192
|
||||
transaction-isolation REPEATABLE-READ
|
||||
transaction-prealloc-size 4096
|
||||
updatable-views-with-limit YES
|
||||
use-symbolic-links FALSE
|
||||
verbose TRUE
|
||||
wait-timeout 28800
|
||||
warnings 1
|
||||
|
||||
To see what values a running MySQL server is using, type
|
||||
'mysqladmin variables' instead of 'mysqld --verbose --help'.
|
||||
|
@ -419,6 +419,38 @@ The following options may be given as the first argument:
|
||||
default}
|
||||
--partition[=name] Enable or disable partition plugin. Possible values are
|
||||
ON, OFF, FORCE (don't start if the plugin fails to load).
|
||||
--performance-schema
|
||||
Enable the performance schema.
|
||||
--performance-schema-events-waits-history-long-size=#
|
||||
Number of rows in EVENTS_WAITS_HISTORY_LONG.
|
||||
--performance-schema-events-waits-history-size=#
|
||||
Number of rows per thread in EVENTS_WAITS_HISTORY.
|
||||
--performance-schema-max-cond-classes=#
|
||||
Maximum number of condition instruments.
|
||||
--performance-schema-max-cond-instances=#
|
||||
Maximum number of instrumented condition objects.
|
||||
--performance-schema-max-file-classes=#
|
||||
Maximum number of file instruments.
|
||||
--performance-schema-max-file-handles=#
|
||||
Maximum number of opened instrumented files.
|
||||
--performance-schema-max-file-instances=#
|
||||
Maximum number of instrumented files.
|
||||
--performance-schema-max-mutex-classes=#
|
||||
Maximum number of mutex instruments.
|
||||
--performance-schema-max-mutex-instances=#
|
||||
Maximum number of instrumented MUTEX objects.
|
||||
--performance-schema-max-rwlock-classes=#
|
||||
Maximum number of rwlock instruments.
|
||||
--performance-schema-max-rwlock-instances=#
|
||||
Maximum number of instrumented RWLOCK objects.
|
||||
--performance-schema-max-table-handles=#
|
||||
Maximum number of opened instrumented tables.
|
||||
--performance-schema-max-table-instances=#
|
||||
Maximum number of instrumented tables.
|
||||
--performance-schema-max-thread-classes=#
|
||||
Maximum number of thread instruments.
|
||||
--performance-schema-max-thread-instances=#
|
||||
Maximum number of instrumented threads.
|
||||
--pid-file=name Pid file used by safe_mysqld
|
||||
--plugin-dir=name Directory for plugins
|
||||
--plugin-load=name Optional semicolon-separated list of plugins to load,
|
||||
@ -722,222 +754,238 @@ The following options may be given as the first argument:
|
||||
-W, --warnings[=#] Deprecated; use --log-warnings instead.
|
||||
|
||||
Variables (--variable-name=value)
|
||||
and boolean options {FALSE|TRUE} Value (after reading options)
|
||||
--------------------------------- ----------------------------------------
|
||||
abort-slave-event-count 0
|
||||
allow-suspicious-udfs FALSE
|
||||
archive ON
|
||||
auto-increment-increment 1
|
||||
auto-increment-offset 1
|
||||
automatic-sp-privileges TRUE
|
||||
back-log 50
|
||||
big-tables FALSE
|
||||
bind-address (No default value)
|
||||
binlog-cache-size 32768
|
||||
binlog-format STATEMENT
|
||||
binlog-row-event-max-size 1024
|
||||
blackhole ON
|
||||
bulk-insert-buffer-size 8388608
|
||||
character-set-client-handshake TRUE
|
||||
character-set-filesystem binary
|
||||
character-set-server latin1
|
||||
character-sets-dir MYSQL_SHAREDIR/charsets/
|
||||
chroot (No default value)
|
||||
collation-server latin1_swedish_ci
|
||||
completion-type NO_CHAIN
|
||||
concurrent-insert AUTO
|
||||
connect-timeout 10
|
||||
console FALSE
|
||||
date-format %Y-%m-%d
|
||||
datetime-format %Y-%m-%d %H:%i:%s
|
||||
default-character-set latin1
|
||||
default-collation latin1_swedish_ci
|
||||
default-storage-engine MyISAM
|
||||
default-time-zone (No default value)
|
||||
default-week-format 0
|
||||
delay-key-write ON
|
||||
delayed-insert-limit 100
|
||||
delayed-insert-timeout 300
|
||||
delayed-queue-size 1000
|
||||
disconnect-slave-event-count 0
|
||||
div-precision-increment 4
|
||||
enable-locking FALSE
|
||||
engine-condition-pushdown TRUE
|
||||
event-scheduler OFF
|
||||
expire-logs-days 0
|
||||
external-locking FALSE
|
||||
federated ON
|
||||
flush FALSE
|
||||
flush-time 1800
|
||||
ft-boolean-syntax + -><()~*:""&|
|
||||
ft-max-word-len 84
|
||||
ft-min-word-len 4
|
||||
ft-query-expansion-limit 20
|
||||
ft-stopword-file (No default value)
|
||||
gdb FALSE
|
||||
general-log FALSE
|
||||
group-concat-max-len 1024
|
||||
help TRUE
|
||||
ignore-builtin-innodb FALSE
|
||||
init-connect
|
||||
init-file (No default value)
|
||||
init-rpl-role MASTER
|
||||
init-slave
|
||||
interactive-timeout 28800
|
||||
join-buffer-size 131072
|
||||
keep-files-on-create FALSE
|
||||
key-buffer-size 8388608
|
||||
key-cache-age-threshold 300
|
||||
key-cache-block-size 1024
|
||||
key-cache-division-limit 100
|
||||
language MYSQL_SHAREDIR/
|
||||
lc-messages en_US
|
||||
lc-messages-dir MYSQL_SHAREDIR/
|
||||
lc-time-names en_US
|
||||
local-infile TRUE
|
||||
log-bin (No default value)
|
||||
log-bin-index (No default value)
|
||||
log-bin-trust-function-creators FALSE
|
||||
log-error
|
||||
log-isam myisam.log
|
||||
log-output FILE
|
||||
log-queries-not-using-indexes FALSE
|
||||
log-short-format FALSE
|
||||
log-slave-updates FALSE
|
||||
log-slow-admin-statements FALSE
|
||||
log-slow-slave-statements FALSE
|
||||
log-tc tc.log
|
||||
log-tc-size 24576
|
||||
log-update (No default value)
|
||||
log-warnings 1
|
||||
long-query-time 10
|
||||
low-priority-updates FALSE
|
||||
lower-case-table-names 1
|
||||
master-info-file master.info
|
||||
master-retry-count 86400
|
||||
max-allowed-packet 1048576
|
||||
max-binlog-cache-size 18446744073709547520
|
||||
max-binlog-dump-events 0
|
||||
max-binlog-size 1073741824
|
||||
max-connect-errors 10
|
||||
max-connections 151
|
||||
max-delayed-threads 20
|
||||
max-error-count 64
|
||||
max-heap-table-size 16777216
|
||||
max-join-size 18446744073709551615
|
||||
max-length-for-sort-data 1024
|
||||
max-prepared-stmt-count 16382
|
||||
max-relay-log-size 0
|
||||
max-seeks-for-key 18446744073709551615
|
||||
max-sort-length 1024
|
||||
max-sp-recursion-depth 0
|
||||
max-tmp-tables 32
|
||||
max-user-connections 0
|
||||
max-write-lock-count 18446744073709551615
|
||||
memlock FALSE
|
||||
min-examined-row-limit 0
|
||||
multi-range-count 256
|
||||
myisam-block-size 1024
|
||||
myisam-data-pointer-size 6
|
||||
myisam-max-sort-file-size 9223372036853727232
|
||||
myisam-mmap-size 18446744073709551615
|
||||
myisam-recover-options OFF
|
||||
myisam-repair-threads 1
|
||||
myisam-sort-buffer-size 8388608
|
||||
myisam-stats-method nulls_unequal
|
||||
myisam-use-mmap FALSE
|
||||
named-pipe FALSE
|
||||
net-buffer-length 16384
|
||||
net-read-timeout 30
|
||||
net-retry-count 10
|
||||
net-write-timeout 60
|
||||
new FALSE
|
||||
old FALSE
|
||||
old-alter-table FALSE
|
||||
old-passwords FALSE
|
||||
old-style-user-limits FALSE
|
||||
optimizer-prune-level 1
|
||||
optimizer-search-depth 62
|
||||
optimizer-switch index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on
|
||||
partition ON
|
||||
plugin-dir MYSQL_LIBDIR/plugin
|
||||
plugin-load (No default value)
|
||||
port 3306
|
||||
port-open-timeout 0
|
||||
preload-buffer-size 32768
|
||||
profiling-history-size 15
|
||||
query-alloc-block-size 8192
|
||||
query-cache-limit 1048576
|
||||
query-cache-min-res-unit 4096
|
||||
query-cache-size 0
|
||||
query-cache-type ON
|
||||
query-cache-wlock-invalidate FALSE
|
||||
query-prealloc-size 8192
|
||||
range-alloc-block-size 4096
|
||||
read-buffer-size 131072
|
||||
read-only FALSE
|
||||
read-rnd-buffer-size 262144
|
||||
record-buffer 131072
|
||||
relay-log (No default value)
|
||||
relay-log-index (No default value)
|
||||
relay-log-info-file relay-log.info
|
||||
relay-log-purge TRUE
|
||||
relay-log-recovery FALSE
|
||||
relay-log-space-limit 0
|
||||
replicate-same-server-id FALSE
|
||||
report-host (No default value)
|
||||
report-password (No default value)
|
||||
report-port 3306
|
||||
report-user (No default value)
|
||||
rpl-recovery-rank 0
|
||||
safe-user-create FALSE
|
||||
secure-auth FALSE
|
||||
secure-file-priv (No default value)
|
||||
server-id 0
|
||||
shared-memory FALSE
|
||||
shared-memory-base-name MYSQL
|
||||
show-slave-auth-info FALSE
|
||||
skip-grant-tables TRUE
|
||||
skip-networking FALSE
|
||||
skip-show-database FALSE
|
||||
skip-slave-start FALSE
|
||||
slave-compressed-protocol FALSE
|
||||
slave-exec-mode STRICT
|
||||
slave-net-timeout 3600
|
||||
slave-skip-errors (No default value)
|
||||
slave-transaction-retries 10
|
||||
slow-launch-time 2
|
||||
slow-query-log FALSE
|
||||
socket MySQL
|
||||
sort-buffer-size 2097152
|
||||
sporadic-binlog-dump-fail FALSE
|
||||
sql-mode
|
||||
symbolic-links FALSE
|
||||
sync-binlog 0
|
||||
sync-frm TRUE
|
||||
sync-master-info 0
|
||||
sync-relay-log 0
|
||||
sync-relay-log-info 0
|
||||
sysdate-is-now FALSE
|
||||
table-cache 400
|
||||
table-definition-cache 400
|
||||
table-lock-wait-timeout 50
|
||||
table-open-cache 400
|
||||
tc-heuristic-recover COMMIT
|
||||
thread-cache-size 0
|
||||
thread-handling one-thread-per-connection
|
||||
thread-stack 262144
|
||||
time-format %H:%i:%s
|
||||
timed-mutexes FALSE
|
||||
tmp-table-size 16777216
|
||||
transaction-alloc-block-size 8192
|
||||
transaction-isolation REPEATABLE-READ
|
||||
transaction-prealloc-size 4096
|
||||
updatable-views-with-limit YES
|
||||
use-symbolic-links FALSE
|
||||
verbose TRUE
|
||||
wait-timeout 28800
|
||||
warnings 1
|
||||
and boolean options {FALSE|TRUE} Value (after reading options)
|
||||
------------------------------------------------- ------------------------
|
||||
abort-slave-event-count 0
|
||||
allow-suspicious-udfs FALSE
|
||||
archive ON
|
||||
auto-increment-increment 1
|
||||
auto-increment-offset 1
|
||||
automatic-sp-privileges TRUE
|
||||
back-log 50
|
||||
big-tables FALSE
|
||||
bind-address (No default value)
|
||||
binlog-cache-size 32768
|
||||
binlog-format STATEMENT
|
||||
binlog-row-event-max-size 1024
|
||||
blackhole ON
|
||||
bulk-insert-buffer-size 8388608
|
||||
character-set-client-handshake TRUE
|
||||
character-set-filesystem binary
|
||||
character-set-server latin1
|
||||
character-sets-dir MYSQL_SHAREDIR/charsets/
|
||||
chroot (No default value)
|
||||
collation-server latin1_swedish_ci
|
||||
completion-type NO_CHAIN
|
||||
concurrent-insert AUTO
|
||||
connect-timeout 10
|
||||
console FALSE
|
||||
date-format %Y-%m-%d
|
||||
datetime-format %Y-%m-%d %H:%i:%s
|
||||
default-character-set latin1
|
||||
default-collation latin1_swedish_ci
|
||||
default-storage-engine MyISAM
|
||||
default-time-zone (No default value)
|
||||
default-week-format 0
|
||||
delay-key-write ON
|
||||
delayed-insert-limit 100
|
||||
delayed-insert-timeout 300
|
||||
delayed-queue-size 1000
|
||||
disconnect-slave-event-count 0
|
||||
div-precision-increment 4
|
||||
enable-locking FALSE
|
||||
engine-condition-pushdown TRUE
|
||||
event-scheduler OFF
|
||||
expire-logs-days 0
|
||||
external-locking FALSE
|
||||
federated ON
|
||||
flush FALSE
|
||||
flush-time 1800
|
||||
ft-boolean-syntax + -><()~*:""&|
|
||||
ft-max-word-len 84
|
||||
ft-min-word-len 4
|
||||
ft-query-expansion-limit 20
|
||||
ft-stopword-file (No default value)
|
||||
gdb FALSE
|
||||
general-log FALSE
|
||||
group-concat-max-len 1024
|
||||
help TRUE
|
||||
ignore-builtin-innodb FALSE
|
||||
init-connect
|
||||
init-file (No default value)
|
||||
init-rpl-role MASTER
|
||||
init-slave
|
||||
interactive-timeout 28800
|
||||
join-buffer-size 131072
|
||||
keep-files-on-create FALSE
|
||||
key-buffer-size 8388608
|
||||
key-cache-age-threshold 300
|
||||
key-cache-block-size 1024
|
||||
key-cache-division-limit 100
|
||||
language MYSQL_SHAREDIR/
|
||||
lc-messages en_US
|
||||
lc-messages-dir MYSQL_SHAREDIR/
|
||||
lc-time-names en_US
|
||||
local-infile TRUE
|
||||
log-bin (No default value)
|
||||
log-bin-index (No default value)
|
||||
log-bin-trust-function-creators FALSE
|
||||
log-error
|
||||
log-isam myisam.log
|
||||
log-output FILE
|
||||
log-queries-not-using-indexes FALSE
|
||||
log-short-format FALSE
|
||||
log-slave-updates FALSE
|
||||
log-slow-admin-statements FALSE
|
||||
log-slow-slave-statements FALSE
|
||||
log-tc tc.log
|
||||
log-tc-size 24576
|
||||
log-update (No default value)
|
||||
log-warnings 1
|
||||
long-query-time 10
|
||||
low-priority-updates FALSE
|
||||
lower-case-table-names 1
|
||||
master-info-file master.info
|
||||
master-retry-count 86400
|
||||
max-allowed-packet 1048576
|
||||
max-binlog-cache-size 18446744073709547520
|
||||
max-binlog-dump-events 0
|
||||
max-binlog-size 1073741824
|
||||
max-connect-errors 10
|
||||
max-connections 151
|
||||
max-delayed-threads 20
|
||||
max-error-count 64
|
||||
max-heap-table-size 16777216
|
||||
max-join-size 18446744073709551615
|
||||
max-length-for-sort-data 1024
|
||||
max-prepared-stmt-count 16382
|
||||
max-relay-log-size 0
|
||||
max-seeks-for-key 18446744073709551615
|
||||
max-sort-length 1024
|
||||
max-sp-recursion-depth 0
|
||||
max-tmp-tables 32
|
||||
max-user-connections 0
|
||||
max-write-lock-count 18446744073709551615
|
||||
memlock FALSE
|
||||
min-examined-row-limit 0
|
||||
multi-range-count 256
|
||||
myisam-block-size 1024
|
||||
myisam-data-pointer-size 6
|
||||
myisam-max-sort-file-size 9223372036853727232
|
||||
myisam-mmap-size 18446744073709551615
|
||||
myisam-recover-options OFF
|
||||
myisam-repair-threads 1
|
||||
myisam-sort-buffer-size 8388608
|
||||
myisam-stats-method nulls_unequal
|
||||
myisam-use-mmap FALSE
|
||||
named-pipe FALSE
|
||||
net-buffer-length 16384
|
||||
net-read-timeout 30
|
||||
net-retry-count 10
|
||||
net-write-timeout 60
|
||||
new FALSE
|
||||
old FALSE
|
||||
old-alter-table FALSE
|
||||
old-passwords FALSE
|
||||
old-style-user-limits FALSE
|
||||
optimizer-prune-level 1
|
||||
optimizer-search-depth 62
|
||||
optimizer-switch index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on
|
||||
partition ON
|
||||
performance-schema FALSE
|
||||
performance-schema-events-waits-history-long-size 10000
|
||||
performance-schema-events-waits-history-size 10
|
||||
performance-schema-max-cond-classes 80
|
||||
performance-schema-max-cond-instances 1000
|
||||
performance-schema-max-file-classes 50
|
||||
performance-schema-max-file-handles 32768
|
||||
performance-schema-max-file-instances 10000
|
||||
performance-schema-max-mutex-classes 200
|
||||
performance-schema-max-mutex-instances 1000
|
||||
performance-schema-max-rwlock-classes 20
|
||||
performance-schema-max-rwlock-instances 1000
|
||||
performance-schema-max-table-handles 100000
|
||||
performance-schema-max-table-instances 50000
|
||||
performance-schema-max-thread-classes 50
|
||||
performance-schema-max-thread-instances 1000
|
||||
plugin-dir MYSQL_LIBDIR/plugin
|
||||
plugin-load (No default value)
|
||||
port 3306
|
||||
port-open-timeout 0
|
||||
preload-buffer-size 32768
|
||||
profiling-history-size 15
|
||||
query-alloc-block-size 8192
|
||||
query-cache-limit 1048576
|
||||
query-cache-min-res-unit 4096
|
||||
query-cache-size 0
|
||||
query-cache-type ON
|
||||
query-cache-wlock-invalidate FALSE
|
||||
query-prealloc-size 8192
|
||||
range-alloc-block-size 4096
|
||||
read-buffer-size 131072
|
||||
read-only FALSE
|
||||
read-rnd-buffer-size 262144
|
||||
record-buffer 131072
|
||||
relay-log (No default value)
|
||||
relay-log-index (No default value)
|
||||
relay-log-info-file relay-log.info
|
||||
relay-log-purge TRUE
|
||||
relay-log-recovery FALSE
|
||||
relay-log-space-limit 0
|
||||
replicate-same-server-id FALSE
|
||||
report-host (No default value)
|
||||
report-password (No default value)
|
||||
report-port 3306
|
||||
report-user (No default value)
|
||||
rpl-recovery-rank 0
|
||||
safe-user-create FALSE
|
||||
secure-auth FALSE
|
||||
secure-file-priv (No default value)
|
||||
server-id 0
|
||||
shared-memory FALSE
|
||||
shared-memory-base-name MYSQL
|
||||
show-slave-auth-info FALSE
|
||||
skip-grant-tables TRUE
|
||||
skip-networking FALSE
|
||||
skip-show-database FALSE
|
||||
skip-slave-start FALSE
|
||||
slave-compressed-protocol FALSE
|
||||
slave-exec-mode STRICT
|
||||
slave-net-timeout 3600
|
||||
slave-skip-errors (No default value)
|
||||
slave-transaction-retries 10
|
||||
slow-launch-time 2
|
||||
slow-query-log FALSE
|
||||
socket MySQL
|
||||
sort-buffer-size 2097152
|
||||
sporadic-binlog-dump-fail FALSE
|
||||
sql-mode
|
||||
symbolic-links FALSE
|
||||
sync-binlog 0
|
||||
sync-frm TRUE
|
||||
sync-master-info 0
|
||||
sync-relay-log 0
|
||||
sync-relay-log-info 0
|
||||
sysdate-is-now FALSE
|
||||
table-cache 400
|
||||
table-definition-cache 400
|
||||
table-lock-wait-timeout 50
|
||||
table-open-cache 400
|
||||
tc-heuristic-recover COMMIT
|
||||
thread-cache-size 0
|
||||
thread-handling one-thread-per-connection
|
||||
thread-stack 262144
|
||||
time-format %H:%i:%s
|
||||
timed-mutexes FALSE
|
||||
tmp-table-size 16777216
|
||||
transaction-alloc-block-size 8192
|
||||
transaction-isolation REPEATABLE-READ
|
||||
transaction-prealloc-size 4096
|
||||
updatable-views-with-limit YES
|
||||
use-symbolic-links FALSE
|
||||
verbose TRUE
|
||||
wait-timeout 28800
|
||||
warnings 1
|
||||
|
||||
To see what values a running MySQL server is using, type
|
||||
'mysqladmin variables' instead of 'mysqld --verbose --help'.
|
||||
|
@ -262,6 +262,7 @@ Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
performance_schema
|
||||
test
|
||||
prepare stmt4 from ' show tables from test like ''t2%'' ';
|
||||
execute stmt4;
|
||||
|
@ -9,6 +9,7 @@ information_schema
|
||||
foo
|
||||
mtr
|
||||
mysql
|
||||
performance_schema
|
||||
test
|
||||
drop schema foo;
|
||||
#
|
||||
|
@ -142,6 +142,7 @@ Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
performance_schema
|
||||
test
|
||||
show databases like "test%";
|
||||
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
|
||||
|
@ -116,4 +116,5 @@ Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
performance_schema
|
||||
test
|
||||
|
@ -320,10 +320,10 @@ INSERT INTO t2 SET a = func_modify_t1();
|
||||
SHOW BINLOG EVENTS FROM 12283;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 12283 Query 1 12351 BEGIN
|
||||
master-bin.000001 12351 Table_map 1 12393 table_id: 41 (test.t2)
|
||||
master-bin.000001 12393 Table_map 1 12435 table_id: 42 (test.t1)
|
||||
master-bin.000001 12435 Write_rows 1 12473 table_id: 42
|
||||
master-bin.000001 12473 Write_rows 1 12511 table_id: 41 flags: STMT_END_F
|
||||
master-bin.000001 12351 Table_map 1 12393 table_id: 59 (test.t2)
|
||||
master-bin.000001 12393 Table_map 1 12435 table_id: 60 (test.t1)
|
||||
master-bin.000001 12435 Write_rows 1 12473 table_id: 60
|
||||
master-bin.000001 12473 Write_rows 1 12511 table_id: 59 flags: STMT_END_F
|
||||
master-bin.000001 12511 Query 1 12580 COMMIT
|
||||
DROP TABLE t1,t2;
|
||||
DROP FUNCTION func_modify_t1;
|
||||
@ -347,12 +347,12 @@ INSERT INTO t1 SET a = 2;
|
||||
SHOW BINLOG EVENTS FROM 13426;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 13426 Query 1 13494 BEGIN
|
||||
master-bin.000001 13494 Table_map 1 13535 table_id: 44 (test.t1)
|
||||
master-bin.000001 13535 Table_map 1 13577 table_id: 45 (test.t3)
|
||||
master-bin.000001 13577 Table_map 1 13619 table_id: 46 (test.t2)
|
||||
master-bin.000001 13619 Write_rows 1 13657 table_id: 46
|
||||
master-bin.000001 13657 Write_rows 1 13695 table_id: 45
|
||||
master-bin.000001 13695 Write_rows 1 13729 table_id: 44 flags: STMT_END_F
|
||||
master-bin.000001 13494 Table_map 1 13535 table_id: 62 (test.t1)
|
||||
master-bin.000001 13535 Table_map 1 13577 table_id: 63 (test.t3)
|
||||
master-bin.000001 13577 Table_map 1 13619 table_id: 64 (test.t2)
|
||||
master-bin.000001 13619 Write_rows 1 13657 table_id: 64
|
||||
master-bin.000001 13657 Write_rows 1 13695 table_id: 63
|
||||
master-bin.000001 13695 Write_rows 1 13729 table_id: 62 flags: STMT_END_F
|
||||
master-bin.000001 13729 Query 1 13798 COMMIT
|
||||
DROP TABLE t1,t2,t3;
|
||||
SET SESSION binlog_format = STATEMENT;
|
||||
|
@ -56,6 +56,7 @@ catalog_name schema_name sql_path
|
||||
def information_schema NULL
|
||||
def mtr NULL
|
||||
def mysql NULL
|
||||
def performance_schema NULL
|
||||
def test NULL
|
||||
###############################################################################
|
||||
# Testcases 3.2.9.2+3.2.9.3: INFORMATION_SCHEMA.SCHEMATA accessible information
|
||||
|
@ -13,6 +13,7 @@ information_schema
|
||||
日本語
|
||||
ニホンゴ
|
||||
mysql
|
||||
performance_schema
|
||||
test
|
||||
USE `ニホンゴ`;
|
||||
USE `日本語`;
|
||||
|
@ -14,6 +14,7 @@ information_schema
|
||||
龔龖龗
|
||||
ニホンゴ
|
||||
mysql
|
||||
performance_schema
|
||||
test
|
||||
USE `ニホンゴ`;
|
||||
USE `日本語`;
|
||||
|
@ -13,6 +13,7 @@ information_schema
|
||||
龔龖龗
|
||||
ニホンゴ
|
||||
mysql
|
||||
performance_schema
|
||||
test
|
||||
USE `ニホンゴ`;
|
||||
USE `日本語`;
|
||||
|
@ -13,6 +13,7 @@ information_schema
|
||||
龔龖龗
|
||||
ニホンゴ
|
||||
mysql
|
||||
performance_schema
|
||||
test
|
||||
USE `ニホンゴ`;
|
||||
USE `日本語`;
|
||||
|
49
mysql-test/suite/perfschema/include/binlog_common.inc
Normal file
49
mysql-test/suite/perfschema/include/binlog_common.inc
Normal file
@ -0,0 +1,49 @@
|
||||
# Copyright (C) 2009 Sun Microsystems, Inc
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; version 2 of the License.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
# Tests for PERFORMANCE_SCHEMA
|
||||
|
||||
RESET MASTER;
|
||||
|
||||
select count(*) > 0 from performance_schema.SETUP_INSTRUMENTS;
|
||||
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='NO'
|
||||
where name like "wait/synch/rwlock/%";
|
||||
|
||||
select count(*) > 0 from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
|
||||
--disable_warnings
|
||||
drop table if exists test.t1;
|
||||
drop table if exists test.t2;
|
||||
--enable_warnings
|
||||
|
||||
create table test.t1 (thread_id integer);
|
||||
create table test.t2 (name varchar(128));
|
||||
|
||||
insert into test.t1
|
||||
select thread_id from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
|
||||
insert into test.t2
|
||||
select name from performance_schema.SETUP_INSTRUMENTS
|
||||
where name like "wait/synch/rwlock/%";
|
||||
|
||||
drop table test.t1;
|
||||
drop table test.t2;
|
||||
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='YES'
|
||||
where name like "wait/synch/rwlock/%";
|
||||
|
||||
--source include/show_binlog_events.inc
|
||||
|
25
mysql-test/suite/perfschema/include/cleanup_helper.inc
Normal file
25
mysql-test/suite/perfschema/include/cleanup_helper.inc
Normal file
@ -0,0 +1,25 @@
|
||||
# Copyright (C) 2009 Sun Microsystems, Inc
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; version 2 of the License.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
# Tests for PERFORMANCE_SCHEMA
|
||||
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='YES';
|
||||
|
||||
disconnect con1;
|
||||
disconnect con2;
|
||||
disconnect con3;
|
||||
|
||||
connection default;
|
||||
|
194
mysql-test/suite/perfschema/include/privilege.inc
Normal file
194
mysql-test/suite/perfschema/include/privilege.inc
Normal file
@ -0,0 +1,194 @@
|
||||
# Copyright (C) 2009 Sun Microsystems, Inc
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; version 2 of the License.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
# Tests for PERFORMANCE_SCHEMA
|
||||
|
||||
--disable_warnings
|
||||
drop table if exists test.t1;
|
||||
--enable_warnings
|
||||
|
||||
## The result of show grants is not consistent across platforms ...
|
||||
## show grants;
|
||||
|
||||
## Not enforced yet: deny CREATE_ACL and DROP_ACL
|
||||
## Waiting to remove .FRM files first
|
||||
##
|
||||
## --error ER_DBACCESS_DENIED_ERROR
|
||||
## create table performance_schema.t1(a int);
|
||||
##
|
||||
## --error ER_DBACCESS_DENIED_ERROR
|
||||
## drop table performance_schema.t1;
|
||||
##
|
||||
## --error ER_DBACCESS_DENIED_ERROR
|
||||
## create table performance_schema.SETUP_INSTRUMENTS(a int);
|
||||
##
|
||||
## --error ER_DBACCESS_DENIED_ERROR
|
||||
## create table performance_schema.EVENTS_WAITS_CURRENT(a int);
|
||||
##
|
||||
## --error ER_DBACCESS_DENIED_ERROR
|
||||
## create table performance_schema.FILE_INSTANCES(a int);
|
||||
##
|
||||
## --error ER_DBACCESS_DENIED_ERROR
|
||||
## drop table performance_schema.SETUP_INSTRUMENTS;
|
||||
##
|
||||
## --error ER_DBACCESS_DENIED_ERROR
|
||||
## drop table performance_schema.EVENTS_WAITS_CURRENT;
|
||||
##
|
||||
## --error ER_DBACCESS_DENIED_ERROR
|
||||
## drop table performance_schema.FILE_INSTANCES;
|
||||
|
||||
--error ER_DBACCESS_DENIED_ERROR
|
||||
rename table performance_schema.SETUP_INSTRUMENTS to test.t1;
|
||||
|
||||
--error ER_DBACCESS_DENIED_ERROR
|
||||
rename table performance_schema.EVENTS_WAITS_CURRENT to test.t1;
|
||||
|
||||
--error ER_DBACCESS_DENIED_ERROR
|
||||
rename table performance_schema.FILE_INSTANCES to test.t1;
|
||||
|
||||
--error ER_DBACCESS_DENIED_ERROR
|
||||
rename table performance_schema.SETUP_INSTRUMENTS to performance_schema.t1;
|
||||
|
||||
--error ER_DBACCESS_DENIED_ERROR
|
||||
rename table performance_schema.EVENTS_WAITS_CURRENT to performance_schema.t1;
|
||||
|
||||
--error ER_DBACCESS_DENIED_ERROR
|
||||
rename table performance_schema.FILE_INSTANCES to performance_schema.t1;
|
||||
|
||||
--error ER_DBACCESS_DENIED_ERROR
|
||||
rename table performance_schema.SETUP_INSTRUMENTS
|
||||
to performance_schema.EVENTS_WAITS_CURRENT;
|
||||
|
||||
--error ER_DBACCESS_DENIED_ERROR
|
||||
rename table performance_schema.EVENTS_WAITS_CURRENT
|
||||
to performance_schema.SETUP_INSTRUMENTS;
|
||||
|
||||
--error ER_DBACCESS_DENIED_ERROR
|
||||
create procedure performance_schema.my_proc() begin end;
|
||||
|
||||
--error ER_DBACCESS_DENIED_ERROR
|
||||
create function performance_schema.my_func() returns int return 0;
|
||||
|
||||
--error ER_DBACCESS_DENIED_ERROR
|
||||
create event performance_schema.my_event on schedule every 15 minute
|
||||
do begin end;
|
||||
|
||||
--error ER_DBACCESS_DENIED_ERROR
|
||||
create trigger performance_schema.bi_setup_instruments
|
||||
before insert on performance_schema.SETUP_INSTRUMENTS
|
||||
for each row begin end;
|
||||
|
||||
--error ER_DBACCESS_DENIED_ERROR
|
||||
create trigger performance_schema.bi_events_waits_current
|
||||
before insert on performance_schema.EVENTS_WAITS_CURRENT
|
||||
for each row begin end;
|
||||
|
||||
--error ER_DBACCESS_DENIED_ERROR
|
||||
create trigger performance_schema.bi_file_instances
|
||||
before insert on performance_schema.FILE_INSTANCES
|
||||
for each row begin end;
|
||||
|
||||
--error ER_WRONG_PERFSCHEMA_USAGE
|
||||
create table test.t1(a int) engine=PERFORMANCE_SCHEMA;
|
||||
|
||||
--error ER_WRONG_PERFSCHEMA_USAGE
|
||||
create table test.t1 like performance_schema.SETUP_INSTRUMENTS;
|
||||
|
||||
--error ER_WRONG_PERFSCHEMA_USAGE
|
||||
create table test.t1 like performance_schema.EVENTS_WAITS_CURRENT;
|
||||
|
||||
--error ER_WRONG_PERFSCHEMA_USAGE
|
||||
create table test.t1 like performance_schema.FILE_INSTANCES;
|
||||
|
||||
--replace_result '\'setup_instruments' '\'SETUP_INSTRUMENTS'
|
||||
--error ER_TABLEACCESS_DENIED_ERROR
|
||||
insert into performance_schema.SETUP_INSTRUMENTS
|
||||
set name="foo";
|
||||
|
||||
--replace_result '\'events_waits_current' '\'EVENTS_WAITS_CURRENT'
|
||||
--error ER_TABLEACCESS_DENIED_ERROR
|
||||
insert into performance_schema.EVENTS_WAITS_CURRENT
|
||||
set name="foo";
|
||||
|
||||
--replace_result '\'file_instances' '\'FILE_INSTANCES'
|
||||
--error ER_TABLEACCESS_DENIED_ERROR
|
||||
insert into performance_schema.FILE_INSTANCES
|
||||
set name="foo";
|
||||
|
||||
--replace_result '\'setup_instruments' '\'SETUP_INSTRUMENTS'
|
||||
--error ER_TABLEACCESS_DENIED_ERROR
|
||||
delete from performance_schema.SETUP_INSTRUMENTS;
|
||||
|
||||
--replace_result '\'events_waits_current' '\'EVENTS_WAITS_CURRENT'
|
||||
--error ER_TABLEACCESS_DENIED_ERROR
|
||||
delete from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
|
||||
--replace_result '\'file_instances' '\'FILE_INSTANCES'
|
||||
--error ER_TABLEACCESS_DENIED_ERROR
|
||||
delete from performance_schema.FILE_INSTANCES;
|
||||
|
||||
lock table performance_schema.SETUP_INSTRUMENTS read;
|
||||
unlock tables;
|
||||
|
||||
lock table performance_schema.SETUP_INSTRUMENTS write;
|
||||
unlock tables;
|
||||
|
||||
--replace_result '\'events_waits_current' '\'EVENTS_WAITS_CURRENT'
|
||||
--error ER_TABLEACCESS_DENIED_ERROR
|
||||
lock table performance_schema.EVENTS_WAITS_CURRENT read;
|
||||
unlock tables;
|
||||
|
||||
--replace_result '\'events_waits_current' '\'EVENTS_WAITS_CURRENT'
|
||||
--error ER_TABLEACCESS_DENIED_ERROR
|
||||
lock table performance_schema.EVENTS_WAITS_CURRENT write;
|
||||
unlock tables;
|
||||
|
||||
--replace_result '\'file_instances' '\'FILE_INSTANCES'
|
||||
--error ER_TABLEACCESS_DENIED_ERROR
|
||||
lock table performance_schema.FILE_INSTANCES read;
|
||||
unlock tables;
|
||||
|
||||
--replace_result '\'file_instances' '\'FILE_INSTANCES'
|
||||
--error ER_TABLEACCESS_DENIED_ERROR
|
||||
lock table performance_schema.FILE_INSTANCES write;
|
||||
unlock tables;
|
||||
|
||||
--echo #
|
||||
--echo # WL#4818, NFS2: Can use grants to give normal user access
|
||||
--echo # to view data from _CURRENT and _HISTORY tables
|
||||
--echo #
|
||||
--echo # Should work as pfs_user_1 and pfs_user_2, but not as pfs_user_3.
|
||||
--echo # (Except for EVENTS_WAITS_CURRENT, which is granted.)
|
||||
|
||||
# Errors here will be caught by the diff afterwards
|
||||
--disable_abort_on_error
|
||||
|
||||
--replace_result '\'events_waits_history' '\'EVENTS_WAITS_HISTORY'
|
||||
SELECT "can select" FROM performance_schema.EVENTS_WAITS_HISTORY LIMIT 1;
|
||||
|
||||
--replace_result '\'events_waits_history_long' '\'EVENTS_WAITS_HISTORY_LONG'
|
||||
SELECT "can select" FROM performance_schema.EVENTS_WAITS_HISTORY_LONG LIMIT 1;
|
||||
|
||||
--replace_result '\'events_waits_current' '\'EVENTS_WAITS_CURRENT'
|
||||
SELECT "can select" FROM performance_schema.EVENTS_WAITS_CURRENT LIMIT 1;
|
||||
|
||||
--replace_result '\'events_waits_summary_by_instance' '\'EVENTS_WAITS_SUMMARY_BY_INSTANCE'
|
||||
SELECT "can select" FROM performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE LIMIT 1;
|
||||
|
||||
--replace_result '\'file_summary_by_instance' '\'FILE_SUMMARY_BY_INSTANCE'
|
||||
SELECT "can select" FROM performance_schema.FILE_SUMMARY_BY_INSTANCE LIMIT 1;
|
||||
|
||||
--enable_abort_on_error
|
||||
|
54
mysql-test/suite/perfschema/include/setup_helper.inc
Normal file
54
mysql-test/suite/perfschema/include/setup_helper.inc
Normal file
@ -0,0 +1,54 @@
|
||||
# Copyright (C) 2009 Sun Microsystems, Inc
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; version 2 of the License.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
# Tests for PERFORMANCE_SCHEMA
|
||||
|
||||
let $MYSQLD_DATADIR= `select @@datadir`;
|
||||
let $MYSQLD_TMPDIR= `select @@tmpdir`;
|
||||
|
||||
--disable_query_log
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='NO';
|
||||
update performance_schema.SETUP_CONSUMERS set enabled='YES';
|
||||
--enable_query_log
|
||||
|
||||
connect (con1, localhost, root, , );
|
||||
|
||||
let $con1_THREAD_ID=`select thread_id from performance_schema.PROCESSLIST
|
||||
where ID in (select connection_id())`;
|
||||
|
||||
connect (con2, localhost, root, , );
|
||||
|
||||
let $con2_THREAD_ID=`select thread_id from performance_schema.PROCESSLIST
|
||||
where ID in (select connection_id())`;
|
||||
|
||||
connect (con3, localhost, root, , );
|
||||
|
||||
let $con3_THREAD_ID=`select thread_id from performance_schema.PROCESSLIST
|
||||
where ID in (select connection_id())`;
|
||||
|
||||
connection default;
|
||||
|
||||
--disable_query_log
|
||||
prepare stmt_dump_events from
|
||||
"select event_name,
|
||||
left(source, locate(\":\", source)) as short_source,
|
||||
operation, number_of_bytes
|
||||
from performance_schema.EVENTS_WAITS_HISTORY_LONG
|
||||
where thread_id=? order by event_id;";
|
||||
|
||||
prepare stmt_dump_thread from
|
||||
"select name from performance_schema.PROCESSLIST where thread_id=? ;";
|
||||
--enable_query_log
|
||||
|
62
mysql-test/suite/perfschema/include/start_server_common.inc
Normal file
62
mysql-test/suite/perfschema/include/start_server_common.inc
Normal file
@ -0,0 +1,62 @@
|
||||
# Copyright (C) 2008-2009 Sun Microsystems, Inc
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; version 2 of the License.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
# Tests for PERFORMANCE_SCHEMA
|
||||
|
||||
show databases;
|
||||
|
||||
select count(*) from performance_schema.PERFORMANCE_TIMERS;
|
||||
select count(*) from performance_schema.SETUP_CONSUMERS;
|
||||
select count(*) > 0 from performance_schema.SETUP_INSTRUMENTS;
|
||||
select count(*) from performance_schema.SETUP_TIMERS;
|
||||
|
||||
# Make sure we don't crash, no matter what the starting parameters are
|
||||
|
||||
--disable_result_log
|
||||
select * from performance_schema.COND_INSTANCES;
|
||||
select * from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
select * from performance_schema.EVENTS_WAITS_HISTORY;
|
||||
select * from performance_schema.EVENTS_WAITS_HISTORY_LONG;
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME;
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE;
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME;
|
||||
select * from performance_schema.FILE_INSTANCES;
|
||||
select * from performance_schema.FILE_SUMMARY_BY_EVENT_NAME;
|
||||
select * from performance_schema.FILE_SUMMARY_BY_INSTANCE;
|
||||
select * from performance_schema.MUTEX_INSTANCES;
|
||||
select * from performance_schema.PERFORMANCE_TIMERS;
|
||||
select * from performance_schema.PROCESSLIST;
|
||||
select * from performance_schema.RWLOCK_INSTANCES;
|
||||
select * from performance_schema.SETUP_CONSUMERS;
|
||||
select * from performance_schema.SETUP_INSTRUMENTS;
|
||||
select * from performance_schema.SETUP_OBJECTS;
|
||||
select * from performance_schema.SETUP_TIMERS;
|
||||
--enable_result_log
|
||||
|
||||
# This has a stable output, printing the result:
|
||||
show variables like "performance_schema%";
|
||||
|
||||
# This has an unrepeatable output, it does depends too much on
|
||||
# - the platform hardware (sizeof structures, padding)
|
||||
# - the compiler used (sizeof(enum))
|
||||
# - the platform header files (sizeof(size_t))
|
||||
# - the code path in the server (what gets executed and instrumented
|
||||
# at runtime)
|
||||
|
||||
--disable_result_log
|
||||
show engine PERFORMANCE_SCHEMA status;
|
||||
show status like "performance_schema%";
|
||||
--enable_result_log
|
||||
|
101
mysql-test/suite/perfschema/r/aggregate.result
Normal file
101
mysql-test/suite/perfschema/r/aggregate.result
Normal file
@ -0,0 +1,101 @@
|
||||
"General cleanup"
|
||||
drop table if exists t1;
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled = 'NO';
|
||||
update performance_schema.SETUP_CONSUMERS set enabled = 'NO';
|
||||
truncate table performance_schema.FILE_SUMMARY_BY_EVENT_NAME;
|
||||
truncate table performance_schema.FILE_SUMMARY_BY_INSTANCE;
|
||||
truncate table performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME;
|
||||
truncate table performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE;
|
||||
truncate table performance_schema.EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME;
|
||||
update performance_schema.SETUP_CONSUMERS set enabled = 'YES';
|
||||
update performance_schema.SETUP_INSTRUMENTS
|
||||
set enabled = 'YES', timed = 'YES';
|
||||
create table t1 (
|
||||
id INT PRIMARY KEY,
|
||||
b CHAR(100) DEFAULT 'initial value')
|
||||
ENGINE=MyISAM;
|
||||
insert into t1 (id) values (1), (2), (3), (4), (5), (6), (7), (8);
|
||||
update performance_schema.SETUP_INSTRUMENTS SET enabled = 'NO';
|
||||
set @dump_all=FALSE;
|
||||
"Verifying file aggregate consistency"
|
||||
SELECT EVENT_NAME, e.COUNT_READ, SUM(i.COUNT_READ)
|
||||
FROM performance_schema.FILE_SUMMARY_BY_EVENT_NAME AS e
|
||||
JOIN performance_schema.FILE_SUMMARY_BY_INSTANCE AS i USING (EVENT_NAME)
|
||||
GROUP BY EVENT_NAME
|
||||
HAVING (e.COUNT_READ <> SUM(i.COUNT_READ))
|
||||
OR @dump_all;
|
||||
EVENT_NAME COUNT_READ SUM(i.COUNT_READ)
|
||||
SELECT EVENT_NAME, e.COUNT_WRITE, SUM(i.COUNT_WRITE)
|
||||
FROM performance_schema.FILE_SUMMARY_BY_EVENT_NAME AS e
|
||||
JOIN performance_schema.FILE_SUMMARY_BY_INSTANCE AS i USING (EVENT_NAME)
|
||||
GROUP BY EVENT_NAME
|
||||
HAVING (e.COUNT_WRITE <> SUM(i.COUNT_WRITE))
|
||||
OR @dump_all;
|
||||
EVENT_NAME COUNT_WRITE SUM(i.COUNT_WRITE)
|
||||
SELECT EVENT_NAME, e.SUM_NUMBER_OF_BYTES_READ, SUM(i.SUM_NUMBER_OF_BYTES_READ)
|
||||
FROM performance_schema.FILE_SUMMARY_BY_EVENT_NAME AS e
|
||||
JOIN performance_schema.FILE_SUMMARY_BY_INSTANCE AS i USING (EVENT_NAME)
|
||||
GROUP BY EVENT_NAME
|
||||
HAVING (e.SUM_NUMBER_OF_BYTES_READ <> SUM(i.SUM_NUMBER_OF_BYTES_READ))
|
||||
OR @dump_all;
|
||||
EVENT_NAME SUM_NUMBER_OF_BYTES_READ SUM(i.SUM_NUMBER_OF_BYTES_READ)
|
||||
SELECT EVENT_NAME, e.SUM_NUMBER_OF_BYTES_WRITE, SUM(i.SUM_NUMBER_OF_BYTES_WRITE)
|
||||
FROM performance_schema.FILE_SUMMARY_BY_EVENT_NAME AS e
|
||||
JOIN performance_schema.FILE_SUMMARY_BY_INSTANCE AS i USING (EVENT_NAME)
|
||||
GROUP BY EVENT_NAME
|
||||
HAVING (e.SUM_NUMBER_OF_BYTES_WRITE <> SUM(i.SUM_NUMBER_OF_BYTES_WRITE))
|
||||
OR @dump_all;
|
||||
EVENT_NAME SUM_NUMBER_OF_BYTES_WRITE SUM(i.SUM_NUMBER_OF_BYTES_WRITE)
|
||||
"Verifying waits aggregate consistency (instance)"
|
||||
SELECT EVENT_NAME, e.SUM_TIMER_WAIT, SUM(i.SUM_TIMER_WAIT)
|
||||
FROM performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME AS e
|
||||
JOIN performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE AS i USING (EVENT_NAME)
|
||||
GROUP BY EVENT_NAME
|
||||
HAVING (e.SUM_TIMER_WAIT <> SUM(i.SUM_TIMER_WAIT))
|
||||
OR @dump_all;
|
||||
EVENT_NAME SUM_TIMER_WAIT SUM(i.SUM_TIMER_WAIT)
|
||||
SELECT EVENT_NAME, e.MIN_TIMER_WAIT, MIN(i.MIN_TIMER_WAIT)
|
||||
FROM performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME AS e
|
||||
JOIN performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE AS i USING (EVENT_NAME)
|
||||
GROUP BY EVENT_NAME
|
||||
HAVING (e.MIN_TIMER_WAIT <> MIN(i.MIN_TIMER_WAIT))
|
||||
AND (MIN(i.MIN_TIMER_WAIT) != 0)
|
||||
OR @dump_all;
|
||||
EVENT_NAME MIN_TIMER_WAIT MIN(i.MIN_TIMER_WAIT)
|
||||
SELECT EVENT_NAME, e.MAX_TIMER_WAIT, MAX(i.MAX_TIMER_WAIT)
|
||||
FROM performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME AS e
|
||||
JOIN performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE AS i USING (EVENT_NAME)
|
||||
GROUP BY EVENT_NAME
|
||||
HAVING (e.MAX_TIMER_WAIT <> MAX(i.MAX_TIMER_WAIT))
|
||||
OR @dump_all;
|
||||
EVENT_NAME MAX_TIMER_WAIT MAX(i.MAX_TIMER_WAIT)
|
||||
"Verifying waits aggregate consistency (thread)"
|
||||
SELECT EVENT_NAME, e.SUM_TIMER_WAIT, SUM(t.SUM_TIMER_WAIT)
|
||||
FROM performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME AS e
|
||||
JOIN performance_schema.EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME AS t
|
||||
USING (EVENT_NAME)
|
||||
GROUP BY EVENT_NAME
|
||||
HAVING (e.SUM_TIMER_WAIT <> SUM(t.SUM_TIMER_WAIT))
|
||||
OR @dump_all;
|
||||
EVENT_NAME SUM_TIMER_WAIT SUM(t.SUM_TIMER_WAIT)
|
||||
SELECT EVENT_NAME, e.MIN_TIMER_WAIT, MIN(t.MIN_TIMER_WAIT)
|
||||
FROM performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME AS e
|
||||
JOIN performance_schema.EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME AS t
|
||||
USING (EVENT_NAME)
|
||||
GROUP BY EVENT_NAME
|
||||
HAVING (e.MIN_TIMER_WAIT <> MIN(t.MIN_TIMER_WAIT))
|
||||
AND (MIN(t.MIN_TIMER_WAIT) != 0)
|
||||
OR @dump_all;
|
||||
EVENT_NAME MIN_TIMER_WAIT MIN(t.MIN_TIMER_WAIT)
|
||||
SELECT EVENT_NAME, e.MAX_TIMER_WAIT, MAX(t.MAX_TIMER_WAIT)
|
||||
FROM performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME AS e
|
||||
JOIN performance_schema.EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME AS t
|
||||
USING (EVENT_NAME)
|
||||
GROUP BY EVENT_NAME
|
||||
HAVING (e.MAX_TIMER_WAIT <> MAX(t.MAX_TIMER_WAIT))
|
||||
OR @dump_all;
|
||||
EVENT_NAME MAX_TIMER_WAIT MAX(t.MAX_TIMER_WAIT)
|
||||
update performance_schema.SETUP_CONSUMERS set enabled = 'YES';
|
||||
update performance_schema.SETUP_INSTRUMENTS
|
||||
set enabled = 'YES', timed = 'YES';
|
||||
drop table test.t1;
|
2
mysql-test/suite/perfschema/r/bad_option_1.result
Normal file
2
mysql-test/suite/perfschema/r/bad_option_1.result
Normal file
@ -0,0 +1,2 @@
|
||||
Found: unknown variable 'performance-schema-enabled=maybe'
|
||||
Found: Aborting
|
1
mysql-test/suite/perfschema/r/bad_option_2.result
Normal file
1
mysql-test/suite/perfschema/r/bad_option_2.result
Normal file
@ -0,0 +1 @@
|
||||
Found: ambiguous option '--performance-schema-max_=12'
|
49
mysql-test/suite/perfschema/r/binlog_mix.result
Normal file
49
mysql-test/suite/perfschema/r/binlog_mix.result
Normal file
@ -0,0 +1,49 @@
|
||||
set binlog_format=mixed;
|
||||
RESET MASTER;
|
||||
select count(*) > 0 from performance_schema.SETUP_INSTRUMENTS;
|
||||
count(*) > 0
|
||||
1
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='NO'
|
||||
where name like "wait/synch/rwlock/%";
|
||||
select count(*) > 0 from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
count(*) > 0
|
||||
1
|
||||
drop table if exists test.t1;
|
||||
drop table if exists test.t2;
|
||||
create table test.t1 (thread_id integer);
|
||||
create table test.t2 (name varchar(128));
|
||||
insert into test.t1
|
||||
select thread_id from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
insert into test.t2
|
||||
select name from performance_schema.SETUP_INSTRUMENTS
|
||||
where name like "wait/synch/rwlock/%";
|
||||
drop table test.t1;
|
||||
drop table test.t2;
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='YES'
|
||||
where name like "wait/synch/rwlock/%";
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (performance_schema.SETUP_INSTRUMENTS)
|
||||
master-bin.000001 # Update_rows # # table_id: #
|
||||
master-bin.000001 # Update_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
master-bin.000001 # Query # # use `test`; drop table if exists test.t1
|
||||
master-bin.000001 # Query # # use `test`; drop table if exists test.t2
|
||||
master-bin.000001 # Query # # use `test`; create table test.t1 (thread_id integer)
|
||||
master-bin.000001 # Query # # use `test`; create table test.t2 (name varchar(128))
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t2)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
master-bin.000001 # Query # # use `test`; drop table test.t1
|
||||
master-bin.000001 # Query # # use `test`; drop table test.t2
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (performance_schema.SETUP_INSTRUMENTS)
|
||||
master-bin.000001 # Update_rows # # table_id: #
|
||||
master-bin.000001 # Update_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
49
mysql-test/suite/perfschema/r/binlog_row.result
Normal file
49
mysql-test/suite/perfschema/r/binlog_row.result
Normal file
@ -0,0 +1,49 @@
|
||||
set binlog_format=row;
|
||||
RESET MASTER;
|
||||
select count(*) > 0 from performance_schema.SETUP_INSTRUMENTS;
|
||||
count(*) > 0
|
||||
1
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='NO'
|
||||
where name like "wait/synch/rwlock/%";
|
||||
select count(*) > 0 from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
count(*) > 0
|
||||
1
|
||||
drop table if exists test.t1;
|
||||
drop table if exists test.t2;
|
||||
create table test.t1 (thread_id integer);
|
||||
create table test.t2 (name varchar(128));
|
||||
insert into test.t1
|
||||
select thread_id from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
insert into test.t2
|
||||
select name from performance_schema.SETUP_INSTRUMENTS
|
||||
where name like "wait/synch/rwlock/%";
|
||||
drop table test.t1;
|
||||
drop table test.t2;
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='YES'
|
||||
where name like "wait/synch/rwlock/%";
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (performance_schema.SETUP_INSTRUMENTS)
|
||||
master-bin.000001 # Update_rows # # table_id: #
|
||||
master-bin.000001 # Update_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
master-bin.000001 # Query # # use `test`; drop table if exists test.t1
|
||||
master-bin.000001 # Query # # use `test`; drop table if exists test.t2
|
||||
master-bin.000001 # Query # # use `test`; create table test.t1 (thread_id integer)
|
||||
master-bin.000001 # Query # # use `test`; create table test.t2 (name varchar(128))
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t2)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
master-bin.000001 # Query # # use `test`; drop table test.t1
|
||||
master-bin.000001 # Query # # use `test`; drop table test.t2
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (performance_schema.SETUP_INSTRUMENTS)
|
||||
master-bin.000001 # Update_rows # # table_id: #
|
||||
master-bin.000001 # Update_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
48
mysql-test/suite/perfschema/r/binlog_stmt.result
Normal file
48
mysql-test/suite/perfschema/r/binlog_stmt.result
Normal file
@ -0,0 +1,48 @@
|
||||
set binlog_format=statement;
|
||||
RESET MASTER;
|
||||
select count(*) > 0 from performance_schema.SETUP_INSTRUMENTS;
|
||||
count(*) > 0
|
||||
1
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='NO'
|
||||
where name like "wait/synch/rwlock/%";
|
||||
Warnings:
|
||||
Note 1592 Statement may not be safe to log in statement format.
|
||||
select count(*) > 0 from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
count(*) > 0
|
||||
1
|
||||
drop table if exists test.t1;
|
||||
drop table if exists test.t2;
|
||||
create table test.t1 (thread_id integer);
|
||||
create table test.t2 (name varchar(128));
|
||||
insert into test.t1
|
||||
select thread_id from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
Warnings:
|
||||
Note 1592 Statement may not be safe to log in statement format.
|
||||
insert into test.t2
|
||||
select name from performance_schema.SETUP_INSTRUMENTS
|
||||
where name like "wait/synch/rwlock/%";
|
||||
Warnings:
|
||||
Note 1592 Statement may not be safe to log in statement format.
|
||||
drop table test.t1;
|
||||
drop table test.t2;
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='YES'
|
||||
where name like "wait/synch/rwlock/%";
|
||||
Warnings:
|
||||
Note 1592 Statement may not be safe to log in statement format.
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # use `test`; update performance_schema.SETUP_INSTRUMENTS set enabled='NO'
|
||||
where name like "wait/synch/rwlock/%"
|
||||
master-bin.000001 # Query # # use `test`; drop table if exists test.t1
|
||||
master-bin.000001 # Query # # use `test`; drop table if exists test.t2
|
||||
master-bin.000001 # Query # # use `test`; create table test.t1 (thread_id integer)
|
||||
master-bin.000001 # Query # # use `test`; create table test.t2 (name varchar(128))
|
||||
master-bin.000001 # Query # # use `test`; insert into test.t1
|
||||
select thread_id from performance_schema.EVENTS_WAITS_CURRENT
|
||||
master-bin.000001 # Query # # use `test`; insert into test.t2
|
||||
select name from performance_schema.SETUP_INSTRUMENTS
|
||||
where name like "wait/synch/rwlock/%"
|
||||
master-bin.000001 # Query # # use `test`; drop table test.t1
|
||||
master-bin.000001 # Query # # use `test`; drop table test.t2
|
||||
master-bin.000001 # Query # # use `test`; update performance_schema.SETUP_INSTRUMENTS set enabled='YES'
|
||||
where name like "wait/synch/rwlock/%"
|
6
mysql-test/suite/perfschema/r/cnf_option.result
Normal file
6
mysql-test/suite/perfschema/r/cnf_option.result
Normal file
@ -0,0 +1,6 @@
|
||||
show variables like 'performance_schema_max_thread_classes';
|
||||
Variable_name Value
|
||||
performance_schema_max_thread_classes 12
|
||||
show variables like 'performance_schema_max_thread_instances';
|
||||
Variable_name Value
|
||||
performance_schema_max_thread_instances 318
|
27
mysql-test/suite/perfschema/r/column_privilege.result
Normal file
27
mysql-test/suite/perfschema/r/column_privilege.result
Normal file
@ -0,0 +1,27 @@
|
||||
show grants;
|
||||
Grants for root@localhost
|
||||
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
|
||||
grant usage on *.* to 'pfs_user_5'@localhost with GRANT OPTION;
|
||||
grant SELECT(thread_id, event_id) on performance_schema.EVENTS_WAITS_CURRENT
|
||||
to 'pfs_user_5'@localhost;
|
||||
grant UPDATE(enabled) on performance_schema.SETUP_INSTRUMENTS
|
||||
to 'pfs_user_5'@localhost;
|
||||
flush privileges;
|
||||
select thread_id from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
select thread_id, event_id from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='YES';
|
||||
select event_name from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
ERROR 42000: SELECT command denied to user 'pfs_user_5'@'localhost' for column 'event_name' in table 'EVENTS_WAITS_CURRENT'
|
||||
select thread_id, event_id, event_name
|
||||
from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
ERROR 42000: SELECT command denied to user 'pfs_user_5'@'localhost' for column 'event_name' in table 'EVENTS_WAITS_CURRENT'
|
||||
update performance_schema.SETUP_INSTRUMENTS set name='illegal';
|
||||
ERROR 42000: UPDATE command denied to user 'pfs_user_5'@'localhost' for column 'name' in table 'SETUP_INSTRUMENTS'
|
||||
update performance_schema.SETUP_INSTRUMENTS set timed='NO';
|
||||
ERROR 42000: UPDATE command denied to user 'pfs_user_5'@'localhost' for column 'timed' in table 'SETUP_INSTRUMENTS'
|
||||
REVOKE ALL PRIVILEGES, GRANT OPTION FROM 'pfs_user_5'@localhost;
|
||||
DROP USER 'pfs_user_5'@localhost;
|
||||
flush privileges;
|
||||
UPDATE performance_schema.SETUP_INSTRUMENTS SET enabled = 'YES', timed = 'YES';
|
||||
UPDATE performance_schema.SETUP_CONSUMERS SET enabled = 'YES';
|
||||
UPDATE performance_schema.SETUP_TIMERS SET timer_name = 'CYCLE';
|
8
mysql-test/suite/perfschema/r/ddl_cond_instances.result
Normal file
8
mysql-test/suite/perfschema/r/ddl_cond_instances.result
Normal file
@ -0,0 +1,8 @@
|
||||
alter table performance_schema.COND_INSTANCES add column foo integer;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
truncate table performance_schema.COND_INSTANCES;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
ALTER TABLE performance_schema.COND_INSTANCES ADD INDEX test_index(NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
CREATE UNIQUE INDEX test_index ON performance_schema.COND_INSTANCES(NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
@ -0,0 +1,7 @@
|
||||
alter table performance_schema.EVENTS_WAITS_CURRENT add column foo integer;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
truncate table performance_schema.EVENTS_WAITS_CURRENT;
|
||||
ALTER TABLE performance_schema.EVENTS_WAITS_CURRENT ADD INDEX test_index(EVENT_ID);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
CREATE UNIQUE INDEX test_index ON performance_schema.EVENTS_WAITS_CURRENT(EVENT_ID);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
@ -0,0 +1,7 @@
|
||||
alter table performance_schema.EVENTS_WAITS_HISTORY add column foo integer;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
truncate table performance_schema.EVENTS_WAITS_HISTORY;
|
||||
ALTER TABLE performance_schema.EVENTS_WAITS_HISTORY ADD INDEX test_index(EVENT_ID);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
CREATE UNIQUE INDEX test_index ON performance_schema.EVENTS_WAITS_HISTORY(EVENT_ID);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
@ -0,0 +1,7 @@
|
||||
alter table performance_schema.EVENTS_WAITS_HISTORY_LONG add column foo integer;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
truncate table performance_schema.EVENTS_WAITS_HISTORY_LONG;
|
||||
ALTER TABLE performance_schema.EVENTS_WAITS_HISTORY_LONG ADD INDEX test_index(EVENT_ID);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
CREATE UNIQUE INDEX test_index ON performance_schema.EVENTS_WAITS_HISTORY_LONG(EVENT_ID);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
@ -0,0 +1,7 @@
|
||||
alter table performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME add column foo integer;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
truncate table performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME;
|
||||
ALTER TABLE performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME ADD INDEX test_index(EVENT_NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
CREATE UNIQUE INDEX test_index ON performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME(EVENT_NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
7
mysql-test/suite/perfschema/r/ddl_ews_by_instance.result
Normal file
7
mysql-test/suite/perfschema/r/ddl_ews_by_instance.result
Normal file
@ -0,0 +1,7 @@
|
||||
alter table performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE add column foo integer;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
truncate table performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE;
|
||||
ALTER TABLE performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE ADD INDEX test_index(EVENT_NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
CREATE UNIQUE INDEX test_index ON performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE(EVENT_NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
@ -0,0 +1,9 @@
|
||||
alter table performance_schema.EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME
|
||||
add column foo integer;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
truncate table performance_schema.EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME;
|
||||
ALTER TABLE performance_schema.EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME ADD INDEX test_index(THREAD_ID);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
CREATE UNIQUE INDEX test_index
|
||||
ON performance_schema.EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME(THREAD_ID);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
8
mysql-test/suite/perfschema/r/ddl_file_instances.result
Normal file
8
mysql-test/suite/perfschema/r/ddl_file_instances.result
Normal file
@ -0,0 +1,8 @@
|
||||
alter table performance_schema.FILE_INSTANCES add column foo integer;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
truncate table performance_schema.FILE_INSTANCES;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
ALTER TABLE performance_schema.FILE_INSTANCES ADD INDEX test_index(FILE_NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
CREATE UNIQUE INDEX test_index ON performance_schema.FILE_INSTANCES(FILE_NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
@ -0,0 +1,7 @@
|
||||
alter table performance_schema.FILE_SUMMARY_BY_EVENT_NAME add column foo integer;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
truncate table performance_schema.FILE_SUMMARY_BY_EVENT_NAME;
|
||||
ALTER TABLE performance_schema.FILE_SUMMARY_BY_EVENT_NAME ADD INDEX test_index(NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
CREATE UNIQUE INDEX test_index ON performance_schema.FILE_SUMMARY_BY_EVENT_NAME(NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
7
mysql-test/suite/perfschema/r/ddl_fs_by_instance.result
Normal file
7
mysql-test/suite/perfschema/r/ddl_fs_by_instance.result
Normal file
@ -0,0 +1,7 @@
|
||||
alter table performance_schema.FILE_SUMMARY_BY_INSTANCE add column foo integer;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
truncate table performance_schema.FILE_SUMMARY_BY_INSTANCE;
|
||||
ALTER TABLE performance_schema.FILE_SUMMARY_BY_INSTANCE ADD INDEX test_index(NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
CREATE UNIQUE INDEX test_index ON performance_schema.FILE_SUMMARY_BY_INSTANCE(NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
8
mysql-test/suite/perfschema/r/ddl_mutex_instances.result
Normal file
8
mysql-test/suite/perfschema/r/ddl_mutex_instances.result
Normal file
@ -0,0 +1,8 @@
|
||||
alter table performance_schema.MUTEX_INSTANCES add column foo integer;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
truncate table performance_schema.MUTEX_INSTANCES;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
ALTER TABLE performance_schema.MUTEX_INSTANCES ADD INDEX test_index(NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
CREATE UNIQUE INDEX test_index ON performance_schema.MUTEX_INSTANCES(NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
@ -0,0 +1,8 @@
|
||||
alter table performance_schema.PERFORMANCE_TIMERS add column foo integer;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
truncate table performance_schema.PERFORMANCE_TIMERS;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
ALTER TABLE performance_schema.PERFORMANCE_TIMERS ADD INDEX test_index(TIMER_NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
CREATE UNIQUE INDEX test_index ON performance_schema.PERFORMANCE_TIMERS(TIMER_NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
8
mysql-test/suite/perfschema/r/ddl_processlist.result
Normal file
8
mysql-test/suite/perfschema/r/ddl_processlist.result
Normal file
@ -0,0 +1,8 @@
|
||||
alter table performance_schema.PROCESSLIST add column foo integer;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
truncate table performance_schema.PROCESSLIST;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
ALTER TABLE performance_schema.PROCESSLIST ADD INDEX test_index(ID);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
CREATE UNIQUE INDEX test_index ON performance_schema.PROCESSLIST(ID);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
@ -0,0 +1,8 @@
|
||||
alter table performance_schema.RWLOCK_INSTANCES add column foo integer;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
truncate table performance_schema.RWLOCK_INSTANCES;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
ALTER TABLE performance_schema.RWLOCK_INSTANCES ADD INDEX test_index(NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
CREATE UNIQUE INDEX test_index ON performance_schema.RWLOCK_INSTANCES(NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
8
mysql-test/suite/perfschema/r/ddl_setup_consumers.result
Normal file
8
mysql-test/suite/perfschema/r/ddl_setup_consumers.result
Normal file
@ -0,0 +1,8 @@
|
||||
alter table performance_schema.SETUP_CONSUMERS add column foo integer;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
truncate table performance_schema.SETUP_CONSUMERS;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
ALTER TABLE performance_schema.SETUP_CONSUMERS ADD INDEX test_index(NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
CREATE UNIQUE INDEX test_index ON performance_schema.SETUP_CONSUMERS(NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
@ -0,0 +1,8 @@
|
||||
alter table performance_schema.SETUP_INSTRUMENTS add column foo integer;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
truncate table performance_schema.SETUP_INSTRUMENTS;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
ALTER TABLE performance_schema.SETUP_INSTRUMENTS ADD INDEX test_index(NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
CREATE UNIQUE INDEX test_index ON performance_schema.SETUP_INSTRUMENTS(NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
7
mysql-test/suite/perfschema/r/ddl_setup_objects.result
Normal file
7
mysql-test/suite/perfschema/r/ddl_setup_objects.result
Normal file
@ -0,0 +1,7 @@
|
||||
alter table performance_schema.SETUP_OBJECTS add column foo integer;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
truncate table performance_schema.SETUP_OBJECTS;
|
||||
ALTER TABLE performance_schema.SETUP_OBJECTS ADD INDEX test_index(OBJECT_NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
CREATE UNIQUE INDEX test_index ON performance_schema.SETUP_OBJECTS(OBJECT_NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
8
mysql-test/suite/perfschema/r/ddl_setup_timers.result
Normal file
8
mysql-test/suite/perfschema/r/ddl_setup_timers.result
Normal file
@ -0,0 +1,8 @@
|
||||
alter table performance_schema.SETUP_TIMERS add column foo integer;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
truncate table performance_schema.SETUP_TIMERS;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
ALTER TABLE performance_schema.SETUP_TIMERS ADD INDEX test_index(NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
CREATE UNIQUE INDEX test_index ON performance_schema.SETUP_TIMERS(NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
23
mysql-test/suite/perfschema/r/dml_cond_instances.result
Normal file
23
mysql-test/suite/perfschema/r/dml_cond_instances.result
Normal file
@ -0,0 +1,23 @@
|
||||
select * from performance_schema.COND_INSTANCES limit 1;
|
||||
NAME OBJECT_INSTANCE_BEGIN
|
||||
# #
|
||||
select * from performance_schema.COND_INSTANCES
|
||||
where name='FOO';
|
||||
NAME OBJECT_INSTANCE_BEGIN
|
||||
insert into performance_schema.COND_INSTANCES
|
||||
set name='FOO', object_instance_begin=12;
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'COND_INSTANCES'
|
||||
update performance_schema.COND_INSTANCES
|
||||
set name='FOO';
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'COND_INSTANCES'
|
||||
delete from performance_schema.COND_INSTANCES
|
||||
where name like "wait/%";
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'COND_INSTANCES'
|
||||
delete from performance_schema.COND_INSTANCES;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'COND_INSTANCES'
|
||||
LOCK TABLES performance_schema.COND_INSTANCES READ;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'COND_INSTANCES'
|
||||
UNLOCK TABLES;
|
||||
LOCK TABLES performance_schema.COND_INSTANCES WRITE;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'COND_INSTANCES'
|
||||
UNLOCK TABLES;
|
@ -0,0 +1,28 @@
|
||||
select * from performance_schema.EVENTS_WAITS_CURRENT
|
||||
where event_name like 'Wait/Synch/%' limit 1;
|
||||
THREAD_ID EVENT_ID EVENT_NAME SOURCE TIMER_START TIMER_END TIMER_WAIT SPINS OBJECT_SCHEMA OBJECT_NAME OBJECT_TYPE OBJECT_INSTANCE_BEGIN NESTING_EVENT_ID OPERATION NUMBER_OF_BYTES FLAGS
|
||||
# # # # # # # # NULL NULL NULL # NULL # NULL 0
|
||||
select * from performance_schema.EVENTS_WAITS_CURRENT
|
||||
where event_name='FOO';
|
||||
THREAD_ID EVENT_ID EVENT_NAME SOURCE TIMER_START TIMER_END TIMER_WAIT SPINS OBJECT_SCHEMA OBJECT_NAME OBJECT_TYPE OBJECT_INSTANCE_BEGIN NESTING_EVENT_ID OPERATION NUMBER_OF_BYTES FLAGS
|
||||
insert into performance_schema.EVENTS_WAITS_CURRENT
|
||||
set thread_id='1', event_id=1,
|
||||
event_name='FOO', timer_start=1, timer_end=2, timer_wait=3;
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
update performance_schema.EVENTS_WAITS_CURRENT
|
||||
set timer_start=12;
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
update performance_schema.EVENTS_WAITS_CURRENT
|
||||
set timer_start=12 where thread_id=0;
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
delete from performance_schema.EVENTS_WAITS_CURRENT
|
||||
where thread_id=1;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
delete from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
LOCK TABLES performance_schema.EVENTS_WAITS_CURRENT READ;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
UNLOCK TABLES;
|
||||
LOCK TABLES performance_schema.EVENTS_WAITS_CURRENT WRITE;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
UNLOCK TABLES;
|
@ -0,0 +1,36 @@
|
||||
select * from performance_schema.EVENTS_WAITS_HISTORY
|
||||
where event_name like 'Wait/Synch/%' limit 1;
|
||||
THREAD_ID EVENT_ID EVENT_NAME SOURCE TIMER_START TIMER_END TIMER_WAIT SPINS OBJECT_SCHEMA OBJECT_NAME OBJECT_TYPE OBJECT_INSTANCE_BEGIN NESTING_EVENT_ID OPERATION NUMBER_OF_BYTES FLAGS
|
||||
# # # # # # # # NULL NULL NULL # NULL # NULL 0
|
||||
select * from performance_schema.EVENTS_WAITS_HISTORY
|
||||
where event_name='FOO';
|
||||
THREAD_ID EVENT_ID EVENT_NAME SOURCE TIMER_START TIMER_END TIMER_WAIT SPINS OBJECT_SCHEMA OBJECT_NAME OBJECT_TYPE OBJECT_INSTANCE_BEGIN NESTING_EVENT_ID OPERATION NUMBER_OF_BYTES FLAGS
|
||||
select * from performance_schema.EVENTS_WAITS_HISTORY
|
||||
where event_name like 'Wait/Synch/%' order by timer_wait limit 1;
|
||||
THREAD_ID EVENT_ID EVENT_NAME SOURCE TIMER_START TIMER_END TIMER_WAIT SPINS OBJECT_SCHEMA OBJECT_NAME OBJECT_TYPE OBJECT_INSTANCE_BEGIN NESTING_EVENT_ID OPERATION NUMBER_OF_BYTES FLAGS
|
||||
# # # # # # # # NULL NULL NULL # NULL # NULL 0
|
||||
select * from performance_schema.EVENTS_WAITS_HISTORY
|
||||
where event_name like 'Wait/Synch/%' order by timer_wait desc limit 1;
|
||||
THREAD_ID EVENT_ID EVENT_NAME SOURCE TIMER_START TIMER_END TIMER_WAIT SPINS OBJECT_SCHEMA OBJECT_NAME OBJECT_TYPE OBJECT_INSTANCE_BEGIN NESTING_EVENT_ID OPERATION NUMBER_OF_BYTES FLAGS
|
||||
# # # # # # # # NULL NULL NULL # NULL # NULL 0
|
||||
insert into performance_schema.EVENTS_WAITS_HISTORY
|
||||
set thread_id='1', event_id=1,
|
||||
event_name='FOO', timer_start=1, timer_end=2, timer_wait=3;
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_HISTORY'
|
||||
update performance_schema.EVENTS_WAITS_HISTORY
|
||||
set timer_start=12;
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_HISTORY'
|
||||
update performance_schema.EVENTS_WAITS_HISTORY
|
||||
set timer_start=12 where thread_id=0;
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_HISTORY'
|
||||
delete from performance_schema.EVENTS_WAITS_HISTORY
|
||||
where thread_id=1;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_HISTORY'
|
||||
delete from performance_schema.EVENTS_WAITS_HISTORY;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_HISTORY'
|
||||
LOCK TABLES performance_schema.EVENTS_WAITS_HISTORY READ;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_HISTORY'
|
||||
UNLOCK TABLES;
|
||||
LOCK TABLES performance_schema.EVENTS_WAITS_HISTORY WRITE;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_HISTORY'
|
||||
UNLOCK TABLES;
|
@ -0,0 +1,36 @@
|
||||
select * from performance_schema.EVENTS_WAITS_HISTORY_LONG
|
||||
where event_name like 'Wait/Synch/%' limit 1;
|
||||
THREAD_ID EVENT_ID EVENT_NAME SOURCE TIMER_START TIMER_END TIMER_WAIT SPINS OBJECT_SCHEMA OBJECT_NAME OBJECT_TYPE OBJECT_INSTANCE_BEGIN NESTING_EVENT_ID OPERATION NUMBER_OF_BYTES FLAGS
|
||||
# # # # # # # # NULL NULL NULL # NULL # NULL 0
|
||||
select * from performance_schema.EVENTS_WAITS_HISTORY_LONG
|
||||
where event_name='FOO';
|
||||
THREAD_ID EVENT_ID EVENT_NAME SOURCE TIMER_START TIMER_END TIMER_WAIT SPINS OBJECT_SCHEMA OBJECT_NAME OBJECT_TYPE OBJECT_INSTANCE_BEGIN NESTING_EVENT_ID OPERATION NUMBER_OF_BYTES FLAGS
|
||||
select * from performance_schema.EVENTS_WAITS_HISTORY_LONG
|
||||
where event_name like 'Wait/Synch/%' order by timer_wait limit 1;
|
||||
THREAD_ID EVENT_ID EVENT_NAME SOURCE TIMER_START TIMER_END TIMER_WAIT SPINS OBJECT_SCHEMA OBJECT_NAME OBJECT_TYPE OBJECT_INSTANCE_BEGIN NESTING_EVENT_ID OPERATION NUMBER_OF_BYTES FLAGS
|
||||
# # # # # # # # NULL NULL NULL # NULL # NULL 0
|
||||
select * from performance_schema.EVENTS_WAITS_HISTORY_LONG
|
||||
where event_name like 'Wait/Synch/%' order by timer_wait desc limit 1;
|
||||
THREAD_ID EVENT_ID EVENT_NAME SOURCE TIMER_START TIMER_END TIMER_WAIT SPINS OBJECT_SCHEMA OBJECT_NAME OBJECT_TYPE OBJECT_INSTANCE_BEGIN NESTING_EVENT_ID OPERATION NUMBER_OF_BYTES FLAGS
|
||||
# # # # # # # # NULL NULL NULL # NULL # NULL 0
|
||||
insert into performance_schema.EVENTS_WAITS_HISTORY_LONG
|
||||
set thread_id='1', event_id=1,
|
||||
event_name='FOO', timer_start=1, timer_end=2, timer_wait=3;
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_HISTORY_LONG'
|
||||
update performance_schema.EVENTS_WAITS_HISTORY_LONG
|
||||
set timer_start=12;
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_HISTORY_LONG'
|
||||
update performance_schema.EVENTS_WAITS_HISTORY_LONG
|
||||
set timer_start=12 where thread_id=0;
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_HISTORY_LONG'
|
||||
delete from performance_schema.EVENTS_WAITS_HISTORY_LONG
|
||||
where thread_id=1;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_HISTORY_LONG'
|
||||
delete from performance_schema.EVENTS_WAITS_HISTORY_LONG;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_HISTORY_LONG'
|
||||
LOCK TABLES performance_schema.EVENTS_WAITS_HISTORY_LONG READ;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_HISTORY_LONG'
|
||||
UNLOCK TABLES;
|
||||
LOCK TABLES performance_schema.EVENTS_WAITS_HISTORY_LONG WRITE;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_HISTORY_LONG'
|
||||
UNLOCK TABLES;
|
28
mysql-test/suite/perfschema/r/dml_ews_by_event_name.result
Normal file
28
mysql-test/suite/perfschema/r/dml_ews_by_event_name.result
Normal file
@ -0,0 +1,28 @@
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME
|
||||
where event_name like 'Wait/Synch/%' limit 1;
|
||||
EVENT_NAME COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT
|
||||
# # # # # #
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME
|
||||
where event_name='FOO';
|
||||
EVENT_NAME COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT
|
||||
insert into performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME
|
||||
set event_name='FOO', count_star=1, sum_timer_wait=2, min_timer_wait=3,
|
||||
avg_timer_wait=4, max_timer_wait=5;
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_SUMMARY_BY_EVENT_NAME'
|
||||
update performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME
|
||||
set count_star=12;
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_SUMMARY_BY_EVENT_NAME'
|
||||
update performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME
|
||||
set count_star=12 where event_name like "FOO";
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_SUMMARY_BY_EVENT_NAME'
|
||||
delete from performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME
|
||||
where count_star=1;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_SUMMARY_BY_EVENT_NAME'
|
||||
delete from performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_SUMMARY_BY_EVENT_NAME'
|
||||
LOCK TABLES performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME READ;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_SUMMARY_BY_EVENT_NAME'
|
||||
UNLOCK TABLES;
|
||||
LOCK TABLES performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME WRITE;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_SUMMARY_BY_EVENT_NAME'
|
||||
UNLOCK TABLES;
|
45
mysql-test/suite/perfschema/r/dml_ews_by_instance.result
Normal file
45
mysql-test/suite/perfschema/r/dml_ews_by_instance.result
Normal file
@ -0,0 +1,45 @@
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE
|
||||
where event_name like 'Wait/Synch/%' limit 1;
|
||||
EVENT_NAME OBJECT_INSTANCE_BEGIN COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT
|
||||
# # # # # # #
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE
|
||||
where event_name='FOO';
|
||||
EVENT_NAME OBJECT_INSTANCE_BEGIN COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE
|
||||
order by count_star limit 1;
|
||||
EVENT_NAME OBJECT_INSTANCE_BEGIN COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT
|
||||
# # # # # # #
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE
|
||||
order by count_star desc limit 1;
|
||||
EVENT_NAME OBJECT_INSTANCE_BEGIN COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT
|
||||
# # # # # # #
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE
|
||||
where min_timer_wait > 0 order by count_star limit 1;
|
||||
EVENT_NAME OBJECT_INSTANCE_BEGIN COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT
|
||||
# # # # # # #
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE
|
||||
where min_timer_wait > 0 order by count_star desc limit 1;
|
||||
EVENT_NAME OBJECT_INSTANCE_BEGIN COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT
|
||||
# # # # # # #
|
||||
insert into performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE
|
||||
set event_name='FOO', object_instance_begin=0,
|
||||
count_star=1, sum_timer_wait=2, min_timer_wait=3,
|
||||
avg_timer_wait=4, max_timer_wait=5;
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_SUMMARY_BY_INSTANCE'
|
||||
update performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE
|
||||
set count_star=12;
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_SUMMARY_BY_INSTANCE'
|
||||
update performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE
|
||||
set count_star=12 where event_name like "FOO";
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_SUMMARY_BY_INSTANCE'
|
||||
delete from performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE
|
||||
where count_star=1;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_SUMMARY_BY_INSTANCE'
|
||||
delete from performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_SUMMARY_BY_INSTANCE'
|
||||
LOCK TABLES performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE READ;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_SUMMARY_BY_INSTANCE'
|
||||
UNLOCK TABLES;
|
||||
LOCK TABLES performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE WRITE;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_SUMMARY_BY_INSTANCE'
|
||||
UNLOCK TABLES;
|
@ -0,0 +1,29 @@
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME
|
||||
where event_name like 'Wait/Synch/%' limit 1;
|
||||
THREAD_ID EVENT_NAME COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT
|
||||
# # # # # # #
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME
|
||||
where event_name='FOO';
|
||||
THREAD_ID EVENT_NAME COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT
|
||||
insert into performance_schema.EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME
|
||||
set event_name='FOO', thread_id=1,
|
||||
count_star=1, sum_timer_wait=2, min_timer_wait=3,
|
||||
avg_timer_wait=4, max_timer_wait=5;
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME'
|
||||
update performance_schema.EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME
|
||||
set count_star=12;
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME'
|
||||
update performance_schema.EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME
|
||||
set count_star=12 where event_name like "FOO";
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME'
|
||||
delete from performance_schema.EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME
|
||||
where count_star=1;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME'
|
||||
delete from performance_schema.EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME'
|
||||
LOCK TABLES performance_schema.EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME READ;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME'
|
||||
UNLOCK TABLES;
|
||||
LOCK TABLES performance_schema.EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME WRITE;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME'
|
||||
UNLOCK TABLES;
|
23
mysql-test/suite/perfschema/r/dml_file_instances.result
Normal file
23
mysql-test/suite/perfschema/r/dml_file_instances.result
Normal file
@ -0,0 +1,23 @@
|
||||
select * from performance_schema.FILE_INSTANCES limit 1;
|
||||
FILE_NAME EVENT_NAME OPEN_COUNT
|
||||
# # #
|
||||
select * from performance_schema.FILE_INSTANCES
|
||||
where file_name='FOO';
|
||||
FILE_NAME EVENT_NAME OPEN_COUNT
|
||||
insert into performance_schema.FILE_INSTANCES
|
||||
set file_name='FOO', event_name='BAR', open_count=12;
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'FILE_INSTANCES'
|
||||
update performance_schema.FILE_INSTANCES
|
||||
set file_name='FOO';
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'FILE_INSTANCES'
|
||||
delete from performance_schema.FILE_INSTANCES
|
||||
where event_name like "wait/%";
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'FILE_INSTANCES'
|
||||
delete from performance_schema.FILE_INSTANCES;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'FILE_INSTANCES'
|
||||
LOCK TABLES performance_schema.FILE_INSTANCES READ;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'FILE_INSTANCES'
|
||||
UNLOCK TABLES;
|
||||
LOCK TABLES performance_schema.FILE_INSTANCES WRITE;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'FILE_INSTANCES'
|
||||
UNLOCK TABLES;
|
@ -0,0 +1,28 @@
|
||||
select * from performance_schema.FILE_SUMMARY_BY_EVENT_NAME
|
||||
where event_name like 'Wait/io/%' limit 1;
|
||||
EVENT_NAME COUNT_READ COUNT_WRITE SUM_NUMBER_OF_BYTES_READ SUM_NUMBER_OF_BYTES_WRITE
|
||||
# # # # #
|
||||
select * from performance_schema.FILE_SUMMARY_BY_EVENT_NAME
|
||||
where event_name='FOO';
|
||||
EVENT_NAME COUNT_READ COUNT_WRITE SUM_NUMBER_OF_BYTES_READ SUM_NUMBER_OF_BYTES_WRITE
|
||||
insert into performance_schema.FILE_SUMMARY_BY_EVENT_NAME
|
||||
set event_name='FOO', count_read=1, count_write=2,
|
||||
sum_number_of_bytes_read=4, sum_number_of_bytes_write=5;
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'FILE_SUMMARY_BY_EVENT_NAME'
|
||||
update performance_schema.FILE_SUMMARY_BY_EVENT_NAME
|
||||
set count_read=12;
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'FILE_SUMMARY_BY_EVENT_NAME'
|
||||
update performance_schema.FILE_SUMMARY_BY_EVENT_NAME
|
||||
set count_write=12 where event_name like "FOO";
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'FILE_SUMMARY_BY_EVENT_NAME'
|
||||
delete from performance_schema.FILE_SUMMARY_BY_EVENT_NAME
|
||||
where count_read=1;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'FILE_SUMMARY_BY_EVENT_NAME'
|
||||
delete from performance_schema.FILE_SUMMARY_BY_EVENT_NAME;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'FILE_SUMMARY_BY_EVENT_NAME'
|
||||
LOCK TABLES performance_schema.FILE_SUMMARY_BY_EVENT_NAME READ;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'FILE_SUMMARY_BY_EVENT_NAME'
|
||||
UNLOCK TABLES;
|
||||
LOCK TABLES performance_schema.FILE_SUMMARY_BY_EVENT_NAME WRITE;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'FILE_SUMMARY_BY_EVENT_NAME'
|
||||
UNLOCK TABLES;
|
@ -0,0 +1,28 @@
|
||||
select * from performance_schema.FILE_SUMMARY_BY_INSTANCE
|
||||
where event_name like 'Wait/io/%' limit 1;
|
||||
FILE_NAME EVENT_NAME COUNT_READ COUNT_WRITE SUM_NUMBER_OF_BYTES_READ SUM_NUMBER_OF_BYTES_WRITE
|
||||
# # # # # #
|
||||
select * from performance_schema.FILE_SUMMARY_BY_INSTANCE
|
||||
where event_name='FOO';
|
||||
FILE_NAME EVENT_NAME COUNT_READ COUNT_WRITE SUM_NUMBER_OF_BYTES_READ SUM_NUMBER_OF_BYTES_WRITE
|
||||
insert into performance_schema.FILE_SUMMARY_BY_INSTANCE
|
||||
set event_name='FOO', count_read=1, count_write=2,
|
||||
sum_number_of_bytes_read=4, sum_number_of_bytes_write=5;
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'FILE_SUMMARY_BY_INSTANCE'
|
||||
update performance_schema.FILE_SUMMARY_BY_INSTANCE
|
||||
set count_read=12;
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'FILE_SUMMARY_BY_INSTANCE'
|
||||
update performance_schema.FILE_SUMMARY_BY_INSTANCE
|
||||
set count_write=12 where event_name like "FOO";
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'FILE_SUMMARY_BY_INSTANCE'
|
||||
delete from performance_schema.FILE_SUMMARY_BY_INSTANCE
|
||||
where count_read=1;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'FILE_SUMMARY_BY_INSTANCE'
|
||||
delete from performance_schema.FILE_SUMMARY_BY_INSTANCE;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'FILE_SUMMARY_BY_INSTANCE'
|
||||
LOCK TABLES performance_schema.FILE_SUMMARY_BY_INSTANCE READ;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'FILE_SUMMARY_BY_INSTANCE'
|
||||
UNLOCK TABLES;
|
||||
LOCK TABLES performance_schema.FILE_SUMMARY_BY_INSTANCE WRITE;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'FILE_SUMMARY_BY_INSTANCE'
|
||||
UNLOCK TABLES;
|
23
mysql-test/suite/perfschema/r/dml_mutex_instances.result
Normal file
23
mysql-test/suite/perfschema/r/dml_mutex_instances.result
Normal file
@ -0,0 +1,23 @@
|
||||
select * from performance_schema.MUTEX_INSTANCES limit 1;
|
||||
NAME OBJECT_INSTANCE_BEGIN LOCKED_BY_THREAD_ID
|
||||
# # NULL
|
||||
select * from performance_schema.MUTEX_INSTANCES
|
||||
where name='FOO';
|
||||
NAME OBJECT_INSTANCE_BEGIN LOCKED_BY_THREAD_ID
|
||||
insert into performance_schema.MUTEX_INSTANCES
|
||||
set name='FOO', object_instance_begin=12;
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'MUTEX_INSTANCES'
|
||||
update performance_schema.MUTEX_INSTANCES
|
||||
set name='FOO';
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'MUTEX_INSTANCES'
|
||||
delete from performance_schema.MUTEX_INSTANCES
|
||||
where name like "wait/%";
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'MUTEX_INSTANCES'
|
||||
delete from performance_schema.MUTEX_INSTANCES;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'MUTEX_INSTANCES'
|
||||
LOCK TABLES performance_schema.MUTEX_INSTANCES READ;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'MUTEX_INSTANCES'
|
||||
UNLOCK TABLES;
|
||||
LOCK TABLES performance_schema.MUTEX_INSTANCES WRITE;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'MUTEX_INSTANCES'
|
||||
UNLOCK TABLES;
|
29
mysql-test/suite/perfschema/r/dml_performance_timers.result
Normal file
29
mysql-test/suite/perfschema/r/dml_performance_timers.result
Normal file
@ -0,0 +1,29 @@
|
||||
select * from performance_schema.PERFORMANCE_TIMERS;
|
||||
TIMER_NAME TIMER_FREQUENCY TIMER_RESOLUTION TIMER_OVERHEAD
|
||||
CYCLE <frequency> <resolution> <overhead>
|
||||
NANOSECOND <frequency> <resolution> <overhead>
|
||||
MICROSECOND <frequency> <resolution> <overhead>
|
||||
MILLISECOND <frequency> <resolution> <overhead>
|
||||
TICK <frequency> <resolution> <overhead>
|
||||
select * from performance_schema.PERFORMANCE_TIMERS
|
||||
where timer_name='CYCLE';
|
||||
TIMER_NAME TIMER_FREQUENCY TIMER_RESOLUTION TIMER_OVERHEAD
|
||||
CYCLE <frequency> <resolution> <overhead>
|
||||
insert into performance_schema.PERFORMANCE_TIMERS
|
||||
set timer_name='FOO', timer_frequency=1,
|
||||
timer_resolution=2, timer_overhead=3;
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'PERFORMANCE_TIMERS'
|
||||
update performance_schema.PERFORMANCE_TIMERS
|
||||
set timer_frequency=12 where timer_name='CYCLE';
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'PERFORMANCE_TIMERS'
|
||||
delete from performance_schema.PERFORMANCE_TIMERS;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'PERFORMANCE_TIMERS'
|
||||
delete from performance_schema.PERFORMANCE_TIMERS
|
||||
where timer_name='CYCLE';
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'PERFORMANCE_TIMERS'
|
||||
LOCK TABLES performance_schema.PERFORMANCE_TIMERS READ;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'PERFORMANCE_TIMERS'
|
||||
UNLOCK TABLES;
|
||||
LOCK TABLES performance_schema.PERFORMANCE_TIMERS WRITE;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'PERFORMANCE_TIMERS'
|
||||
UNLOCK TABLES;
|
27
mysql-test/suite/perfschema/r/dml_processlist.result
Normal file
27
mysql-test/suite/perfschema/r/dml_processlist.result
Normal file
@ -0,0 +1,27 @@
|
||||
select * from performance_schema.PROCESSLIST
|
||||
where name like 'Thread/%' limit 1;
|
||||
THREAD_ID ID NAME
|
||||
# # #
|
||||
select * from performance_schema.PROCESSLIST
|
||||
where name='FOO';
|
||||
THREAD_ID ID NAME
|
||||
insert into performance_schema.PROCESSLIST
|
||||
set name='FOO', thread_id=1, id=2;
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'PROCESSLIST'
|
||||
update performance_schema.PROCESSLIST
|
||||
set thread_id=12;
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'PROCESSLIST'
|
||||
update performance_schema.PROCESSLIST
|
||||
set thread_id=12 where name like "FOO";
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'PROCESSLIST'
|
||||
delete from performance_schema.PROCESSLIST
|
||||
where id=1;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'PROCESSLIST'
|
||||
delete from performance_schema.PROCESSLIST;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'PROCESSLIST'
|
||||
LOCK TABLES performance_schema.PROCESSLIST READ;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'PROCESSLIST'
|
||||
UNLOCK TABLES;
|
||||
LOCK TABLES performance_schema.PROCESSLIST WRITE;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'PROCESSLIST'
|
||||
UNLOCK TABLES;
|
23
mysql-test/suite/perfschema/r/dml_rwlock_instances.result
Normal file
23
mysql-test/suite/perfschema/r/dml_rwlock_instances.result
Normal file
@ -0,0 +1,23 @@
|
||||
select * from performance_schema.RWLOCK_INSTANCES limit 1;
|
||||
NAME OBJECT_INSTANCE_BEGIN WRITE_LOCKED_BY_THREAD_ID READ_LOCKED_BY_COUNT
|
||||
# # NULL 0
|
||||
select * from performance_schema.RWLOCK_INSTANCES
|
||||
where name='FOO';
|
||||
NAME OBJECT_INSTANCE_BEGIN WRITE_LOCKED_BY_THREAD_ID READ_LOCKED_BY_COUNT
|
||||
insert into performance_schema.RWLOCK_INSTANCES
|
||||
set name='FOO', object_instance_begin=12;
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'RWLOCK_INSTANCES'
|
||||
update performance_schema.RWLOCK_INSTANCES
|
||||
set name='FOO';
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'RWLOCK_INSTANCES'
|
||||
delete from performance_schema.RWLOCK_INSTANCES
|
||||
where name like "wait/%";
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'RWLOCK_INSTANCES'
|
||||
delete from performance_schema.RWLOCK_INSTANCES;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'RWLOCK_INSTANCES'
|
||||
LOCK TABLES performance_schema.RWLOCK_INSTANCES READ;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'RWLOCK_INSTANCES'
|
||||
UNLOCK TABLES;
|
||||
LOCK TABLES performance_schema.RWLOCK_INSTANCES WRITE;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'RWLOCK_INSTANCES'
|
||||
UNLOCK TABLES;
|
45
mysql-test/suite/perfschema/r/dml_setup_consumers.result
Normal file
45
mysql-test/suite/perfschema/r/dml_setup_consumers.result
Normal file
@ -0,0 +1,45 @@
|
||||
select * from performance_schema.SETUP_CONSUMERS;
|
||||
NAME ENABLED
|
||||
events_waits_current YES
|
||||
events_waits_history YES
|
||||
events_waits_history_long YES
|
||||
events_waits_summary_by_thread_by_event_name YES
|
||||
events_waits_summary_by_event_name YES
|
||||
events_waits_summary_by_instance YES
|
||||
file_summary_by_event_name YES
|
||||
file_summary_by_instance YES
|
||||
select * from performance_schema.SETUP_CONSUMERS
|
||||
where name='events_waits_current';
|
||||
NAME ENABLED
|
||||
events_waits_current YES
|
||||
select * from performance_schema.SETUP_CONSUMERS
|
||||
where enabled='YES';
|
||||
NAME ENABLED
|
||||
events_waits_current YES
|
||||
events_waits_history YES
|
||||
events_waits_history_long YES
|
||||
events_waits_summary_by_thread_by_event_name YES
|
||||
events_waits_summary_by_event_name YES
|
||||
events_waits_summary_by_instance YES
|
||||
file_summary_by_event_name YES
|
||||
file_summary_by_instance YES
|
||||
select * from performance_schema.SETUP_CONSUMERS
|
||||
where enabled='NO';
|
||||
NAME ENABLED
|
||||
insert into performance_schema.SETUP_CONSUMERS
|
||||
set name='FOO', enabled='YES';
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'SETUP_CONSUMERS'
|
||||
update performance_schema.SETUP_CONSUMERS
|
||||
set name='FOO';
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
update performance_schema.SETUP_CONSUMERS
|
||||
set enabled='YES';
|
||||
delete from performance_schema.SETUP_CONSUMERS;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'SETUP_CONSUMERS'
|
||||
delete from performance_schema.SETUP_CONSUMERS
|
||||
where name='events_waits_current';
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'SETUP_CONSUMERS'
|
||||
LOCK TABLES performance_schema.SETUP_CONSUMERS READ;
|
||||
UNLOCK TABLES;
|
||||
LOCK TABLES performance_schema.SETUP_CONSUMERS WRITE;
|
||||
UNLOCK TABLES;
|
72
mysql-test/suite/perfschema/r/dml_setup_instruments.result
Normal file
72
mysql-test/suite/perfschema/r/dml_setup_instruments.result
Normal file
@ -0,0 +1,72 @@
|
||||
select * from performance_schema.SETUP_INSTRUMENTS;
|
||||
select * from performance_schema.SETUP_INSTRUMENTS
|
||||
where name like 'Wait/Synch/Mutex/sql/%'
|
||||
and name not in ('wait/synch/mutex/sql/DEBUG_SYNC::mutex')
|
||||
order by name limit 10;
|
||||
NAME ENABLED TIMED
|
||||
wait/synch/mutex/sql/Cversion_lock YES YES
|
||||
wait/synch/mutex/sql/Delayed_insert::mutex YES YES
|
||||
wait/synch/mutex/sql/Event_scheduler::LOCK_scheduler_state YES YES
|
||||
wait/synch/mutex/sql/hash_filo::lock YES YES
|
||||
wait/synch/mutex/sql/LOCK_active_mi YES YES
|
||||
wait/synch/mutex/sql/LOCK_connection_count YES YES
|
||||
wait/synch/mutex/sql/LOCK_crypt YES YES
|
||||
wait/synch/mutex/sql/LOCK_delayed_create YES YES
|
||||
wait/synch/mutex/sql/LOCK_delayed_insert YES YES
|
||||
wait/synch/mutex/sql/LOCK_delayed_status YES YES
|
||||
select * from performance_schema.SETUP_INSTRUMENTS
|
||||
where name like 'Wait/Synch/Rwlock/sql/%'
|
||||
order by name limit 10;
|
||||
NAME ENABLED TIMED
|
||||
wait/synch/rwlock/sql/LOCK_dboptions YES YES
|
||||
wait/synch/rwlock/sql/LOCK_grant YES YES
|
||||
wait/synch/rwlock/sql/LOCK_system_variables_hash YES YES
|
||||
wait/synch/rwlock/sql/LOCK_sys_init_connect YES YES
|
||||
wait/synch/rwlock/sql/LOCK_sys_init_slave YES YES
|
||||
wait/synch/rwlock/sql/LOGGER::LOCK_logger YES YES
|
||||
wait/synch/rwlock/sql/Query_cache_query::lock YES YES
|
||||
wait/synch/rwlock/sql/THR_LOCK_servers YES YES
|
||||
wait/synch/rwlock/sql/THR_LOCK_udf YES YES
|
||||
select * from performance_schema.SETUP_INSTRUMENTS
|
||||
where name like 'Wait/Synch/Cond/sql/%'
|
||||
and name not in (
|
||||
'wait/synch/cond/sql/COND_handler_count',
|
||||
'wait/synch/cond/sql/DEBUG_SYNC::cond')
|
||||
order by name limit 10;
|
||||
NAME ENABLED TIMED
|
||||
wait/synch/cond/sql/COND_flush_thread_cache YES YES
|
||||
wait/synch/cond/sql/COND_global_read_lock YES YES
|
||||
wait/synch/cond/sql/COND_manager YES YES
|
||||
wait/synch/cond/sql/COND_queue_state YES YES
|
||||
wait/synch/cond/sql/COND_refresh YES YES
|
||||
wait/synch/cond/sql/COND_rpl_status YES YES
|
||||
wait/synch/cond/sql/COND_server_started YES YES
|
||||
wait/synch/cond/sql/COND_thread_cache YES YES
|
||||
wait/synch/cond/sql/COND_thread_count YES YES
|
||||
wait/synch/cond/sql/Delayed_insert::cond YES YES
|
||||
select * from performance_schema.SETUP_INSTRUMENTS
|
||||
where name='Wait';
|
||||
select * from performance_schema.SETUP_INSTRUMENTS
|
||||
where enabled='YES';
|
||||
insert into performance_schema.SETUP_INSTRUMENTS
|
||||
set name='FOO', enabled='YES', timed='YES';
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'SETUP_INSTRUMENTS'
|
||||
update performance_schema.SETUP_INSTRUMENTS
|
||||
set name='FOO';
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
update performance_schema.SETUP_INSTRUMENTS
|
||||
set enabled='NO';
|
||||
update performance_schema.SETUP_INSTRUMENTS
|
||||
set timed='NO';
|
||||
select * from performance_schema.SETUP_INSTRUMENTS;
|
||||
update performance_schema.SETUP_INSTRUMENTS
|
||||
set enabled='YES', timed='YES';
|
||||
delete from performance_schema.SETUP_INSTRUMENTS;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'SETUP_INSTRUMENTS'
|
||||
delete from performance_schema.SETUP_INSTRUMENTS
|
||||
where name like 'Wait/Synch/%';
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'SETUP_INSTRUMENTS'
|
||||
LOCK TABLES performance_schema.SETUP_INSTRUMENTS READ;
|
||||
UNLOCK TABLES;
|
||||
LOCK TABLES performance_schema.SETUP_INSTRUMENTS WRITE;
|
||||
UNLOCK TABLES;
|
35
mysql-test/suite/perfschema/r/dml_setup_objects.result
Normal file
35
mysql-test/suite/perfschema/r/dml_setup_objects.result
Normal file
@ -0,0 +1,35 @@
|
||||
select * from performance_schema.SETUP_OBJECTS;
|
||||
OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME ENABLED TIMED AGGREGATED
|
||||
select * from performance_schema.SETUP_OBJECTS
|
||||
where object_type = 'TABLE';
|
||||
OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME ENABLED TIMED AGGREGATED
|
||||
select * from performance_schema.SETUP_OBJECTS
|
||||
where enabled='YES';
|
||||
OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME ENABLED TIMED AGGREGATED
|
||||
insert into performance_schema.SETUP_OBJECTS
|
||||
set object_type='TABLE', object_schema='FOO', object_name='BAR',
|
||||
enabled='YES', timed='YES', aggregated='YES';
|
||||
ERROR HY000: Table storage engine for 'SETUP_OBJECTS' doesn't have this option
|
||||
update performance_schema.SETUP_OBJECTS
|
||||
set object_type='TABLE';
|
||||
update performance_schema.SETUP_OBJECTS
|
||||
set object_schema='ILLEGAL';
|
||||
update performance_schema.SETUP_OBJECTS
|
||||
set object_name='ILLEGAL';
|
||||
update performance_schema.SETUP_OBJECTS
|
||||
set enabled='NO';
|
||||
update performance_schema.SETUP_OBJECTS
|
||||
set timed='NO';
|
||||
update performance_schema.SETUP_OBJECTS
|
||||
set aggregated='NO';
|
||||
select * from performance_schema.SETUP_OBJECTS;
|
||||
OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME ENABLED TIMED AGGREGATED
|
||||
update performance_schema.SETUP_OBJECTS
|
||||
set enabled='YES', timed='YES', aggregated='YES';
|
||||
delete from performance_schema.SETUP_OBJECTS
|
||||
where object_type = 'TABLE';
|
||||
delete from performance_schema.SETUP_OBJECTS;
|
||||
LOCK TABLES performance_schema.SETUP_OBJECTS READ;
|
||||
UNLOCK TABLES;
|
||||
LOCK TABLES performance_schema.SETUP_OBJECTS WRITE;
|
||||
UNLOCK TABLES;
|
33
mysql-test/suite/perfschema/r/dml_setup_timers.result
Normal file
33
mysql-test/suite/perfschema/r/dml_setup_timers.result
Normal file
@ -0,0 +1,33 @@
|
||||
select * from performance_schema.SETUP_TIMERS;
|
||||
NAME TIMER_NAME
|
||||
wait CYCLE
|
||||
select * from performance_schema.SETUP_TIMERS
|
||||
where name='Wait';
|
||||
NAME TIMER_NAME
|
||||
wait CYCLE
|
||||
select * from performance_schema.SETUP_TIMERS
|
||||
where timer_name='CYCLE';
|
||||
NAME TIMER_NAME
|
||||
wait CYCLE
|
||||
insert into performance_schema.SETUP_TIMERS
|
||||
set name='FOO', timer_name='CYCLE';
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'SETUP_TIMERS'
|
||||
update performance_schema.SETUP_TIMERS
|
||||
set name='FOO';
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
update performance_schema.SETUP_TIMERS
|
||||
set timer_name='MILLISECOND';
|
||||
select * from performance_schema.SETUP_TIMERS;
|
||||
NAME TIMER_NAME
|
||||
wait MILLISECOND
|
||||
update performance_schema.SETUP_TIMERS
|
||||
set timer_name='CYCLE';
|
||||
delete from performance_schema.SETUP_TIMERS;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'SETUP_TIMERS'
|
||||
delete from performance_schema.SETUP_TIMERS
|
||||
where name='Wait';
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'SETUP_TIMERS'
|
||||
LOCK TABLES performance_schema.SETUP_TIMERS READ;
|
||||
UNLOCK TABLES;
|
||||
LOCK TABLES performance_schema.SETUP_TIMERS WRITE;
|
||||
UNLOCK TABLES;
|
117
mysql-test/suite/perfschema/r/func_file_io.result
Normal file
117
mysql-test/suite/perfschema/r/func_file_io.result
Normal file
@ -0,0 +1,117 @@
|
||||
UPDATE performance_schema.SETUP_INSTRUMENTS SET enabled = 'NO', timed = 'YES';
|
||||
UPDATE performance_schema.SETUP_INSTRUMENTS SET enabled = 'YES'
|
||||
WHERE name LIKE 'wait/io/file/%';
|
||||
DROP TABLE IF EXISTS t1;
|
||||
CREATE TABLE t1 (id INT PRIMARY KEY, b CHAR(100) DEFAULT 'initial value')
|
||||
ENGINE=MyISAM;
|
||||
INSERT INTO t1 (id) VALUES (1), (2), (3), (4), (5), (6), (7), (8);
|
||||
TRUNCATE TABLE performance_schema.EVENTS_WAITS_HISTORY_LONG;
|
||||
TRUNCATE TABLE performance_schema.EVENTS_WAITS_HISTORY;
|
||||
TRUNCATE TABLE performance_schema.EVENTS_WAITS_CURRENT;
|
||||
SELECT * FROM t1 WHERE id = 1;
|
||||
id b
|
||||
1 initial value
|
||||
SET @before_count = (SELECT SUM(TIMER_WAIT)
|
||||
FROM performance_schema.EVENTS_WAITS_HISTORY_LONG
|
||||
WHERE (EVENT_NAME = 'wait/io/file/myisam/dfile')
|
||||
AND (OBJECT_NAME LIKE '%t1.MYD'));
|
||||
SELECT IF(@before_count > 0, 'Success', 'Failure') has_instrumentation;
|
||||
has_instrumentation
|
||||
Success
|
||||
SELECT * FROM t1 WHERE id < 4;
|
||||
id b
|
||||
1 initial value
|
||||
2 initial value
|
||||
3 initial value
|
||||
SET @after_count = (SELECT SUM(TIMER_WAIT)
|
||||
FROM performance_schema.EVENTS_WAITS_HISTORY_LONG
|
||||
WHERE (EVENT_NAME = 'wait/io/file/myisam/dfile')
|
||||
AND (OBJECT_NAME LIKE '%t1.MYD') AND (1 = 1));
|
||||
SELECT IF((@after_count - @before_count) > 0, 'Success', 'Failure') test_ff1_timed;
|
||||
test_ff1_timed
|
||||
Success
|
||||
UPDATE performance_schema.SETUP_INSTRUMENTS SET enabled='NO';
|
||||
SET @before_count = (SELECT SUM(TIMER_WAIT)
|
||||
FROM performance_schema.EVENTS_WAITS_HISTORY_LONG
|
||||
WHERE (EVENT_NAME = 'wait/io/file/myisam/dfile')
|
||||
AND (OBJECT_NAME LIKE '%t1.MYD') AND (2 = 2));
|
||||
SELECT * FROM t1 WHERE id < 6;
|
||||
id b
|
||||
1 initial value
|
||||
2 initial value
|
||||
3 initial value
|
||||
4 initial value
|
||||
5 initial value
|
||||
SET @after_count = (SELECT SUM(TIMER_WAIT)
|
||||
FROM performance_schema.EVENTS_WAITS_HISTORY_LONG
|
||||
WHERE (EVENT_NAME = 'wait/io/file/myisam/dfile')
|
||||
AND (OBJECT_NAME LIKE '%t1.MYD') AND (3 = 3));
|
||||
SELECT IF((COALESCE(@after_count, 0) - COALESCE(@before_count, 0)) = 0, 'Success', 'Failure') test_ff2_timed;
|
||||
test_ff2_timed
|
||||
Success
|
||||
UPDATE performance_schema.SETUP_INSTRUMENTS SET enabled = 'YES'
|
||||
WHERE name LIKE 'wait/io/file/%';
|
||||
UPDATE performance_schema.SETUP_INSTRUMENTS SET timed = 'NO';
|
||||
TRUNCATE TABLE performance_schema.EVENTS_WAITS_HISTORY_LONG;
|
||||
TRUNCATE TABLE performance_schema.EVENTS_WAITS_HISTORY;
|
||||
TRUNCATE TABLE performance_schema.EVENTS_WAITS_CURRENT;
|
||||
SELECT * FROM t1 WHERE id > 4;
|
||||
id b
|
||||
5 initial value
|
||||
6 initial value
|
||||
7 initial value
|
||||
8 initial value
|
||||
SELECT * FROM performance_schema.EVENTS_WAITS_HISTORY_LONG
|
||||
WHERE TIMER_WAIT != NULL
|
||||
OR TIMER_START != NULL
|
||||
OR TIMER_END != NULL;
|
||||
THREAD_ID EVENT_ID EVENT_NAME SOURCE TIMER_START TIMER_END TIMER_WAIT SPINS OBJECT_SCHEMA OBJECT_NAME OBJECT_TYPE OBJECT_INSTANCE_BEGIN NESTING_EVENT_ID OPERATION NUMBER_OF_BYTES FLAGS
|
||||
SELECT * FROM performance_schema.EVENTS_WAITS_HISTORY
|
||||
WHERE TIMER_WAIT != NULL
|
||||
OR TIMER_START != NULL
|
||||
OR TIMER_END != NULL;
|
||||
THREAD_ID EVENT_ID EVENT_NAME SOURCE TIMER_START TIMER_END TIMER_WAIT SPINS OBJECT_SCHEMA OBJECT_NAME OBJECT_TYPE OBJECT_INSTANCE_BEGIN NESTING_EVENT_ID OPERATION NUMBER_OF_BYTES FLAGS
|
||||
SELECT * FROM performance_schema.EVENTS_WAITS_CURRENT
|
||||
WHERE TIMER_WAIT != NULL
|
||||
OR TIMER_START != NULL
|
||||
OR TIMER_END != NULL;
|
||||
THREAD_ID EVENT_ID EVENT_NAME SOURCE TIMER_START TIMER_END TIMER_WAIT SPINS OBJECT_SCHEMA OBJECT_NAME OBJECT_TYPE OBJECT_INSTANCE_BEGIN NESTING_EVENT_ID OPERATION NUMBER_OF_BYTES FLAGS
|
||||
UPDATE performance_schema.SETUP_INSTRUMENTS SET timed = 'YES';
|
||||
SELECT * FROM t1 WHERE id < 4;
|
||||
id b
|
||||
1 initial value
|
||||
2 initial value
|
||||
3 initial value
|
||||
DROP TABLE t1;
|
||||
SELECT SUM(COUNT_READ) AS sum_count_read,
|
||||
SUM(COUNT_WRITE) AS sum_count_write,
|
||||
SUM(SUM_NUMBER_OF_BYTES_READ) AS sum_num_bytes_read,
|
||||
SUM(SUM_NUMBER_OF_BYTES_WRITE) AS sum_num_bytes_write
|
||||
FROM performance_schema.FILE_SUMMARY_BY_INSTANCE
|
||||
WHERE FILE_NAME LIKE CONCAT('%', @@tmpdir, '%') ORDER BY NULL;
|
||||
SELECT EVENT_NAME, COUNT_STAR, AVG_TIMER_WAIT, SUM_TIMER_WAIT
|
||||
FROM performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME
|
||||
WHERE COUNT_STAR > 0
|
||||
ORDER BY SUM_TIMER_WAIT DESC
|
||||
LIMIT 10;
|
||||
SELECT i.user, SUM(TIMER_WAIT) SUM_WAIT
|
||||
# ((TIME_TO_SEC(TIMEDIFF(NOW(), i.startup_time)) * 1000) / SUM(TIMER_WAIT)) * 100 WAIT_PERCENTAGE
|
||||
FROM performance_schema.EVENTS_WAITS_HISTORY_LONG h
|
||||
INNER JOIN performance_schema.PROCESSLIST p USING (THREAD_ID)
|
||||
LEFT JOIN information_schema.PROCESSLIST i USING (ID)
|
||||
GROUP BY i.user
|
||||
ORDER BY SUM_WAIT DESC
|
||||
LIMIT 20;
|
||||
SELECT h.EVENT_NAME, SUM(h.TIMER_WAIT) TOTAL_WAIT
|
||||
FROM performance_schema.EVENTS_WAITS_HISTORY_LONG h
|
||||
INNER JOIN performance_schema.PROCESSLIST p USING (THREAD_ID)
|
||||
WHERE p.ID = 1
|
||||
GROUP BY h.EVENT_NAME
|
||||
HAVING TOTAL_WAIT > 0;
|
||||
SELECT i.user, h.operation, SUM(NUMBER_OF_BYTES) bytes
|
||||
FROM performance_schema.EVENTS_WAITS_HISTORY_LONG h
|
||||
INNER JOIN performance_schema.PROCESSLIST p USING (THREAD_ID)
|
||||
LEFT JOIN information_schema.PROCESSLIST i USING (ID)
|
||||
GROUP BY i.user, h.operation
|
||||
HAVING BYTES > 0
|
||||
ORDER BY i.user, h.operation;
|
113
mysql-test/suite/perfschema/r/func_mutex.result
Normal file
113
mysql-test/suite/perfschema/r/func_mutex.result
Normal file
@ -0,0 +1,113 @@
|
||||
UPDATE performance_schema.SETUP_INSTRUMENTS SET enabled = 'NO', timed = 'YES';
|
||||
UPDATE performance_schema.SETUP_INSTRUMENTS SET enabled = 'YES'
|
||||
WHERE name LIKE 'wait/synch/mutex/%'
|
||||
OR name LIKE 'wait/synch/rwlock/%';
|
||||
DROP TABLE IF EXISTS t1;
|
||||
CREATE TABLE t1 (id INT PRIMARY KEY, b CHAR(100) DEFAULT 'initial value')
|
||||
ENGINE=MyISAM;
|
||||
INSERT INTO t1 (id) VALUES (1), (2), (3), (4), (5), (6), (7), (8);
|
||||
TRUNCATE TABLE performance_schema.EVENTS_WAITS_HISTORY_LONG;
|
||||
TRUNCATE TABLE performance_schema.EVENTS_WAITS_HISTORY;
|
||||
TRUNCATE TABLE performance_schema.EVENTS_WAITS_CURRENT;
|
||||
SELECT * FROM t1 WHERE id = 1;
|
||||
id b
|
||||
1 initial value
|
||||
SET @before_count = (SELECT SUM(TIMER_WAIT)
|
||||
FROM performance_schema.EVENTS_WAITS_HISTORY_LONG
|
||||
WHERE (EVENT_NAME = 'wait/synch/mutex/sql/LOCK_open'));
|
||||
SELECT * FROM t1;
|
||||
id b
|
||||
1 initial value
|
||||
2 initial value
|
||||
3 initial value
|
||||
4 initial value
|
||||
5 initial value
|
||||
6 initial value
|
||||
7 initial value
|
||||
8 initial value
|
||||
SET @after_count = (SELECT SUM(TIMER_WAIT)
|
||||
FROM performance_schema.EVENTS_WAITS_HISTORY_LONG
|
||||
WHERE (EVENT_NAME = 'wait/synch/mutex/sql/LOCK_open'));
|
||||
SELECT IF((@after_count - @before_count) > 0, 'Success', 'Failure') test_fm1_timed;
|
||||
test_fm1_timed
|
||||
Success
|
||||
UPDATE performance_schema.SETUP_INSTRUMENTS SET enabled = 'NO'
|
||||
WHERE NAME = 'wait/synch/mutex/sql/LOCK_open';
|
||||
TRUNCATE TABLE performance_schema.EVENTS_WAITS_HISTORY_LONG;
|
||||
TRUNCATE TABLE performance_schema.EVENTS_WAITS_HISTORY;
|
||||
TRUNCATE TABLE performance_schema.EVENTS_WAITS_CURRENT;
|
||||
SELECT * FROM t1 WHERE id = 1;
|
||||
id b
|
||||
1 initial value
|
||||
SET @before_count = (SELECT SUM(TIMER_WAIT)
|
||||
FROM performance_schema.EVENTS_WAITS_HISTORY_LONG
|
||||
WHERE (EVENT_NAME = 'wait/synch/mutex/sql/LOCK_open'));
|
||||
SELECT * FROM t1;
|
||||
id b
|
||||
1 initial value
|
||||
2 initial value
|
||||
3 initial value
|
||||
4 initial value
|
||||
5 initial value
|
||||
6 initial value
|
||||
7 initial value
|
||||
8 initial value
|
||||
SET @after_count = (SELECT SUM(TIMER_WAIT)
|
||||
FROM performance_schema.EVENTS_WAITS_HISTORY_LONG
|
||||
WHERE (EVENT_NAME = 'wait/synch/mutex/sql/LOCK_open'));
|
||||
SELECT IF((COALESCE(@after_count, 0) - COALESCE(@before_count, 0)) = 0, 'Success', 'Failure') test_fm2_timed;
|
||||
test_fm2_timed
|
||||
Success
|
||||
TRUNCATE TABLE performance_schema.EVENTS_WAITS_HISTORY_LONG;
|
||||
TRUNCATE TABLE performance_schema.EVENTS_WAITS_HISTORY;
|
||||
TRUNCATE TABLE performance_schema.EVENTS_WAITS_CURRENT;
|
||||
SELECT * FROM t1 WHERE id = 1;
|
||||
id b
|
||||
1 initial value
|
||||
SET @before_count = (SELECT SUM(TIMER_WAIT)
|
||||
FROM performance_schema.EVENTS_WAITS_HISTORY_LONG
|
||||
WHERE (EVENT_NAME = 'wait/synch/rwlock/sql/LOCK_grant'));
|
||||
SELECT * FROM t1;
|
||||
id b
|
||||
1 initial value
|
||||
2 initial value
|
||||
3 initial value
|
||||
4 initial value
|
||||
5 initial value
|
||||
6 initial value
|
||||
7 initial value
|
||||
8 initial value
|
||||
SET @after_count = (SELECT SUM(TIMER_WAIT)
|
||||
FROM performance_schema.EVENTS_WAITS_HISTORY_LONG
|
||||
WHERE (EVENT_NAME = 'wait/synch/rwlock/sql/LOCK_grant'));
|
||||
SELECT IF((@after_count - @before_count) > 0, 'Success', 'Failure') test_fm1_rw_timed;
|
||||
test_fm1_rw_timed
|
||||
Success
|
||||
UPDATE performance_schema.SETUP_INSTRUMENTS SET enabled = 'NO'
|
||||
WHERE NAME = 'wait/synch/rwlock/sql/LOCK_grant';
|
||||
TRUNCATE TABLE performance_schema.EVENTS_WAITS_HISTORY_LONG;
|
||||
TRUNCATE TABLE performance_schema.EVENTS_WAITS_HISTORY;
|
||||
TRUNCATE TABLE performance_schema.EVENTS_WAITS_CURRENT;
|
||||
SELECT * FROM t1 WHERE id = 1;
|
||||
id b
|
||||
1 initial value
|
||||
SET @before_count = (SELECT SUM(TIMER_WAIT)
|
||||
FROM performance_schema.EVENTS_WAITS_HISTORY_LONG
|
||||
WHERE (EVENT_NAME = 'wait/synch/rwlock/sql/LOCK_grant'));
|
||||
SELECT * FROM t1;
|
||||
id b
|
||||
1 initial value
|
||||
2 initial value
|
||||
3 initial value
|
||||
4 initial value
|
||||
5 initial value
|
||||
6 initial value
|
||||
7 initial value
|
||||
8 initial value
|
||||
SET @after_count = (SELECT SUM(TIMER_WAIT)
|
||||
FROM performance_schema.EVENTS_WAITS_HISTORY_LONG
|
||||
WHERE (EVENT_NAME = 'wait/synch/rwlock/sql/LOCK_grant'));
|
||||
SELECT IF((COALESCE(@after_count, 0) - COALESCE(@before_count, 0)) = 0, 'Success', 'Failure') test_fm2_rw_timed;
|
||||
test_fm2_rw_timed
|
||||
Success
|
||||
DROP TABLE t1;
|
33
mysql-test/suite/perfschema/r/global_read_lock.result
Normal file
33
mysql-test/suite/perfschema/r/global_read_lock.result
Normal file
@ -0,0 +1,33 @@
|
||||
use performance_schema;
|
||||
grant SELECT, UPDATE, LOCK TABLES on performance_schema.* to pfsuser@localhost;
|
||||
flush privileges;
|
||||
connect (con1, localhost, pfsuser, , test);
|
||||
lock tables performance_schema.SETUP_INSTRUMENTS read;
|
||||
select * from performance_schema.SETUP_INSTRUMENTS;
|
||||
unlock tables;
|
||||
lock tables performance_schema.SETUP_INSTRUMENTS write;
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='NO';
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='YES';
|
||||
unlock tables;
|
||||
connection default;
|
||||
flush tables with read lock;
|
||||
connection con1;
|
||||
lock tables performance_schema.SETUP_INSTRUMENTS read;
|
||||
select * from performance_schema.SETUP_INSTRUMENTS;
|
||||
unlock tables;
|
||||
lock tables performance_schema.SETUP_INSTRUMENTS write;
|
||||
connection default;
|
||||
select event_name,
|
||||
left(source, locate(":", source)) as short_source,
|
||||
timer_end, timer_wait, operation
|
||||
from performance_schema.EVENTS_WAITS_CURRENT
|
||||
where event_name like "wait/synch/cond/sql/COND_global_read_lock";
|
||||
event_name short_source timer_end timer_wait operation
|
||||
wait/synch/cond/sql/COND_global_read_lock lock.cc: NULL NULL wait
|
||||
unlock tables;
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='NO';
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='YES';
|
||||
unlock tables;
|
||||
connection default;
|
||||
drop user pfsuser@localhost;
|
||||
flush privileges;
|
198
mysql-test/suite/perfschema/r/information_schema.result
Normal file
198
mysql-test/suite/perfschema/r/information_schema.result
Normal file
@ -0,0 +1,198 @@
|
||||
select TABLE_SCHEMA, upper(TABLE_NAME), TABLE_CATALOG
|
||||
from information_schema.tables
|
||||
where TABLE_SCHEMA='performance_schema';
|
||||
TABLE_SCHEMA upper(TABLE_NAME) TABLE_CATALOG
|
||||
performance_schema COND_INSTANCES def
|
||||
performance_schema EVENTS_WAITS_CURRENT def
|
||||
performance_schema EVENTS_WAITS_HISTORY def
|
||||
performance_schema EVENTS_WAITS_HISTORY_LONG def
|
||||
performance_schema EVENTS_WAITS_SUMMARY_BY_EVENT_NAME def
|
||||
performance_schema EVENTS_WAITS_SUMMARY_BY_INSTANCE def
|
||||
performance_schema EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME def
|
||||
performance_schema FILE_INSTANCES def
|
||||
performance_schema FILE_SUMMARY_BY_EVENT_NAME def
|
||||
performance_schema FILE_SUMMARY_BY_INSTANCE def
|
||||
performance_schema MUTEX_INSTANCES def
|
||||
performance_schema PERFORMANCE_TIMERS def
|
||||
performance_schema PROCESSLIST def
|
||||
performance_schema RWLOCK_INSTANCES def
|
||||
performance_schema SETUP_CONSUMERS def
|
||||
performance_schema SETUP_INSTRUMENTS def
|
||||
performance_schema SETUP_OBJECTS def
|
||||
performance_schema SETUP_TIMERS def
|
||||
select upper(TABLE_NAME), TABLE_TYPE, ENGINE
|
||||
from information_schema.tables
|
||||
where TABLE_SCHEMA='performance_schema';
|
||||
upper(TABLE_NAME) TABLE_TYPE ENGINE
|
||||
COND_INSTANCES BASE TABLE PERFORMANCE_SCHEMA
|
||||
EVENTS_WAITS_CURRENT BASE TABLE PERFORMANCE_SCHEMA
|
||||
EVENTS_WAITS_HISTORY BASE TABLE PERFORMANCE_SCHEMA
|
||||
EVENTS_WAITS_HISTORY_LONG BASE TABLE PERFORMANCE_SCHEMA
|
||||
EVENTS_WAITS_SUMMARY_BY_EVENT_NAME BASE TABLE PERFORMANCE_SCHEMA
|
||||
EVENTS_WAITS_SUMMARY_BY_INSTANCE BASE TABLE PERFORMANCE_SCHEMA
|
||||
EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME BASE TABLE PERFORMANCE_SCHEMA
|
||||
FILE_INSTANCES BASE TABLE PERFORMANCE_SCHEMA
|
||||
FILE_SUMMARY_BY_EVENT_NAME BASE TABLE PERFORMANCE_SCHEMA
|
||||
FILE_SUMMARY_BY_INSTANCE BASE TABLE PERFORMANCE_SCHEMA
|
||||
MUTEX_INSTANCES BASE TABLE PERFORMANCE_SCHEMA
|
||||
PERFORMANCE_TIMERS BASE TABLE PERFORMANCE_SCHEMA
|
||||
PROCESSLIST BASE TABLE PERFORMANCE_SCHEMA
|
||||
RWLOCK_INSTANCES BASE TABLE PERFORMANCE_SCHEMA
|
||||
SETUP_CONSUMERS BASE TABLE PERFORMANCE_SCHEMA
|
||||
SETUP_INSTRUMENTS BASE TABLE PERFORMANCE_SCHEMA
|
||||
SETUP_OBJECTS BASE TABLE PERFORMANCE_SCHEMA
|
||||
SETUP_TIMERS BASE TABLE PERFORMANCE_SCHEMA
|
||||
select upper(TABLE_NAME), VERSION, ROW_FORMAT
|
||||
from information_schema.tables
|
||||
where TABLE_SCHEMA='performance_schema';
|
||||
upper(TABLE_NAME) VERSION ROW_FORMAT
|
||||
COND_INSTANCES 10 Dynamic
|
||||
EVENTS_WAITS_CURRENT 10 Dynamic
|
||||
EVENTS_WAITS_HISTORY 10 Dynamic
|
||||
EVENTS_WAITS_HISTORY_LONG 10 Dynamic
|
||||
EVENTS_WAITS_SUMMARY_BY_EVENT_NAME 10 Dynamic
|
||||
EVENTS_WAITS_SUMMARY_BY_INSTANCE 10 Dynamic
|
||||
EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME 10 Dynamic
|
||||
FILE_INSTANCES 10 Dynamic
|
||||
FILE_SUMMARY_BY_EVENT_NAME 10 Dynamic
|
||||
FILE_SUMMARY_BY_INSTANCE 10 Dynamic
|
||||
MUTEX_INSTANCES 10 Dynamic
|
||||
PERFORMANCE_TIMERS 10 Fixed
|
||||
PROCESSLIST 10 Dynamic
|
||||
RWLOCK_INSTANCES 10 Dynamic
|
||||
SETUP_CONSUMERS 10 Dynamic
|
||||
SETUP_INSTRUMENTS 10 Dynamic
|
||||
SETUP_OBJECTS 10 Dynamic
|
||||
SETUP_TIMERS 10 Dynamic
|
||||
select upper(TABLE_NAME), TABLE_ROWS, AVG_ROW_LENGTH
|
||||
from information_schema.tables
|
||||
where TABLE_SCHEMA='performance_schema';
|
||||
upper(TABLE_NAME) TABLE_ROWS AVG_ROW_LENGTH
|
||||
COND_INSTANCES 1000 0
|
||||
EVENTS_WAITS_CURRENT 1000 0
|
||||
EVENTS_WAITS_HISTORY 1000 0
|
||||
EVENTS_WAITS_HISTORY_LONG 10000 0
|
||||
EVENTS_WAITS_SUMMARY_BY_EVENT_NAME 1000 0
|
||||
EVENTS_WAITS_SUMMARY_BY_INSTANCE 1000 0
|
||||
EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME 1000 0
|
||||
FILE_INSTANCES 1000 0
|
||||
FILE_SUMMARY_BY_EVENT_NAME 1000 0
|
||||
FILE_SUMMARY_BY_INSTANCE 1000 0
|
||||
MUTEX_INSTANCES 1000 0
|
||||
PERFORMANCE_TIMERS 5 0
|
||||
PROCESSLIST 1000 0
|
||||
RWLOCK_INSTANCES 1000 0
|
||||
SETUP_CONSUMERS 8 0
|
||||
SETUP_INSTRUMENTS 1000 0
|
||||
SETUP_OBJECTS 1000 0
|
||||
SETUP_TIMERS 1 0
|
||||
select upper(TABLE_NAME), DATA_LENGTH, MAX_DATA_LENGTH
|
||||
from information_schema.tables
|
||||
where TABLE_SCHEMA='performance_schema';
|
||||
upper(TABLE_NAME) DATA_LENGTH MAX_DATA_LENGTH
|
||||
COND_INSTANCES 0 0
|
||||
EVENTS_WAITS_CURRENT 0 0
|
||||
EVENTS_WAITS_HISTORY 0 0
|
||||
EVENTS_WAITS_HISTORY_LONG 0 0
|
||||
EVENTS_WAITS_SUMMARY_BY_EVENT_NAME 0 0
|
||||
EVENTS_WAITS_SUMMARY_BY_INSTANCE 0 0
|
||||
EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME 0 0
|
||||
FILE_INSTANCES 0 0
|
||||
FILE_SUMMARY_BY_EVENT_NAME 0 0
|
||||
FILE_SUMMARY_BY_INSTANCE 0 0
|
||||
MUTEX_INSTANCES 0 0
|
||||
PERFORMANCE_TIMERS 0 0
|
||||
PROCESSLIST 0 0
|
||||
RWLOCK_INSTANCES 0 0
|
||||
SETUP_CONSUMERS 0 0
|
||||
SETUP_INSTRUMENTS 0 0
|
||||
SETUP_OBJECTS 0 0
|
||||
SETUP_TIMERS 0 0
|
||||
select upper(TABLE_NAME), INDEX_LENGTH, DATA_FREE, AUTO_INCREMENT
|
||||
from information_schema.tables
|
||||
where TABLE_SCHEMA='performance_schema';
|
||||
upper(TABLE_NAME) INDEX_LENGTH DATA_FREE AUTO_INCREMENT
|
||||
COND_INSTANCES 0 0 NULL
|
||||
EVENTS_WAITS_CURRENT 0 0 NULL
|
||||
EVENTS_WAITS_HISTORY 0 0 NULL
|
||||
EVENTS_WAITS_HISTORY_LONG 0 0 NULL
|
||||
EVENTS_WAITS_SUMMARY_BY_EVENT_NAME 0 0 NULL
|
||||
EVENTS_WAITS_SUMMARY_BY_INSTANCE 0 0 NULL
|
||||
EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME 0 0 NULL
|
||||
FILE_INSTANCES 0 0 NULL
|
||||
FILE_SUMMARY_BY_EVENT_NAME 0 0 NULL
|
||||
FILE_SUMMARY_BY_INSTANCE 0 0 NULL
|
||||
MUTEX_INSTANCES 0 0 NULL
|
||||
PERFORMANCE_TIMERS 0 0 NULL
|
||||
PROCESSLIST 0 0 NULL
|
||||
RWLOCK_INSTANCES 0 0 NULL
|
||||
SETUP_CONSUMERS 0 0 NULL
|
||||
SETUP_INSTRUMENTS 0 0 NULL
|
||||
SETUP_OBJECTS 0 0 NULL
|
||||
SETUP_TIMERS 0 0 NULL
|
||||
select upper(TABLE_NAME), CREATE_TIME, UPDATE_TIME, CHECK_TIME
|
||||
from information_schema.tables
|
||||
where TABLE_SCHEMA='performance_schema';
|
||||
upper(TABLE_NAME) CREATE_TIME UPDATE_TIME CHECK_TIME
|
||||
COND_INSTANCES NULL NULL NULL
|
||||
EVENTS_WAITS_CURRENT NULL NULL NULL
|
||||
EVENTS_WAITS_HISTORY NULL NULL NULL
|
||||
EVENTS_WAITS_HISTORY_LONG NULL NULL NULL
|
||||
EVENTS_WAITS_SUMMARY_BY_EVENT_NAME NULL NULL NULL
|
||||
EVENTS_WAITS_SUMMARY_BY_INSTANCE NULL NULL NULL
|
||||
EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME NULL NULL NULL
|
||||
FILE_INSTANCES NULL NULL NULL
|
||||
FILE_SUMMARY_BY_EVENT_NAME NULL NULL NULL
|
||||
FILE_SUMMARY_BY_INSTANCE NULL NULL NULL
|
||||
MUTEX_INSTANCES NULL NULL NULL
|
||||
PERFORMANCE_TIMERS NULL NULL NULL
|
||||
PROCESSLIST NULL NULL NULL
|
||||
RWLOCK_INSTANCES NULL NULL NULL
|
||||
SETUP_CONSUMERS NULL NULL NULL
|
||||
SETUP_INSTRUMENTS NULL NULL NULL
|
||||
SETUP_OBJECTS NULL NULL NULL
|
||||
SETUP_TIMERS NULL NULL NULL
|
||||
select upper(TABLE_NAME), TABLE_COLLATION, CHECKSUM
|
||||
from information_schema.tables
|
||||
where TABLE_SCHEMA='performance_schema';
|
||||
upper(TABLE_NAME) TABLE_COLLATION CHECKSUM
|
||||
COND_INSTANCES utf8_general_ci NULL
|
||||
EVENTS_WAITS_CURRENT utf8_general_ci NULL
|
||||
EVENTS_WAITS_HISTORY utf8_general_ci NULL
|
||||
EVENTS_WAITS_HISTORY_LONG utf8_general_ci NULL
|
||||
EVENTS_WAITS_SUMMARY_BY_EVENT_NAME utf8_general_ci NULL
|
||||
EVENTS_WAITS_SUMMARY_BY_INSTANCE utf8_general_ci NULL
|
||||
EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME utf8_general_ci NULL
|
||||
FILE_INSTANCES utf8_general_ci NULL
|
||||
FILE_SUMMARY_BY_EVENT_NAME utf8_general_ci NULL
|
||||
FILE_SUMMARY_BY_INSTANCE utf8_general_ci NULL
|
||||
MUTEX_INSTANCES utf8_general_ci NULL
|
||||
PERFORMANCE_TIMERS utf8_general_ci NULL
|
||||
PROCESSLIST utf8_general_ci NULL
|
||||
RWLOCK_INSTANCES utf8_general_ci NULL
|
||||
SETUP_CONSUMERS utf8_general_ci NULL
|
||||
SETUP_INSTRUMENTS utf8_general_ci NULL
|
||||
SETUP_OBJECTS utf8_general_ci NULL
|
||||
SETUP_TIMERS utf8_general_ci NULL
|
||||
select upper(TABLE_NAME), TABLE_COMMENT
|
||||
from information_schema.tables
|
||||
where TABLE_SCHEMA='performance_schema';
|
||||
upper(TABLE_NAME) TABLE_COMMENT
|
||||
COND_INSTANCES
|
||||
EVENTS_WAITS_CURRENT
|
||||
EVENTS_WAITS_HISTORY
|
||||
EVENTS_WAITS_HISTORY_LONG
|
||||
EVENTS_WAITS_SUMMARY_BY_EVENT_NAME
|
||||
EVENTS_WAITS_SUMMARY_BY_INSTANCE
|
||||
EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME
|
||||
FILE_INSTANCES
|
||||
FILE_SUMMARY_BY_EVENT_NAME
|
||||
FILE_SUMMARY_BY_INSTANCE
|
||||
MUTEX_INSTANCES
|
||||
PERFORMANCE_TIMERS
|
||||
PROCESSLIST
|
||||
RWLOCK_INSTANCES
|
||||
SETUP_CONSUMERS
|
||||
SETUP_INSTRUMENTS
|
||||
SETUP_OBJECTS
|
||||
SETUP_TIMERS
|
13
mysql-test/suite/perfschema/r/misc.result
Normal file
13
mysql-test/suite/perfschema/r/misc.result
Normal file
@ -0,0 +1,13 @@
|
||||
SELECT EVENT_ID FROM performance_schema.EVENTS_WAITS_CURRENT
|
||||
WHERE THREAD_ID IN
|
||||
(SELECT THREAD_ID FROM performance_schema.PROCESSLIST)
|
||||
AND EVENT_NAME IN
|
||||
(SELECT NAME FROM performance_schema.SETUP_INSTRUMENTS
|
||||
WHERE NAME LIKE "wait/synch/%")
|
||||
LIMIT 1;
|
||||
create table test.t1(a int) engine=performance_schema;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
create table test.t1 like performance_schema.EVENTS_WAITS_CURRENT;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
create table performance_schema.t1(a int);
|
||||
ERROR 42000: CREATE command denied to user 'root'@'localhost' for table 't1'
|
59
mysql-test/suite/perfschema/r/myisam_file_io.result
Normal file
59
mysql-test/suite/perfschema/r/myisam_file_io.result
Normal file
@ -0,0 +1,59 @@
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='NO';
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='YES'
|
||||
where name like "wait/io/file/myisam/%";
|
||||
update performance_schema.SETUP_CONSUMERS
|
||||
set enabled='YES';
|
||||
truncate table performance_schema.EVENTS_WAITS_HISTORY_LONG;
|
||||
drop table if exists test.no_index_tab;
|
||||
create table test.no_index_tab ( a varchar(255), b int ) engine=myisam;
|
||||
insert into no_index_tab set a = 'foo', b = 1;
|
||||
insert into no_index_tab set a = 'foo', b = 1;
|
||||
insert into no_index_tab set a = 'foo', b = 1;
|
||||
select event_name,
|
||||
left(source, locate(":", source)) as short_source,
|
||||
operation, number_of_bytes,
|
||||
substring(object_name, locate("no_index_tab", object_name)) as short_name
|
||||
from performance_schema.EVENTS_WAITS_HISTORY_LONG
|
||||
where operation not like "tell"
|
||||
order by thread_id, event_id;
|
||||
event_name short_source operation number_of_bytes short_name
|
||||
wait/io/file/myisam/kfile mi_create.c: create NULL no_index_tab.MYI
|
||||
wait/io/file/myisam/dfile mi_create.c: create NULL no_index_tab.MYD
|
||||
wait/io/file/myisam/kfile mi_open.c: write 176 no_index_tab.MYI
|
||||
wait/io/file/myisam/kfile mi_open.c: write 100 no_index_tab.MYI
|
||||
wait/io/file/myisam/kfile mi_open.c: write 7 no_index_tab.MYI
|
||||
wait/io/file/myisam/kfile mi_open.c: write 7 no_index_tab.MYI
|
||||
wait/io/file/myisam/kfile mi_open.c: write 7 no_index_tab.MYI
|
||||
wait/io/file/myisam/kfile mi_create.c: chsize 1024 no_index_tab.MYI
|
||||
wait/io/file/myisam/dfile mi_create.c: close NULL no_index_tab.MYD
|
||||
wait/io/file/myisam/kfile mi_create.c: close NULL no_index_tab.MYI
|
||||
wait/io/file/myisam/kfile mi_open.c: open NULL no_index_tab.MYI
|
||||
wait/io/file/myisam/kfile mi_open.c: read 24 no_index_tab.MYI
|
||||
wait/io/file/myisam/kfile mi_open.c: seek NULL no_index_tab.MYI
|
||||
wait/io/file/myisam/kfile mi_open.c: read 297 no_index_tab.MYI
|
||||
wait/io/file/myisam/dfile mi_open.c: open NULL no_index_tab.MYD
|
||||
wait/io/file/myisam/kfile mi_locking.c: write 3 no_index_tab.MYI
|
||||
wait/io/file/myisam/dfile mi_dynrec.c: write 20 no_index_tab.MYD
|
||||
wait/io/file/myisam/kfile mi_open.c: write 124 no_index_tab.MYI
|
||||
wait/io/file/myisam/dfile mi_dynrec.c: write 20 no_index_tab.MYD
|
||||
wait/io/file/myisam/kfile mi_open.c: write 124 no_index_tab.MYI
|
||||
wait/io/file/myisam/dfile mi_dynrec.c: write 20 no_index_tab.MYD
|
||||
wait/io/file/myisam/kfile mi_open.c: write 124 no_index_tab.MYI
|
||||
show status like 'performance_schema_%';
|
||||
Variable_name Value
|
||||
Performance_schema_cond_classes_lost 0
|
||||
Performance_schema_cond_instances_lost 0
|
||||
Performance_schema_file_classes_lost 0
|
||||
Performance_schema_file_handles_lost 0
|
||||
Performance_schema_file_instances_lost 0
|
||||
Performance_schema_locker_lost 0
|
||||
Performance_schema_mutex_classes_lost 0
|
||||
Performance_schema_mutex_instances_lost 0
|
||||
Performance_schema_rwlock_classes_lost 0
|
||||
Performance_schema_rwlock_instances_lost 0
|
||||
Performance_schema_table_handles_lost 0
|
||||
Performance_schema_table_instances_lost 0
|
||||
Performance_schema_thread_classes_lost 0
|
||||
Performance_schema_thread_instances_lost 0
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='YES';
|
||||
drop table test.no_index_tab;
|
43
mysql-test/suite/perfschema/r/no_threads.result
Normal file
43
mysql-test/suite/perfschema/r/no_threads.result
Normal file
@ -0,0 +1,43 @@
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='NO';
|
||||
update performance_schema.SETUP_CONSUMERS set enabled='YES';
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='YES'
|
||||
where name like "wait/synch/mutex/mysys/THR_LOCK_myisam";
|
||||
drop table if exists test.t1;
|
||||
truncate table performance_schema.EVENTS_WAITS_CURRENT;
|
||||
truncate table performance_schema.EVENTS_WAITS_HISTORY;
|
||||
truncate table performance_schema.EVENTS_WAITS_HISTORY_LONG;
|
||||
show variables like "thread_handling";
|
||||
Variable_name Value
|
||||
thread_handling no-threads
|
||||
create table test.t1(a int) engine=MYISAM;
|
||||
show variables like "performance_schema";
|
||||
Variable_name Value
|
||||
performance_schema ON
|
||||
show variables like "performance_schema_max_thread%";
|
||||
Variable_name Value
|
||||
performance_schema_max_thread_classes 50
|
||||
performance_schema_max_thread_instances 10
|
||||
select count(*) from performance_schema.PROCESSLIST
|
||||
where name like "thread/sql/main";
|
||||
count(*)
|
||||
1
|
||||
select count(*) from performance_schema.PROCESSLIST
|
||||
where name like "thread/sql/OneConnection";
|
||||
count(*)
|
||||
0
|
||||
select event_name, operation,
|
||||
left(source, locate(":", source)) as short_source
|
||||
from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
event_name operation short_source
|
||||
wait/synch/mutex/mysys/THR_LOCK_myisam lock mi_create.c:
|
||||
select event_name, operation,
|
||||
left(source, locate(":", source)) as short_source
|
||||
from performance_schema.EVENTS_WAITS_HISTORY;
|
||||
event_name operation short_source
|
||||
wait/synch/mutex/mysys/THR_LOCK_myisam lock mi_create.c:
|
||||
select event_name, operation,
|
||||
left(source, locate(":", source)) as short_source
|
||||
from performance_schema.EVENTS_WAITS_HISTORY_LONG;
|
||||
event_name operation short_source
|
||||
wait/synch/mutex/mysys/THR_LOCK_myisam lock mi_create.c:
|
||||
drop table test.t1;
|
38
mysql-test/suite/perfschema/r/one_thread_per_con.result
Normal file
38
mysql-test/suite/perfschema/r/one_thread_per_con.result
Normal file
@ -0,0 +1,38 @@
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='YES'
|
||||
where name like "wait/synch/mutex/mysys/THR_LOCK_myisam";
|
||||
drop table if exists test.t1;
|
||||
drop table if exists test.t2;
|
||||
drop table if exists test.t3;
|
||||
truncate table performance_schema.EVENTS_WAITS_HISTORY_LONG;
|
||||
show variables like "thread_handling";
|
||||
Variable_name Value
|
||||
thread_handling one-thread-per-connection
|
||||
"----------------- Connection 1"
|
||||
create table test.t1(a int) engine=MYISAM;
|
||||
"----------------- Connection 2"
|
||||
create table test.t2(a int) engine=MYISAM;
|
||||
"----------------- Connection 3"
|
||||
create table test.t3(a int) engine=MYISAM;
|
||||
"----------------- Connection default"
|
||||
execute stmt_dump_events using @tid;
|
||||
event_name short_source operation number_of_bytes
|
||||
wait/synch/mutex/mysys/THR_LOCK_myisam mi_create.c: lock NULL
|
||||
execute stmt_dump_thread using @tid;
|
||||
name
|
||||
thread/sql/one_connection
|
||||
execute stmt_dump_events using @tid;
|
||||
event_name short_source operation number_of_bytes
|
||||
wait/synch/mutex/mysys/THR_LOCK_myisam mi_create.c: lock NULL
|
||||
execute stmt_dump_thread using @tid;
|
||||
name
|
||||
thread/sql/one_connection
|
||||
execute stmt_dump_events using @tid;
|
||||
event_name short_source operation number_of_bytes
|
||||
wait/synch/mutex/mysys/THR_LOCK_myisam mi_create.c: lock NULL
|
||||
execute stmt_dump_thread using @tid;
|
||||
name
|
||||
thread/sql/one_connection
|
||||
drop table test.t1;
|
||||
drop table test.t2;
|
||||
drop table test.t3;
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='YES';
|
577
mysql-test/suite/perfschema/r/privilege.result
Normal file
577
mysql-test/suite/perfschema/r/privilege.result
Normal file
@ -0,0 +1,577 @@
|
||||
show grants;
|
||||
Grants for root@localhost
|
||||
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
|
||||
grant ALL on *.* to 'pfs_user_1'@localhost with GRANT OPTION;
|
||||
grant ALL on performance_schema.* to 'pfs_user_2'@localhost
|
||||
with GRANT OPTION;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant CREATE on performance_schema.* to 'pfs_user_2'@localhost;
|
||||
grant DROP on performance_schema.* to 'pfs_user_2'@localhost;
|
||||
grant REFERENCES on performance_schema.* to 'pfs_user_2'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant INDEX on performance_schema.* to 'pfs_user_2'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant ALTER on performance_schema.* to 'pfs_user_2'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant CREATE TEMPORARY TABLES on performance_schema.* to 'pfs_user_2'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant EXECUTE on performance_schema.* to 'pfs_user_2'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant CREATE VIEW on performance_schema.* to 'pfs_user_2'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant SHOW VIEW on performance_schema.* to 'pfs_user_2'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant CREATE ROUTINE on performance_schema.* to 'pfs_user_2'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant ALTER ROUTINE on performance_schema.* to 'pfs_user_2'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant EVENT on performance_schema.* to 'pfs_user_2'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant TRIGGER on performance_schema.* to 'pfs_user_2'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant SELECT on performance_schema.* to 'pfs_user_2'@localhost;
|
||||
grant INSERT on performance_schema.* to 'pfs_user_2'@localhost;
|
||||
grant UPDATE on performance_schema.* to 'pfs_user_2'@localhost;
|
||||
grant DELETE on performance_schema.* to 'pfs_user_2'@localhost;
|
||||
grant LOCK TABLES on performance_schema.* to 'pfs_user_2'@localhost;
|
||||
grant ALL on performance_schema.SETUP_INSTRUMENTS to 'pfs_user_3'@localhost
|
||||
with GRANT OPTION;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant CREATE on performance_schema.SETUP_INSTRUMENTS to 'pfs_user_3'@localhost;
|
||||
grant DROP on performance_schema.SETUP_INSTRUMENTS to 'pfs_user_3'@localhost;
|
||||
grant REFERENCES on performance_schema.SETUP_INSTRUMENTS to 'pfs_user_3'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant INDEX on performance_schema.SETUP_INSTRUMENTS to 'pfs_user_3'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant ALTER on performance_schema.SETUP_INSTRUMENTS to 'pfs_user_3'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant CREATE VIEW on performance_schema.SETUP_INSTRUMENTS to 'pfs_user_3'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant SHOW VIEW on performance_schema.SETUP_INSTRUMENTS to 'pfs_user_3'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant TRIGGER on performance_schema.SETUP_INSTRUMENTS to 'pfs_user_3'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant INSERT on performance_schema.SETUP_INSTRUMENTS to 'pfs_user_3'@localhost;
|
||||
ERROR 42000: INSERT,GRANT command denied to user 'root'@'localhost' for table 'SETUP_INSTRUMENTS'
|
||||
grant DELETE on performance_schema.SETUP_INSTRUMENTS to 'pfs_user_3'@localhost;
|
||||
ERROR 42000: DELETE,GRANT command denied to user 'root'@'localhost' for table 'SETUP_INSTRUMENTS'
|
||||
grant SELECT on performance_schema.SETUP_INSTRUMENTS to 'pfs_user_3'@localhost
|
||||
with GRANT OPTION;
|
||||
grant UPDATE on performance_schema.SETUP_INSTRUMENTS to 'pfs_user_3'@localhost
|
||||
with GRANT OPTION;
|
||||
grant ALL on performance_schema.EVENTS_WAITS_CURRENT to 'pfs_user_3'@localhost
|
||||
with GRANT OPTION;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant CREATE on performance_schema.EVENTS_WAITS_CURRENT to 'pfs_user_3'@localhost;
|
||||
grant DROP on performance_schema.EVENTS_WAITS_CURRENT to 'pfs_user_3'@localhost;
|
||||
grant REFERENCES on performance_schema.EVENTS_WAITS_CURRENT to 'pfs_user_3'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant INDEX on performance_schema.EVENTS_WAITS_CURRENT to 'pfs_user_3'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant ALTER on performance_schema.EVENTS_WAITS_CURRENT to 'pfs_user_3'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant CREATE VIEW on performance_schema.EVENTS_WAITS_CURRENT to 'pfs_user_3'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant SHOW VIEW on performance_schema.EVENTS_WAITS_CURRENT to 'pfs_user_3'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant TRIGGER on performance_schema.EVENTS_WAITS_CURRENT to 'pfs_user_3'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant INSERT on performance_schema.EVENTS_WAITS_CURRENT to 'pfs_user_3'@localhost;
|
||||
ERROR 42000: INSERT,GRANT command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
grant UPDATE on performance_schema.EVENTS_WAITS_CURRENT to 'pfs_user_3'@localhost;
|
||||
ERROR 42000: UPDATE,GRANT command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
grant DELETE on performance_schema.EVENTS_WAITS_CURRENT to 'pfs_user_3'@localhost;
|
||||
ERROR 42000: DELETE,GRANT command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
grant SELECT on performance_schema.EVENTS_WAITS_CURRENT to 'pfs_user_3'@localhost
|
||||
with GRANT OPTION;
|
||||
grant ALL on performance_schema.FILE_INSTANCES to 'pfs_user_3'@localhost
|
||||
with GRANT OPTION;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant CREATE on performance_schema.FILE_INSTANCES to 'pfs_user_3'@localhost;
|
||||
grant DROP on performance_schema.FILE_INSTANCES to 'pfs_user_3'@localhost;
|
||||
grant REFERENCES on performance_schema.FILE_INSTANCES to 'pfs_user_3'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant INDEX on performance_schema.FILE_INSTANCES to 'pfs_user_3'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant ALTER on performance_schema.FILE_INSTANCES to 'pfs_user_3'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant CREATE VIEW on performance_schema.FILE_INSTANCES to 'pfs_user_3'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant SHOW VIEW on performance_schema.FILE_INSTANCES to 'pfs_user_3'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant TRIGGER on performance_schema.FILE_INSTANCES to 'pfs_user_3'@localhost;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
grant INSERT on performance_schema.FILE_INSTANCES to 'pfs_user_3'@localhost;
|
||||
ERROR 42000: INSERT,GRANT command denied to user 'root'@'localhost' for table 'FILE_INSTANCES'
|
||||
grant UPDATE on performance_schema.FILE_INSTANCES to 'pfs_user_3'@localhost;
|
||||
ERROR 42000: UPDATE,GRANT command denied to user 'root'@'localhost' for table 'FILE_INSTANCES'
|
||||
grant DELETE on performance_schema.FILE_INSTANCES to 'pfs_user_3'@localhost;
|
||||
ERROR 42000: DELETE,GRANT command denied to user 'root'@'localhost' for table 'FILE_INSTANCES'
|
||||
grant SELECT on performance_schema.FILE_INSTANCES to 'pfs_user_3'@localhost
|
||||
with GRANT OPTION;
|
||||
grant LOCK TABLES on performance_schema.* to 'pfs_user_3'@localhost
|
||||
with GRANT OPTION;
|
||||
flush privileges;
|
||||
drop table if exists test.t1;
|
||||
rename table performance_schema.SETUP_INSTRUMENTS to test.t1;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.EVENTS_WAITS_CURRENT to test.t1;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.FILE_INSTANCES to test.t1;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.SETUP_INSTRUMENTS to performance_schema.t1;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.EVENTS_WAITS_CURRENT to performance_schema.t1;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.FILE_INSTANCES to performance_schema.t1;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.SETUP_INSTRUMENTS
|
||||
to performance_schema.EVENTS_WAITS_CURRENT;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.EVENTS_WAITS_CURRENT
|
||||
to performance_schema.SETUP_INSTRUMENTS;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
create procedure performance_schema.my_proc() begin end;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
create function performance_schema.my_func() returns int return 0;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
create event performance_schema.my_event on schedule every 15 minute
|
||||
do begin end;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
create trigger performance_schema.bi_setup_instruments
|
||||
before insert on performance_schema.SETUP_INSTRUMENTS
|
||||
for each row begin end;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
create trigger performance_schema.bi_events_waits_current
|
||||
before insert on performance_schema.EVENTS_WAITS_CURRENT
|
||||
for each row begin end;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
create trigger performance_schema.bi_file_instances
|
||||
before insert on performance_schema.FILE_INSTANCES
|
||||
for each row begin end;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
create table test.t1(a int) engine=PERFORMANCE_SCHEMA;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
create table test.t1 like performance_schema.SETUP_INSTRUMENTS;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
create table test.t1 like performance_schema.EVENTS_WAITS_CURRENT;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
create table test.t1 like performance_schema.FILE_INSTANCES;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
insert into performance_schema.SETUP_INSTRUMENTS
|
||||
set name="foo";
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'SETUP_INSTRUMENTS'
|
||||
insert into performance_schema.EVENTS_WAITS_CURRENT
|
||||
set name="foo";
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
insert into performance_schema.FILE_INSTANCES
|
||||
set name="foo";
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'FILE_INSTANCES'
|
||||
delete from performance_schema.SETUP_INSTRUMENTS;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'SETUP_INSTRUMENTS'
|
||||
delete from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
delete from performance_schema.FILE_INSTANCES;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'FILE_INSTANCES'
|
||||
lock table performance_schema.SETUP_INSTRUMENTS read;
|
||||
unlock tables;
|
||||
lock table performance_schema.SETUP_INSTRUMENTS write;
|
||||
unlock tables;
|
||||
lock table performance_schema.EVENTS_WAITS_CURRENT read;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
unlock tables;
|
||||
lock table performance_schema.EVENTS_WAITS_CURRENT write;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
unlock tables;
|
||||
lock table performance_schema.FILE_INSTANCES read;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'FILE_INSTANCES'
|
||||
unlock tables;
|
||||
lock table performance_schema.FILE_INSTANCES write;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'FILE_INSTANCES'
|
||||
unlock tables;
|
||||
#
|
||||
# WL#4818, NFS2: Can use grants to give normal user access
|
||||
# to view data from _CURRENT and _HISTORY tables
|
||||
#
|
||||
# Should work as pfs_user_1 and pfs_user_2, but not as pfs_user_3.
|
||||
# (Except for EVENTS_WAITS_CURRENT, which is granted.)
|
||||
SELECT "can select" FROM performance_schema.EVENTS_WAITS_HISTORY LIMIT 1;
|
||||
can select
|
||||
can select
|
||||
SELECT "can select" FROM performance_schema.EVENTS_WAITS_HISTORY_LONG LIMIT 1;
|
||||
can select
|
||||
can select
|
||||
SELECT "can select" FROM performance_schema.EVENTS_WAITS_CURRENT LIMIT 1;
|
||||
can select
|
||||
can select
|
||||
SELECT "can select" FROM performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE LIMIT 1;
|
||||
can select
|
||||
can select
|
||||
SELECT "can select" FROM performance_schema.FILE_SUMMARY_BY_INSTANCE LIMIT 1;
|
||||
can select
|
||||
can select
|
||||
drop table if exists test.t1;
|
||||
rename table performance_schema.SETUP_INSTRUMENTS to test.t1;
|
||||
ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.EVENTS_WAITS_CURRENT to test.t1;
|
||||
ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.FILE_INSTANCES to test.t1;
|
||||
ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.SETUP_INSTRUMENTS to performance_schema.t1;
|
||||
ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.EVENTS_WAITS_CURRENT to performance_schema.t1;
|
||||
ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.FILE_INSTANCES to performance_schema.t1;
|
||||
ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.SETUP_INSTRUMENTS
|
||||
to performance_schema.EVENTS_WAITS_CURRENT;
|
||||
ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.EVENTS_WAITS_CURRENT
|
||||
to performance_schema.SETUP_INSTRUMENTS;
|
||||
ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema'
|
||||
create procedure performance_schema.my_proc() begin end;
|
||||
ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema'
|
||||
create function performance_schema.my_func() returns int return 0;
|
||||
ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema'
|
||||
create event performance_schema.my_event on schedule every 15 minute
|
||||
do begin end;
|
||||
ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema'
|
||||
create trigger performance_schema.bi_setup_instruments
|
||||
before insert on performance_schema.SETUP_INSTRUMENTS
|
||||
for each row begin end;
|
||||
ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema'
|
||||
create trigger performance_schema.bi_events_waits_current
|
||||
before insert on performance_schema.EVENTS_WAITS_CURRENT
|
||||
for each row begin end;
|
||||
ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema'
|
||||
create trigger performance_schema.bi_file_instances
|
||||
before insert on performance_schema.FILE_INSTANCES
|
||||
for each row begin end;
|
||||
ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema'
|
||||
create table test.t1(a int) engine=PERFORMANCE_SCHEMA;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
create table test.t1 like performance_schema.SETUP_INSTRUMENTS;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
create table test.t1 like performance_schema.EVENTS_WAITS_CURRENT;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
create table test.t1 like performance_schema.FILE_INSTANCES;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
insert into performance_schema.SETUP_INSTRUMENTS
|
||||
set name="foo";
|
||||
ERROR 42000: INSERT command denied to user 'pfs_user_1'@'localhost' for table 'SETUP_INSTRUMENTS'
|
||||
insert into performance_schema.EVENTS_WAITS_CURRENT
|
||||
set name="foo";
|
||||
ERROR 42000: INSERT command denied to user 'pfs_user_1'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
insert into performance_schema.FILE_INSTANCES
|
||||
set name="foo";
|
||||
ERROR 42000: INSERT command denied to user 'pfs_user_1'@'localhost' for table 'FILE_INSTANCES'
|
||||
delete from performance_schema.SETUP_INSTRUMENTS;
|
||||
ERROR 42000: DELETE command denied to user 'pfs_user_1'@'localhost' for table 'SETUP_INSTRUMENTS'
|
||||
delete from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
ERROR 42000: DELETE command denied to user 'pfs_user_1'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
delete from performance_schema.FILE_INSTANCES;
|
||||
ERROR 42000: DELETE command denied to user 'pfs_user_1'@'localhost' for table 'FILE_INSTANCES'
|
||||
lock table performance_schema.SETUP_INSTRUMENTS read;
|
||||
unlock tables;
|
||||
lock table performance_schema.SETUP_INSTRUMENTS write;
|
||||
unlock tables;
|
||||
lock table performance_schema.EVENTS_WAITS_CURRENT read;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'pfs_user_1'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
unlock tables;
|
||||
lock table performance_schema.EVENTS_WAITS_CURRENT write;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'pfs_user_1'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
unlock tables;
|
||||
lock table performance_schema.FILE_INSTANCES read;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'pfs_user_1'@'localhost' for table 'FILE_INSTANCES'
|
||||
unlock tables;
|
||||
lock table performance_schema.FILE_INSTANCES write;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'pfs_user_1'@'localhost' for table 'FILE_INSTANCES'
|
||||
unlock tables;
|
||||
#
|
||||
# WL#4818, NFS2: Can use grants to give normal user access
|
||||
# to view data from _CURRENT and _HISTORY tables
|
||||
#
|
||||
# Should work as pfs_user_1 and pfs_user_2, but not as pfs_user_3.
|
||||
# (Except for EVENTS_WAITS_CURRENT, which is granted.)
|
||||
SELECT "can select" FROM performance_schema.EVENTS_WAITS_HISTORY LIMIT 1;
|
||||
can select
|
||||
can select
|
||||
SELECT "can select" FROM performance_schema.EVENTS_WAITS_HISTORY_LONG LIMIT 1;
|
||||
can select
|
||||
can select
|
||||
SELECT "can select" FROM performance_schema.EVENTS_WAITS_CURRENT LIMIT 1;
|
||||
can select
|
||||
can select
|
||||
SELECT "can select" FROM performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE LIMIT 1;
|
||||
can select
|
||||
can select
|
||||
SELECT "can select" FROM performance_schema.FILE_SUMMARY_BY_INSTANCE LIMIT 1;
|
||||
can select
|
||||
can select
|
||||
drop table if exists test.t1;
|
||||
rename table performance_schema.SETUP_INSTRUMENTS to test.t1;
|
||||
ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.EVENTS_WAITS_CURRENT to test.t1;
|
||||
ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.FILE_INSTANCES to test.t1;
|
||||
ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.SETUP_INSTRUMENTS to performance_schema.t1;
|
||||
ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.EVENTS_WAITS_CURRENT to performance_schema.t1;
|
||||
ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.FILE_INSTANCES to performance_schema.t1;
|
||||
ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.SETUP_INSTRUMENTS
|
||||
to performance_schema.EVENTS_WAITS_CURRENT;
|
||||
ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.EVENTS_WAITS_CURRENT
|
||||
to performance_schema.SETUP_INSTRUMENTS;
|
||||
ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema'
|
||||
create procedure performance_schema.my_proc() begin end;
|
||||
ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema'
|
||||
create function performance_schema.my_func() returns int return 0;
|
||||
ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema'
|
||||
create event performance_schema.my_event on schedule every 15 minute
|
||||
do begin end;
|
||||
ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema'
|
||||
create trigger performance_schema.bi_setup_instruments
|
||||
before insert on performance_schema.SETUP_INSTRUMENTS
|
||||
for each row begin end;
|
||||
ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema'
|
||||
create trigger performance_schema.bi_events_waits_current
|
||||
before insert on performance_schema.EVENTS_WAITS_CURRENT
|
||||
for each row begin end;
|
||||
ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema'
|
||||
create trigger performance_schema.bi_file_instances
|
||||
before insert on performance_schema.FILE_INSTANCES
|
||||
for each row begin end;
|
||||
ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema'
|
||||
create table test.t1(a int) engine=PERFORMANCE_SCHEMA;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
create table test.t1 like performance_schema.SETUP_INSTRUMENTS;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
create table test.t1 like performance_schema.EVENTS_WAITS_CURRENT;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
create table test.t1 like performance_schema.FILE_INSTANCES;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
insert into performance_schema.SETUP_INSTRUMENTS
|
||||
set name="foo";
|
||||
ERROR 42000: INSERT command denied to user 'pfs_user_2'@'localhost' for table 'SETUP_INSTRUMENTS'
|
||||
insert into performance_schema.EVENTS_WAITS_CURRENT
|
||||
set name="foo";
|
||||
ERROR 42000: INSERT command denied to user 'pfs_user_2'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
insert into performance_schema.FILE_INSTANCES
|
||||
set name="foo";
|
||||
ERROR 42000: INSERT command denied to user 'pfs_user_2'@'localhost' for table 'FILE_INSTANCES'
|
||||
delete from performance_schema.SETUP_INSTRUMENTS;
|
||||
ERROR 42000: DELETE command denied to user 'pfs_user_2'@'localhost' for table 'SETUP_INSTRUMENTS'
|
||||
delete from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
ERROR 42000: DELETE command denied to user 'pfs_user_2'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
delete from performance_schema.FILE_INSTANCES;
|
||||
ERROR 42000: DELETE command denied to user 'pfs_user_2'@'localhost' for table 'FILE_INSTANCES'
|
||||
lock table performance_schema.SETUP_INSTRUMENTS read;
|
||||
unlock tables;
|
||||
lock table performance_schema.SETUP_INSTRUMENTS write;
|
||||
unlock tables;
|
||||
lock table performance_schema.EVENTS_WAITS_CURRENT read;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'pfs_user_2'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
unlock tables;
|
||||
lock table performance_schema.EVENTS_WAITS_CURRENT write;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'pfs_user_2'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
unlock tables;
|
||||
lock table performance_schema.FILE_INSTANCES read;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'pfs_user_2'@'localhost' for table 'FILE_INSTANCES'
|
||||
unlock tables;
|
||||
lock table performance_schema.FILE_INSTANCES write;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'pfs_user_2'@'localhost' for table 'FILE_INSTANCES'
|
||||
unlock tables;
|
||||
#
|
||||
# WL#4818, NFS2: Can use grants to give normal user access
|
||||
# to view data from _CURRENT and _HISTORY tables
|
||||
#
|
||||
# Should work as pfs_user_1 and pfs_user_2, but not as pfs_user_3.
|
||||
# (Except for EVENTS_WAITS_CURRENT, which is granted.)
|
||||
SELECT "can select" FROM performance_schema.EVENTS_WAITS_HISTORY LIMIT 1;
|
||||
can select
|
||||
can select
|
||||
SELECT "can select" FROM performance_schema.EVENTS_WAITS_HISTORY_LONG LIMIT 1;
|
||||
can select
|
||||
can select
|
||||
SELECT "can select" FROM performance_schema.EVENTS_WAITS_CURRENT LIMIT 1;
|
||||
can select
|
||||
can select
|
||||
SELECT "can select" FROM performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE LIMIT 1;
|
||||
can select
|
||||
can select
|
||||
SELECT "can select" FROM performance_schema.FILE_SUMMARY_BY_INSTANCE LIMIT 1;
|
||||
can select
|
||||
can select
|
||||
drop table if exists test.t1;
|
||||
rename table performance_schema.SETUP_INSTRUMENTS to test.t1;
|
||||
ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.EVENTS_WAITS_CURRENT to test.t1;
|
||||
ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.FILE_INSTANCES to test.t1;
|
||||
ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.SETUP_INSTRUMENTS to performance_schema.t1;
|
||||
ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.EVENTS_WAITS_CURRENT to performance_schema.t1;
|
||||
ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.FILE_INSTANCES to performance_schema.t1;
|
||||
ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.SETUP_INSTRUMENTS
|
||||
to performance_schema.EVENTS_WAITS_CURRENT;
|
||||
ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema'
|
||||
rename table performance_schema.EVENTS_WAITS_CURRENT
|
||||
to performance_schema.SETUP_INSTRUMENTS;
|
||||
ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema'
|
||||
create procedure performance_schema.my_proc() begin end;
|
||||
ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema'
|
||||
create function performance_schema.my_func() returns int return 0;
|
||||
ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema'
|
||||
create event performance_schema.my_event on schedule every 15 minute
|
||||
do begin end;
|
||||
ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema'
|
||||
create trigger performance_schema.bi_setup_instruments
|
||||
before insert on performance_schema.SETUP_INSTRUMENTS
|
||||
for each row begin end;
|
||||
ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema'
|
||||
create trigger performance_schema.bi_events_waits_current
|
||||
before insert on performance_schema.EVENTS_WAITS_CURRENT
|
||||
for each row begin end;
|
||||
ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema'
|
||||
create trigger performance_schema.bi_file_instances
|
||||
before insert on performance_schema.FILE_INSTANCES
|
||||
for each row begin end;
|
||||
ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema'
|
||||
create table test.t1(a int) engine=PERFORMANCE_SCHEMA;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
create table test.t1 like performance_schema.SETUP_INSTRUMENTS;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
create table test.t1 like performance_schema.EVENTS_WAITS_CURRENT;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
create table test.t1 like performance_schema.FILE_INSTANCES;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
insert into performance_schema.SETUP_INSTRUMENTS
|
||||
set name="foo";
|
||||
ERROR 42000: INSERT command denied to user 'pfs_user_3'@'localhost' for table 'SETUP_INSTRUMENTS'
|
||||
insert into performance_schema.EVENTS_WAITS_CURRENT
|
||||
set name="foo";
|
||||
ERROR 42000: INSERT command denied to user 'pfs_user_3'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
insert into performance_schema.FILE_INSTANCES
|
||||
set name="foo";
|
||||
ERROR 42000: INSERT command denied to user 'pfs_user_3'@'localhost' for table 'FILE_INSTANCES'
|
||||
delete from performance_schema.SETUP_INSTRUMENTS;
|
||||
ERROR 42000: DELETE command denied to user 'pfs_user_3'@'localhost' for table 'SETUP_INSTRUMENTS'
|
||||
delete from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
ERROR 42000: DELETE command denied to user 'pfs_user_3'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
delete from performance_schema.FILE_INSTANCES;
|
||||
ERROR 42000: DELETE command denied to user 'pfs_user_3'@'localhost' for table 'FILE_INSTANCES'
|
||||
lock table performance_schema.SETUP_INSTRUMENTS read;
|
||||
unlock tables;
|
||||
lock table performance_schema.SETUP_INSTRUMENTS write;
|
||||
unlock tables;
|
||||
lock table performance_schema.EVENTS_WAITS_CURRENT read;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'pfs_user_3'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
unlock tables;
|
||||
lock table performance_schema.EVENTS_WAITS_CURRENT write;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'pfs_user_3'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
unlock tables;
|
||||
lock table performance_schema.FILE_INSTANCES read;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'pfs_user_3'@'localhost' for table 'FILE_INSTANCES'
|
||||
unlock tables;
|
||||
lock table performance_schema.FILE_INSTANCES write;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'pfs_user_3'@'localhost' for table 'FILE_INSTANCES'
|
||||
unlock tables;
|
||||
#
|
||||
# WL#4818, NFS2: Can use grants to give normal user access
|
||||
# to view data from _CURRENT and _HISTORY tables
|
||||
#
|
||||
# Should work as pfs_user_1 and pfs_user_2, but not as pfs_user_3.
|
||||
# (Except for EVENTS_WAITS_CURRENT, which is granted.)
|
||||
SELECT "can select" FROM performance_schema.EVENTS_WAITS_HISTORY LIMIT 1;
|
||||
ERROR 42000: SELECT command denied to user 'pfs_user_3'@'localhost' for table 'EVENTS_WAITS_HISTORY'
|
||||
SELECT "can select" FROM performance_schema.EVENTS_WAITS_HISTORY_LONG LIMIT 1;
|
||||
ERROR 42000: SELECT command denied to user 'pfs_user_3'@'localhost' for table 'EVENTS_WAITS_HISTORY_LONG'
|
||||
SELECT "can select" FROM performance_schema.EVENTS_WAITS_CURRENT LIMIT 1;
|
||||
can select
|
||||
can select
|
||||
SELECT "can select" FROM performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE LIMIT 1;
|
||||
ERROR 42000: SELECT command denied to user 'pfs_user_3'@'localhost' for table 'EVENTS_WAITS_SUMMARY_BY_INSTANCE'
|
||||
SELECT "can select" FROM performance_schema.FILE_SUMMARY_BY_INSTANCE LIMIT 1;
|
||||
ERROR 42000: SELECT command denied to user 'pfs_user_3'@'localhost' for table 'FILE_SUMMARY_BY_INSTANCE'
|
||||
revoke all privileges, grant option from 'pfs_user_1'@localhost;
|
||||
revoke all privileges, grant option from 'pfs_user_2'@localhost;
|
||||
revoke all privileges, grant option from 'pfs_user_3'@localhost;
|
||||
drop user 'pfs_user_1'@localhost;
|
||||
drop user 'pfs_user_2'@localhost;
|
||||
drop user 'pfs_user_3'@localhost;
|
||||
flush privileges;
|
||||
# Test cases from WL#4818
|
||||
# Setup user
|
||||
CREATE user pfs_user_4;
|
||||
#
|
||||
# WL#4818, NFS4: Normal user does not have access to view data
|
||||
# without grants
|
||||
#
|
||||
# Select as pfs_user_4 should fail without grant
|
||||
SELECT event_id FROM performance_schema.EVENTS_WAITS_HISTORY;
|
||||
ERROR 42000: SELECT command denied to user 'pfs_user_4'@'localhost' for table 'EVENTS_WAITS_HISTORY'
|
||||
SELECT event_id FROM performance_schema.EVENTS_WAITS_HISTORY_LONG;
|
||||
ERROR 42000: SELECT command denied to user 'pfs_user_4'@'localhost' for table 'EVENTS_WAITS_HISTORY_LONG'
|
||||
SELECT event_id FROM performance_schema.EVENTS_WAITS_CURRENT;
|
||||
ERROR 42000: SELECT command denied to user 'pfs_user_4'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
SELECT event_name FROM performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE;
|
||||
ERROR 42000: SELECT command denied to user 'pfs_user_4'@'localhost' for table 'EVENTS_WAITS_SUMMARY_BY_INSTANCE'
|
||||
SELECT event_name FROM performance_schema.FILE_SUMMARY_BY_INSTANCE;
|
||||
ERROR 42000: SELECT command denied to user 'pfs_user_4'@'localhost' for table 'FILE_SUMMARY_BY_INSTANCE'
|
||||
#
|
||||
# WL#4818, NFS3: Normal user does not have access to change what is
|
||||
# instrumented without grants
|
||||
#
|
||||
# User pfs_user_4 should not be allowed to tweak instrumentation without
|
||||
# explicit grant
|
||||
UPDATE performance_schema.SETUP_INSTRUMENTS SET enabled = 'NO', timed = 'YES';
|
||||
ERROR 42000: UPDATE command denied to user 'pfs_user_4'@'localhost' for table 'SETUP_INSTRUMENTS'
|
||||
UPDATE performance_schema.SETUP_INSTRUMENTS SET enabled = 'YES'
|
||||
WHERE name LIKE 'wait/synch/mutex/%'
|
||||
OR name LIKE 'wait/synch/rwlock/%';
|
||||
ERROR 42000: UPDATE command denied to user 'pfs_user_4'@'localhost' for table 'SETUP_INSTRUMENTS'
|
||||
UPDATE performance_schema.SETUP_CONSUMERS SET enabled = 'YES';
|
||||
ERROR 42000: UPDATE command denied to user 'pfs_user_4'@'localhost' for table 'SETUP_CONSUMERS'
|
||||
UPDATE performance_schema.SETUP_TIMERS SET timer_name = 'TICK';
|
||||
ERROR 42000: UPDATE command denied to user 'pfs_user_4'@'localhost' for table 'SETUP_TIMERS'
|
||||
TRUNCATE TABLE performance_schema.EVENTS_WAITS_HISTORY_LONG;
|
||||
ERROR 42000: DROP command denied to user 'pfs_user_4'@'localhost' for table 'EVENTS_WAITS_HISTORY_LONG'
|
||||
TRUNCATE TABLE performance_schema.EVENTS_WAITS_HISTORY;
|
||||
ERROR 42000: DROP command denied to user 'pfs_user_4'@'localhost' for table 'EVENTS_WAITS_HISTORY'
|
||||
TRUNCATE TABLE performance_schema.EVENTS_WAITS_CURRENT;
|
||||
ERROR 42000: DROP command denied to user 'pfs_user_4'@'localhost' for table 'EVENTS_WAITS_CURRENT'
|
||||
#
|
||||
# WL#4814, NFS1: Can use grants to give normal user access
|
||||
# to turn on and off instrumentation
|
||||
#
|
||||
# Grant access to change tables with the root account
|
||||
GRANT UPDATE ON performance_schema.SETUP_CONSUMERS TO pfs_user_4;
|
||||
GRANT UPDATE ON performance_schema.SETUP_TIMERS TO pfs_user_4;
|
||||
GRANT UPDATE, SELECT ON performance_schema.SETUP_INSTRUMENTS TO pfs_user_4;
|
||||
GRANT DROP ON performance_schema.EVENTS_WAITS_CURRENT TO pfs_user_4;
|
||||
GRANT DROP ON performance_schema.EVENTS_WAITS_HISTORY TO pfs_user_4;
|
||||
GRANT DROP ON performance_schema.EVENTS_WAITS_HISTORY_LONG TO pfs_user_4;
|
||||
# User pfs_user_4 should now be allowed to tweak instrumentation
|
||||
UPDATE performance_schema.SETUP_INSTRUMENTS SET enabled = 'NO', timed = 'YES';
|
||||
UPDATE performance_schema.SETUP_INSTRUMENTS SET enabled = 'YES'
|
||||
WHERE name LIKE 'wait/synch/mutex/%'
|
||||
OR name LIKE 'wait/synch/rwlock/%';
|
||||
UPDATE performance_schema.SETUP_CONSUMERS SET enabled = 'YES';
|
||||
UPDATE performance_schema.SETUP_TIMERS SET timer_name = 'TICK';
|
||||
TRUNCATE TABLE performance_schema.EVENTS_WAITS_HISTORY_LONG;
|
||||
TRUNCATE TABLE performance_schema.EVENTS_WAITS_HISTORY;
|
||||
TRUNCATE TABLE performance_schema.EVENTS_WAITS_CURRENT;
|
||||
# Clean up
|
||||
REVOKE ALL PRIVILEGES, GRANT OPTION FROM pfs_user_4;
|
||||
DROP USER pfs_user_4;
|
||||
flush privileges;
|
||||
UPDATE performance_schema.SETUP_INSTRUMENTS SET enabled = 'YES', timed = 'YES';
|
||||
UPDATE performance_schema.SETUP_CONSUMERS SET enabled = 'YES';
|
||||
UPDATE performance_schema.SETUP_TIMERS SET timer_name = 'CYCLE';
|
66
mysql-test/suite/perfschema/r/query_cache.result
Normal file
66
mysql-test/suite/perfschema/r/query_cache.result
Normal file
@ -0,0 +1,66 @@
|
||||
drop table if exists t1;
|
||||
create table t1 (a int not null);
|
||||
insert into t1 values (1), (2), (3);
|
||||
SET GLOBAL query_cache_size=1355776;
|
||||
flush query cache;
|
||||
reset query cache;
|
||||
select * from t1;
|
||||
a
|
||||
1
|
||||
2
|
||||
3
|
||||
show status like "Qcache_queries_in_cache";
|
||||
Variable_name Value
|
||||
Qcache_queries_in_cache 1
|
||||
show status like "Qcache_inserts";
|
||||
Variable_name Value
|
||||
Qcache_inserts 1
|
||||
show status like "Qcache_hits";
|
||||
Variable_name Value
|
||||
Qcache_hits 0
|
||||
select * from t1;
|
||||
a
|
||||
1
|
||||
2
|
||||
3
|
||||
show status like "Qcache_queries_in_cache";
|
||||
Variable_name Value
|
||||
Qcache_queries_in_cache 1
|
||||
show status like "Qcache_inserts";
|
||||
Variable_name Value
|
||||
Qcache_inserts 1
|
||||
show status like "Qcache_hits";
|
||||
Variable_name Value
|
||||
Qcache_hits 1
|
||||
select spins from performance_schema.EVENTS_WAITS_CURRENT order by event_name limit 1;
|
||||
spins
|
||||
NULL
|
||||
select name from performance_schema.SETUP_INSTRUMENTS order by name limit 1;
|
||||
name
|
||||
wait/io/file/csv/data
|
||||
show status like "Qcache_queries_in_cache";
|
||||
Variable_name Value
|
||||
Qcache_queries_in_cache 1
|
||||
show status like "Qcache_inserts";
|
||||
Variable_name Value
|
||||
Qcache_inserts 1
|
||||
show status like "Qcache_hits";
|
||||
Variable_name Value
|
||||
Qcache_hits 1
|
||||
select spins from performance_schema.EVENTS_WAITS_CURRENT order by event_name limit 1;
|
||||
spins
|
||||
NULL
|
||||
select name from performance_schema.SETUP_INSTRUMENTS order by name limit 1;
|
||||
name
|
||||
wait/io/file/csv/data
|
||||
show status like "Qcache_queries_in_cache";
|
||||
Variable_name Value
|
||||
Qcache_queries_in_cache 1
|
||||
show status like "Qcache_inserts";
|
||||
Variable_name Value
|
||||
Qcache_inserts 1
|
||||
show status like "Qcache_hits";
|
||||
Variable_name Value
|
||||
Qcache_hits 1
|
||||
SET GLOBAL query_cache_size= default;
|
||||
drop table t1;
|
49
mysql-test/suite/perfschema/r/read_only.result
Normal file
49
mysql-test/suite/perfschema/r/read_only.result
Normal file
@ -0,0 +1,49 @@
|
||||
use performance_schema;
|
||||
set @start_read_only= @@global.read_only;
|
||||
grant SELECT, UPDATE on performance_schema.* to pfsuser@localhost;
|
||||
flush privileges;
|
||||
connect (con1, localhost, pfsuser, , test);
|
||||
connection default;
|
||||
set global read_only=0;
|
||||
connection con1;
|
||||
select @@global.read_only;
|
||||
@@global.read_only
|
||||
0
|
||||
show grants;
|
||||
Grants for pfsuser@localhost
|
||||
GRANT USAGE ON *.* TO 'pfsuser'@'localhost'
|
||||
GRANT SELECT, UPDATE ON `performance_schema`.* TO 'pfsuser'@'localhost'
|
||||
select * from performance_schema.SETUP_INSTRUMENTS;
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='NO';
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='YES';
|
||||
connection default;
|
||||
set global read_only=1;
|
||||
connection con1;
|
||||
select @@global.read_only;
|
||||
@@global.read_only
|
||||
1
|
||||
show grants;
|
||||
Grants for pfsuser@localhost
|
||||
GRANT USAGE ON *.* TO 'pfsuser'@'localhost'
|
||||
GRANT SELECT, UPDATE ON `performance_schema`.* TO 'pfsuser'@'localhost'
|
||||
select * from performance_schema.SETUP_INSTRUMENTS;
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='NO';
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='YES';
|
||||
connection default;
|
||||
grant super on *.* to pfsuser@localhost;
|
||||
flush privileges;
|
||||
connect (con1, localhost, pfsuser, , test);
|
||||
select @@global.read_only;
|
||||
@@global.read_only
|
||||
1
|
||||
show grants;
|
||||
Grants for pfsuser@localhost
|
||||
GRANT SUPER ON *.* TO 'pfsuser'@'localhost'
|
||||
GRANT SELECT, UPDATE ON `performance_schema`.* TO 'pfsuser'@'localhost'
|
||||
select * from performance_schema.SETUP_INSTRUMENTS;
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='NO';
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='YES';
|
||||
connection default;
|
||||
set global read_only= @start_read_only;
|
||||
drop user pfsuser@localhost;
|
||||
flush privileges;
|
211
mysql-test/suite/perfschema/r/schema.result
Normal file
211
mysql-test/suite/perfschema/r/schema.result
Normal file
@ -0,0 +1,211 @@
|
||||
show databases;
|
||||
Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
performance_schema
|
||||
test
|
||||
use performance_schema;
|
||||
show tables;
|
||||
Tables_in_performance_schema
|
||||
COND_INSTANCES
|
||||
EVENTS_WAITS_CURRENT
|
||||
EVENTS_WAITS_HISTORY
|
||||
EVENTS_WAITS_HISTORY_LONG
|
||||
EVENTS_WAITS_SUMMARY_BY_EVENT_NAME
|
||||
EVENTS_WAITS_SUMMARY_BY_INSTANCE
|
||||
EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME
|
||||
FILE_INSTANCES
|
||||
FILE_SUMMARY_BY_EVENT_NAME
|
||||
FILE_SUMMARY_BY_INSTANCE
|
||||
MUTEX_INSTANCES
|
||||
PERFORMANCE_TIMERS
|
||||
PROCESSLIST
|
||||
RWLOCK_INSTANCES
|
||||
SETUP_CONSUMERS
|
||||
SETUP_INSTRUMENTS
|
||||
SETUP_OBJECTS
|
||||
SETUP_TIMERS
|
||||
show create table COND_INSTANCES;
|
||||
Table Create Table
|
||||
COND_INSTANCES CREATE TABLE `COND_INSTANCES` (
|
||||
`NAME` varchar(128) NOT NULL,
|
||||
`OBJECT_INSTANCE_BEGIN` bigint(20) NOT NULL
|
||||
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
||||
show create table EVENTS_WAITS_CURRENT;
|
||||
Table Create Table
|
||||
EVENTS_WAITS_CURRENT CREATE TABLE `EVENTS_WAITS_CURRENT` (
|
||||
`THREAD_ID` int(11) NOT NULL,
|
||||
`EVENT_ID` bigint(20) unsigned NOT NULL,
|
||||
`EVENT_NAME` varchar(128) NOT NULL,
|
||||
`SOURCE` varchar(64) DEFAULT NULL,
|
||||
`TIMER_START` bigint(20) unsigned DEFAULT NULL,
|
||||
`TIMER_END` bigint(20) unsigned DEFAULT NULL,
|
||||
`TIMER_WAIT` bigint(20) unsigned DEFAULT NULL,
|
||||
`SPINS` int(10) unsigned DEFAULT NULL,
|
||||
`OBJECT_SCHEMA` varchar(64) DEFAULT NULL,
|
||||
`OBJECT_NAME` varchar(512) DEFAULT NULL,
|
||||
`OBJECT_TYPE` varchar(64) DEFAULT NULL,
|
||||
`OBJECT_INSTANCE_BEGIN` bigint(20) NOT NULL,
|
||||
`NESTING_EVENT_ID` bigint(20) unsigned DEFAULT NULL,
|
||||
`OPERATION` varchar(16) NOT NULL,
|
||||
`NUMBER_OF_BYTES` bigint(20) unsigned DEFAULT NULL,
|
||||
`FLAGS` int(10) unsigned DEFAULT NULL
|
||||
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
||||
show create table EVENTS_WAITS_HISTORY;
|
||||
Table Create Table
|
||||
EVENTS_WAITS_HISTORY CREATE TABLE `EVENTS_WAITS_HISTORY` (
|
||||
`THREAD_ID` int(11) NOT NULL,
|
||||
`EVENT_ID` bigint(20) unsigned NOT NULL,
|
||||
`EVENT_NAME` varchar(128) NOT NULL,
|
||||
`SOURCE` varchar(64) DEFAULT NULL,
|
||||
`TIMER_START` bigint(20) unsigned DEFAULT NULL,
|
||||
`TIMER_END` bigint(20) unsigned DEFAULT NULL,
|
||||
`TIMER_WAIT` bigint(20) unsigned DEFAULT NULL,
|
||||
`SPINS` int(10) unsigned DEFAULT NULL,
|
||||
`OBJECT_SCHEMA` varchar(64) DEFAULT NULL,
|
||||
`OBJECT_NAME` varchar(512) DEFAULT NULL,
|
||||
`OBJECT_TYPE` varchar(64) DEFAULT NULL,
|
||||
`OBJECT_INSTANCE_BEGIN` bigint(20) NOT NULL,
|
||||
`NESTING_EVENT_ID` bigint(20) unsigned DEFAULT NULL,
|
||||
`OPERATION` varchar(16) NOT NULL,
|
||||
`NUMBER_OF_BYTES` bigint(20) unsigned DEFAULT NULL,
|
||||
`FLAGS` int(10) unsigned DEFAULT NULL
|
||||
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
||||
show create table EVENTS_WAITS_HISTORY_LONG;
|
||||
Table Create Table
|
||||
EVENTS_WAITS_HISTORY_LONG CREATE TABLE `EVENTS_WAITS_HISTORY_LONG` (
|
||||
`THREAD_ID` int(11) NOT NULL,
|
||||
`EVENT_ID` bigint(20) unsigned NOT NULL,
|
||||
`EVENT_NAME` varchar(128) NOT NULL,
|
||||
`SOURCE` varchar(64) DEFAULT NULL,
|
||||
`TIMER_START` bigint(20) unsigned DEFAULT NULL,
|
||||
`TIMER_END` bigint(20) unsigned DEFAULT NULL,
|
||||
`TIMER_WAIT` bigint(20) unsigned DEFAULT NULL,
|
||||
`SPINS` int(10) unsigned DEFAULT NULL,
|
||||
`OBJECT_SCHEMA` varchar(64) DEFAULT NULL,
|
||||
`OBJECT_NAME` varchar(512) DEFAULT NULL,
|
||||
`OBJECT_TYPE` varchar(64) DEFAULT NULL,
|
||||
`OBJECT_INSTANCE_BEGIN` bigint(20) NOT NULL,
|
||||
`NESTING_EVENT_ID` bigint(20) unsigned DEFAULT NULL,
|
||||
`OPERATION` varchar(16) NOT NULL,
|
||||
`NUMBER_OF_BYTES` bigint(20) unsigned DEFAULT NULL,
|
||||
`FLAGS` int(10) unsigned DEFAULT NULL
|
||||
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
||||
show create table EVENTS_WAITS_SUMMARY_BY_EVENT_NAME;
|
||||
Table Create Table
|
||||
EVENTS_WAITS_SUMMARY_BY_EVENT_NAME CREATE TABLE `EVENTS_WAITS_SUMMARY_BY_EVENT_NAME` (
|
||||
`EVENT_NAME` varchar(128) NOT NULL,
|
||||
`COUNT_STAR` bigint(20) unsigned NOT NULL,
|
||||
`SUM_TIMER_WAIT` bigint(20) unsigned NOT NULL,
|
||||
`MIN_TIMER_WAIT` bigint(20) unsigned NOT NULL,
|
||||
`AVG_TIMER_WAIT` bigint(20) unsigned NOT NULL,
|
||||
`MAX_TIMER_WAIT` bigint(20) unsigned NOT NULL
|
||||
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
||||
show create table EVENTS_WAITS_SUMMARY_BY_INSTANCE;
|
||||
Table Create Table
|
||||
EVENTS_WAITS_SUMMARY_BY_INSTANCE CREATE TABLE `EVENTS_WAITS_SUMMARY_BY_INSTANCE` (
|
||||
`EVENT_NAME` varchar(128) NOT NULL,
|
||||
`OBJECT_INSTANCE_BEGIN` bigint(20) NOT NULL,
|
||||
`COUNT_STAR` bigint(20) unsigned NOT NULL,
|
||||
`SUM_TIMER_WAIT` bigint(20) unsigned NOT NULL,
|
||||
`MIN_TIMER_WAIT` bigint(20) unsigned NOT NULL,
|
||||
`AVG_TIMER_WAIT` bigint(20) unsigned NOT NULL,
|
||||
`MAX_TIMER_WAIT` bigint(20) unsigned NOT NULL
|
||||
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
||||
show create table EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME;
|
||||
Table Create Table
|
||||
EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME CREATE TABLE `EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME` (
|
||||
`THREAD_ID` int(11) NOT NULL,
|
||||
`EVENT_NAME` varchar(128) NOT NULL,
|
||||
`COUNT_STAR` bigint(20) unsigned NOT NULL,
|
||||
`SUM_TIMER_WAIT` bigint(20) unsigned NOT NULL,
|
||||
`MIN_TIMER_WAIT` bigint(20) unsigned NOT NULL,
|
||||
`AVG_TIMER_WAIT` bigint(20) unsigned NOT NULL,
|
||||
`MAX_TIMER_WAIT` bigint(20) unsigned NOT NULL
|
||||
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
||||
show create table FILE_INSTANCES;
|
||||
Table Create Table
|
||||
FILE_INSTANCES CREATE TABLE `FILE_INSTANCES` (
|
||||
`FILE_NAME` varchar(512) NOT NULL,
|
||||
`EVENT_NAME` varchar(128) NOT NULL,
|
||||
`OPEN_COUNT` int(10) unsigned NOT NULL
|
||||
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
||||
show create table FILE_SUMMARY_BY_EVENT_NAME;
|
||||
Table Create Table
|
||||
FILE_SUMMARY_BY_EVENT_NAME CREATE TABLE `FILE_SUMMARY_BY_EVENT_NAME` (
|
||||
`EVENT_NAME` varchar(128) NOT NULL,
|
||||
`COUNT_READ` bigint(20) unsigned NOT NULL,
|
||||
`COUNT_WRITE` bigint(20) unsigned NOT NULL,
|
||||
`SUM_NUMBER_OF_BYTES_READ` bigint(20) unsigned NOT NULL,
|
||||
`SUM_NUMBER_OF_BYTES_WRITE` bigint(20) unsigned NOT NULL
|
||||
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
||||
show create table FILE_SUMMARY_BY_INSTANCE;
|
||||
Table Create Table
|
||||
FILE_SUMMARY_BY_INSTANCE CREATE TABLE `FILE_SUMMARY_BY_INSTANCE` (
|
||||
`FILE_NAME` varchar(512) NOT NULL,
|
||||
`EVENT_NAME` varchar(128) NOT NULL,
|
||||
`COUNT_READ` bigint(20) unsigned NOT NULL,
|
||||
`COUNT_WRITE` bigint(20) unsigned NOT NULL,
|
||||
`SUM_NUMBER_OF_BYTES_READ` bigint(20) unsigned NOT NULL,
|
||||
`SUM_NUMBER_OF_BYTES_WRITE` bigint(20) unsigned NOT NULL
|
||||
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
||||
show create table MUTEX_INSTANCES;
|
||||
Table Create Table
|
||||
MUTEX_INSTANCES CREATE TABLE `MUTEX_INSTANCES` (
|
||||
`NAME` varchar(128) NOT NULL,
|
||||
`OBJECT_INSTANCE_BEGIN` bigint(20) NOT NULL,
|
||||
`LOCKED_BY_THREAD_ID` int(11) DEFAULT NULL
|
||||
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
||||
show create table PERFORMANCE_TIMERS;
|
||||
Table Create Table
|
||||
PERFORMANCE_TIMERS CREATE TABLE `PERFORMANCE_TIMERS` (
|
||||
`TIMER_NAME` enum('CYCLE','NANOSECOND','MICROSECOND','MILLISECOND','TICK') NOT NULL,
|
||||
`TIMER_FREQUENCY` bigint(20) DEFAULT NULL,
|
||||
`TIMER_RESOLUTION` bigint(20) DEFAULT NULL,
|
||||
`TIMER_OVERHEAD` bigint(20) DEFAULT NULL
|
||||
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
||||
show create table PROCESSLIST;
|
||||
Table Create Table
|
||||
PROCESSLIST CREATE TABLE `PROCESSLIST` (
|
||||
`THREAD_ID` int(11) NOT NULL,
|
||||
`ID` int(11) NOT NULL,
|
||||
`NAME` varchar(64) NOT NULL
|
||||
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
||||
show create table RWLOCK_INSTANCES;
|
||||
Table Create Table
|
||||
RWLOCK_INSTANCES CREATE TABLE `RWLOCK_INSTANCES` (
|
||||
`NAME` varchar(128) NOT NULL,
|
||||
`OBJECT_INSTANCE_BEGIN` bigint(20) NOT NULL,
|
||||
`WRITE_LOCKED_BY_THREAD_ID` int(11) DEFAULT NULL,
|
||||
`READ_LOCKED_BY_COUNT` int(10) unsigned NOT NULL
|
||||
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
||||
show create table SETUP_CONSUMERS;
|
||||
Table Create Table
|
||||
SETUP_CONSUMERS CREATE TABLE `SETUP_CONSUMERS` (
|
||||
`NAME` varchar(64) NOT NULL,
|
||||
`ENABLED` enum('YES','NO') NOT NULL
|
||||
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
||||
show create table SETUP_INSTRUMENTS;
|
||||
Table Create Table
|
||||
SETUP_INSTRUMENTS CREATE TABLE `SETUP_INSTRUMENTS` (
|
||||
`NAME` varchar(128) NOT NULL,
|
||||
`ENABLED` enum('YES','NO') NOT NULL,
|
||||
`TIMED` enum('YES','NO') NOT NULL
|
||||
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
||||
show create table SETUP_OBJECTS;
|
||||
Table Create Table
|
||||
SETUP_OBJECTS CREATE TABLE `SETUP_OBJECTS` (
|
||||
`OBJECT_TYPE` varchar(64) DEFAULT NULL,
|
||||
`OBJECT_SCHEMA` varchar(64) DEFAULT NULL,
|
||||
`OBJECT_NAME` varchar(64) DEFAULT NULL,
|
||||
`ENABLED` enum('YES','NO') NOT NULL,
|
||||
`TIMED` enum('YES','NO') NOT NULL,
|
||||
`AGGREGATED` enum('YES','NO') NOT NULL
|
||||
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
||||
show create table SETUP_TIMERS;
|
||||
Table Create Table
|
||||
SETUP_TIMERS CREATE TABLE `SETUP_TIMERS` (
|
||||
`NAME` varchar(64) NOT NULL,
|
||||
`TIMER_NAME` enum('CYCLE','NANOSECOND','MICROSECOND','MILLISECOND','TICK') NOT NULL
|
||||
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
|
97
mysql-test/suite/perfschema/r/selects.result
Normal file
97
mysql-test/suite/perfschema/r/selects.result
Normal file
@ -0,0 +1,97 @@
|
||||
UPDATE performance_schema.SETUP_INSTRUMENTS SET enabled = 'YES', timed = 'YES';
|
||||
DROP TABLE IF EXISTS t1;
|
||||
CREATE TABLE t1 (id INT PRIMARY KEY, b CHAR(100) DEFAULT 'initial value')
|
||||
ENGINE=MyISAM;
|
||||
INSERT INTO t1 (id) VALUES (1), (2), (3), (4), (5), (6), (7), (8);
|
||||
SELECT OPERATION, SUM(NUMBER_OF_BYTES) AS TOTAL
|
||||
FROM performance_schema.EVENTS_WAITS_HISTORY_LONG
|
||||
GROUP BY OPERATION
|
||||
HAVING TOTAL IS NOT NULL
|
||||
ORDER BY OPERATION
|
||||
LIMIT 1;
|
||||
OPERATION TOTAL
|
||||
chsize [NUM_BYTES]
|
||||
SELECT EVENT_ID FROM performance_schema.EVENTS_WAITS_CURRENT
|
||||
WHERE THREAD_ID IN
|
||||
(SELECT THREAD_ID FROM performance_schema.PROCESSLIST)
|
||||
AND EVENT_NAME IN
|
||||
(SELECT NAME FROM performance_schema.SETUP_INSTRUMENTS
|
||||
WHERE NAME LIKE "wait/synch/%")
|
||||
LIMIT 1;
|
||||
EVENT_ID
|
||||
[EVENT_ID]
|
||||
SELECT DISTINCT EVENT_ID
|
||||
FROM performance_schema.EVENTS_WAITS_CURRENT
|
||||
JOIN performance_schema.EVENTS_WAITS_HISTORY USING (EVENT_ID)
|
||||
JOIN performance_schema.EVENTS_WAITS_HISTORY_LONG USING (EVENT_ID)
|
||||
ORDER BY EVENT_ID
|
||||
LIMIT 1;
|
||||
EVENT_ID
|
||||
[EVENT_ID]
|
||||
SELECT t1.THREAD_ID, t2.EVENT_ID, t3.EVENT_NAME, t4.TIMER_WAIT
|
||||
FROM performance_schema.EVENTS_WAITS_HISTORY t1
|
||||
JOIN performance_schema.EVENTS_WAITS_HISTORY t2 USING (EVENT_ID)
|
||||
JOIN performance_schema.EVENTS_WAITS_HISTORY t3 ON (t2.THREAD_ID = t3.THREAD_ID)
|
||||
JOIN performance_schema.EVENTS_WAITS_HISTORY t4 ON (t3.EVENT_NAME = t4.EVENT_NAME)
|
||||
ORDER BY t1.EVENT_ID, t2.EVENT_ID
|
||||
LIMIT 5;
|
||||
THREAD_ID EVENT_ID EVENT_NAME TIMER_WAIT
|
||||
[THREAD_ID] [EVENT_ID] [EVENT_NAME] [TIMER_WAIT]
|
||||
[THREAD_ID] [EVENT_ID] [EVENT_NAME] [TIMER_WAIT]
|
||||
[THREAD_ID] [EVENT_ID] [EVENT_NAME] [TIMER_WAIT]
|
||||
[THREAD_ID] [EVENT_ID] [EVENT_NAME] [TIMER_WAIT]
|
||||
[THREAD_ID] [EVENT_ID] [EVENT_NAME] [TIMER_WAIT]
|
||||
SELECT THREAD_ID, EVENT_ID FROM (
|
||||
SELECT THREAD_ID, EVENT_ID FROM performance_schema.EVENTS_WAITS_CURRENT
|
||||
UNION
|
||||
SELECT THREAD_ID, EVENT_ID FROM performance_schema.EVENTS_WAITS_HISTORY
|
||||
UNION
|
||||
SELECT THREAD_ID, EVENT_ID FROM performance_schema.EVENTS_WAITS_HISTORY_LONG
|
||||
) t1 ORDER BY THREAD_ID, EVENT_ID
|
||||
LIMIT 5;
|
||||
THREAD_ID EVENT_ID
|
||||
[THREAD_ID] [EVENT_ID]
|
||||
[THREAD_ID] [EVENT_ID]
|
||||
[THREAD_ID] [EVENT_ID]
|
||||
[THREAD_ID] [EVENT_ID]
|
||||
[THREAD_ID] [EVENT_ID]
|
||||
CREATE EVENT t_ps_event
|
||||
ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 1 SECOND
|
||||
DO SELECT DISTINCT EVENT_ID
|
||||
FROM performance_schema.EVENTS_WAITS_CURRENT
|
||||
JOIN performance_schema.EVENTS_WAITS_HISTORY USING (EVENT_ID)
|
||||
ORDER BY EVENT_ID
|
||||
LIMIT 1;
|
||||
ALTER TABLE t1 ADD COLUMN c INT;
|
||||
CREATE TRIGGER t_ps_trigger BEFORE INSERT ON t1
|
||||
FOR EACH ROW BEGIN
|
||||
SET NEW.c = (SELECT MAX(EVENT_ID)
|
||||
FROM performance_schema.EVENTS_WAITS_CURRENT);
|
||||
END;
|
||||
|
|
||||
INSERT INTO t1 (id) VALUES (11), (12), (13);
|
||||
SELECT id, c FROM t1 WHERE id > 10 ORDER BY c;
|
||||
id c
|
||||
11 [EVENT_ID]
|
||||
12 [EVENT_ID]
|
||||
13 [EVENT_ID]
|
||||
DROP TRIGGER t_ps_trigger;
|
||||
CREATE PROCEDURE t_ps_proc(IN tid INT, OUT pid INT)
|
||||
BEGIN
|
||||
SELECT id FROM performance_schema.PROCESSLIST
|
||||
WHERE THREAD_ID = tid INTO pid;
|
||||
END;
|
||||
|
|
||||
CALL t_ps_proc(0, @p_id);
|
||||
CREATE FUNCTION t_ps_func(tid INT) RETURNS int
|
||||
BEGIN
|
||||
return (SELECT id FROM performance_schema.PROCESSLIST
|
||||
WHERE THREAD_ID = tid);
|
||||
END;
|
||||
|
|
||||
SELECT t_ps_func(0) = @p_id;
|
||||
t_ps_func(0) = @p_id
|
||||
1
|
||||
DROP PROCEDURE t_ps_proc;
|
||||
DROP FUNCTION t_ps_func;
|
||||
DROP TABLE t1;
|
233
mysql-test/suite/perfschema/r/server_init.result
Normal file
233
mysql-test/suite/perfschema/r/server_init.result
Normal file
@ -0,0 +1,233 @@
|
||||
use performance_schema;
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/mysys/THR_LOCK_threads";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/mysys/THR_LOCK_malloc";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/mysys/THR_LOCK_open";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/mysys/THR_LOCK_isam";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/mysys/THR_LOCK_myisam";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/mysys/THR_LOCK_heap";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/mysys/THR_LOCK_net";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/mysys/THR_LOCK_charset";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/mysys/THR_LOCK_time";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from COND_INSTANCES
|
||||
where name like "wait/synch/cond/mysys/THR_COND_threads";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_mysql_create_db";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_open";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_lock_db";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_thread_count";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_mapped_file";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_status";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_error_log";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_delayed_insert";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_uuid_generator";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_delayed_status";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_delayed_create";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_crypt";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_slave_list";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_active_mi";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_manager";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_global_read_lock";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_global_system_variables";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_user_conn";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_prepared_stmt_count";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_connection_count";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_server_started";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_rpl_status";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOG_INFO::lock";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/Query_cache::structure_guard_mutex";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/Event_scheduler::LOCK_scheduler_state";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_event_metadata";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_event_queue";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_user_locks";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/Cversion_lock";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_xid_cache";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_plugin";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/LOCK_gdl";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from MUTEX_INSTANCES
|
||||
where name like "wait/synch/mutex/sql/tz_LOCK";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from RWLOCK_INSTANCES
|
||||
where name like "wait/synch/rwlock/sql/LOCK_grant";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from RWLOCK_INSTANCES
|
||||
where name like "wait/synch/rwlock/sql/LOCK_sys_init_connect";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from RWLOCK_INSTANCES
|
||||
where name like "wait/synch/rwlock/sql/LOCK_sys_init_slave";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from RWLOCK_INSTANCES
|
||||
where name like "wait/synch/rwlock/sql/LOCK_system_variables_hash";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from COND_INSTANCES
|
||||
where name like "wait/synch/cond/sql/COND_server_started";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from COND_INSTANCES
|
||||
where name like "wait/synch/cond/sql/COND_refresh";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from COND_INSTANCES
|
||||
where name like "wait/synch/cond/sql/COND_thread_count";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from COND_INSTANCES
|
||||
where name like "wait/synch/cond/sql/COND_manager";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from COND_INSTANCES
|
||||
where name like "wait/synch/cond/sql/COND_global_read_lock";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from COND_INSTANCES
|
||||
where name like "wait/synch/cond/sql/COND_thread_cache";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from COND_INSTANCES
|
||||
where name like "wait/synch/cond/sql/COND_flush_thread_cache";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from COND_INSTANCES
|
||||
where name like "wait/synch/cond/sql/COND_rpl_status";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from COND_INSTANCES
|
||||
where name like "wait/synch/cond/sql/Query_cache::COND_cache_status_changed";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from COND_INSTANCES
|
||||
where name like "wait/synch/cond/sql/Event_scheduler::COND_state";
|
||||
count(name)
|
||||
1
|
||||
select count(name) from COND_INSTANCES
|
||||
where name like "wait/synch/cond/sql/COND_queue_state";
|
||||
count(name)
|
||||
1
|
@ -0,0 +1,74 @@
|
||||
show databases;
|
||||
Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
performance_schema
|
||||
test
|
||||
select count(*) from performance_schema.PERFORMANCE_TIMERS;
|
||||
count(*)
|
||||
5
|
||||
select count(*) from performance_schema.SETUP_CONSUMERS;
|
||||
count(*)
|
||||
8
|
||||
select count(*) > 0 from performance_schema.SETUP_INSTRUMENTS;
|
||||
count(*) > 0
|
||||
1
|
||||
select count(*) from performance_schema.SETUP_TIMERS;
|
||||
count(*)
|
||||
1
|
||||
select * from performance_schema.COND_INSTANCES;
|
||||
select * from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
select * from performance_schema.EVENTS_WAITS_HISTORY;
|
||||
select * from performance_schema.EVENTS_WAITS_HISTORY_LONG;
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME;
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE;
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME;
|
||||
select * from performance_schema.FILE_INSTANCES;
|
||||
select * from performance_schema.FILE_SUMMARY_BY_EVENT_NAME;
|
||||
select * from performance_schema.FILE_SUMMARY_BY_INSTANCE;
|
||||
select * from performance_schema.MUTEX_INSTANCES;
|
||||
select * from performance_schema.PERFORMANCE_TIMERS;
|
||||
select * from performance_schema.PROCESSLIST;
|
||||
select * from performance_schema.RWLOCK_INSTANCES;
|
||||
select * from performance_schema.SETUP_CONSUMERS;
|
||||
select * from performance_schema.SETUP_INSTRUMENTS;
|
||||
select * from performance_schema.SETUP_OBJECTS;
|
||||
select * from performance_schema.SETUP_TIMERS;
|
||||
show variables like "performance_schema%";
|
||||
Variable_name Value
|
||||
performance_schema ON
|
||||
performance_schema_events_waits_history_long_size 10000
|
||||
performance_schema_events_waits_history_size 10
|
||||
performance_schema_max_cond_classes 0
|
||||
performance_schema_max_cond_instances 1000
|
||||
performance_schema_max_file_classes 50
|
||||
performance_schema_max_file_handles 32768
|
||||
performance_schema_max_file_instances 10000
|
||||
performance_schema_max_mutex_classes 200
|
||||
performance_schema_max_mutex_instances 1000
|
||||
performance_schema_max_rwlock_classes 20
|
||||
performance_schema_max_rwlock_instances 1000
|
||||
performance_schema_max_table_handles 100000
|
||||
performance_schema_max_table_instances 50000
|
||||
performance_schema_max_thread_classes 50
|
||||
performance_schema_max_thread_instances 1000
|
||||
show engine PERFORMANCE_SCHEMA status;
|
||||
show status like "performance_schema%";
|
||||
show variables like "performance_schema_max_cond_classes";
|
||||
Variable_name Value
|
||||
performance_schema_max_cond_classes 0
|
||||
select count(*) from performance_schema.SETUP_INSTRUMENTS
|
||||
where name like "wait/synch/cond/%";
|
||||
count(*)
|
||||
0
|
||||
select variable_value > 0 from information_schema.global_status
|
||||
where variable_name like 'PERFORMANCE_SCHEMA_COND_CLASSES_LOST';
|
||||
variable_value > 0
|
||||
1
|
||||
select count(*) from performance_schema.COND_INSTANCES;
|
||||
count(*)
|
||||
0
|
||||
show status like "performance_schema_cond_instances_lost";
|
||||
Variable_name Value
|
||||
Performance_schema_cond_instances_lost 0
|
@ -0,0 +1,77 @@
|
||||
show databases;
|
||||
Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
performance_schema
|
||||
test
|
||||
select count(*) from performance_schema.PERFORMANCE_TIMERS;
|
||||
count(*)
|
||||
5
|
||||
select count(*) from performance_schema.SETUP_CONSUMERS;
|
||||
count(*)
|
||||
8
|
||||
select count(*) > 0 from performance_schema.SETUP_INSTRUMENTS;
|
||||
count(*) > 0
|
||||
1
|
||||
select count(*) from performance_schema.SETUP_TIMERS;
|
||||
count(*)
|
||||
1
|
||||
select * from performance_schema.COND_INSTANCES;
|
||||
select * from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
select * from performance_schema.EVENTS_WAITS_HISTORY;
|
||||
select * from performance_schema.EVENTS_WAITS_HISTORY_LONG;
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME;
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE;
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME;
|
||||
select * from performance_schema.FILE_INSTANCES;
|
||||
select * from performance_schema.FILE_SUMMARY_BY_EVENT_NAME;
|
||||
select * from performance_schema.FILE_SUMMARY_BY_INSTANCE;
|
||||
select * from performance_schema.MUTEX_INSTANCES;
|
||||
select * from performance_schema.PERFORMANCE_TIMERS;
|
||||
select * from performance_schema.PROCESSLIST;
|
||||
select * from performance_schema.RWLOCK_INSTANCES;
|
||||
select * from performance_schema.SETUP_CONSUMERS;
|
||||
select * from performance_schema.SETUP_INSTRUMENTS;
|
||||
select * from performance_schema.SETUP_OBJECTS;
|
||||
select * from performance_schema.SETUP_TIMERS;
|
||||
show variables like "performance_schema%";
|
||||
Variable_name Value
|
||||
performance_schema ON
|
||||
performance_schema_events_waits_history_long_size 10000
|
||||
performance_schema_events_waits_history_size 10
|
||||
performance_schema_max_cond_classes 80
|
||||
performance_schema_max_cond_instances 0
|
||||
performance_schema_max_file_classes 50
|
||||
performance_schema_max_file_handles 32768
|
||||
performance_schema_max_file_instances 10000
|
||||
performance_schema_max_mutex_classes 200
|
||||
performance_schema_max_mutex_instances 1000
|
||||
performance_schema_max_rwlock_classes 20
|
||||
performance_schema_max_rwlock_instances 1000
|
||||
performance_schema_max_table_handles 100000
|
||||
performance_schema_max_table_instances 50000
|
||||
performance_schema_max_thread_classes 50
|
||||
performance_schema_max_thread_instances 1000
|
||||
show engine PERFORMANCE_SCHEMA status;
|
||||
show status like "performance_schema%";
|
||||
show variables like "performance_schema_max_cond_classes";
|
||||
Variable_name Value
|
||||
performance_schema_max_cond_classes 80
|
||||
select count(*) > 0 from performance_schema.SETUP_INSTRUMENTS
|
||||
where name like "wait/synch/cond/%";
|
||||
count(*) > 0
|
||||
1
|
||||
show status like "performance_schema_cond_classes_lost";
|
||||
Variable_name Value
|
||||
Performance_schema_cond_classes_lost 0
|
||||
show variables like "performance_schema_max_cond_instances";
|
||||
Variable_name Value
|
||||
performance_schema_max_cond_instances 0
|
||||
select count(*) from performance_schema.COND_INSTANCES;
|
||||
count(*)
|
||||
0
|
||||
select variable_value > 0 from information_schema.global_status
|
||||
where variable_name like 'PERFORMANCE_SCHEMA_COND_INSTANCES_LOST';
|
||||
variable_value > 0
|
||||
1
|
@ -0,0 +1,74 @@
|
||||
show databases;
|
||||
Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
performance_schema
|
||||
test
|
||||
select count(*) from performance_schema.PERFORMANCE_TIMERS;
|
||||
count(*)
|
||||
5
|
||||
select count(*) from performance_schema.SETUP_CONSUMERS;
|
||||
count(*)
|
||||
8
|
||||
select count(*) > 0 from performance_schema.SETUP_INSTRUMENTS;
|
||||
count(*) > 0
|
||||
1
|
||||
select count(*) from performance_schema.SETUP_TIMERS;
|
||||
count(*)
|
||||
1
|
||||
select * from performance_schema.COND_INSTANCES;
|
||||
select * from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
select * from performance_schema.EVENTS_WAITS_HISTORY;
|
||||
select * from performance_schema.EVENTS_WAITS_HISTORY_LONG;
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME;
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE;
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME;
|
||||
select * from performance_schema.FILE_INSTANCES;
|
||||
select * from performance_schema.FILE_SUMMARY_BY_EVENT_NAME;
|
||||
select * from performance_schema.FILE_SUMMARY_BY_INSTANCE;
|
||||
select * from performance_schema.MUTEX_INSTANCES;
|
||||
select * from performance_schema.PERFORMANCE_TIMERS;
|
||||
select * from performance_schema.PROCESSLIST;
|
||||
select * from performance_schema.RWLOCK_INSTANCES;
|
||||
select * from performance_schema.SETUP_CONSUMERS;
|
||||
select * from performance_schema.SETUP_INSTRUMENTS;
|
||||
select * from performance_schema.SETUP_OBJECTS;
|
||||
select * from performance_schema.SETUP_TIMERS;
|
||||
show variables like "performance_schema%";
|
||||
Variable_name Value
|
||||
performance_schema ON
|
||||
performance_schema_events_waits_history_long_size 10000
|
||||
performance_schema_events_waits_history_size 10
|
||||
performance_schema_max_cond_classes 80
|
||||
performance_schema_max_cond_instances 1000
|
||||
performance_schema_max_file_classes 0
|
||||
performance_schema_max_file_handles 32768
|
||||
performance_schema_max_file_instances 10000
|
||||
performance_schema_max_mutex_classes 200
|
||||
performance_schema_max_mutex_instances 1000
|
||||
performance_schema_max_rwlock_classes 20
|
||||
performance_schema_max_rwlock_instances 1000
|
||||
performance_schema_max_table_handles 100000
|
||||
performance_schema_max_table_instances 50000
|
||||
performance_schema_max_thread_classes 50
|
||||
performance_schema_max_thread_instances 1000
|
||||
show engine PERFORMANCE_SCHEMA status;
|
||||
show status like "performance_schema%";
|
||||
show variables like "performance_schema_max_file_classes";
|
||||
Variable_name Value
|
||||
performance_schema_max_file_classes 0
|
||||
select count(*) from performance_schema.SETUP_INSTRUMENTS
|
||||
where name like "wait/io/file/%";
|
||||
count(*)
|
||||
0
|
||||
select variable_value > 0 from information_schema.global_status
|
||||
where variable_name like 'PERFORMANCE_SCHEMA_FILE_CLASSES_LOST';
|
||||
variable_value > 0
|
||||
1
|
||||
select count(*) from performance_schema.FILE_INSTANCES;
|
||||
count(*)
|
||||
0
|
||||
show status like "performance_schema_file_instances_lost";
|
||||
Variable_name Value
|
||||
Performance_schema_file_instances_lost 0
|
@ -0,0 +1,77 @@
|
||||
show databases;
|
||||
Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
performance_schema
|
||||
test
|
||||
select count(*) from performance_schema.PERFORMANCE_TIMERS;
|
||||
count(*)
|
||||
5
|
||||
select count(*) from performance_schema.SETUP_CONSUMERS;
|
||||
count(*)
|
||||
8
|
||||
select count(*) > 0 from performance_schema.SETUP_INSTRUMENTS;
|
||||
count(*) > 0
|
||||
1
|
||||
select count(*) from performance_schema.SETUP_TIMERS;
|
||||
count(*)
|
||||
1
|
||||
select * from performance_schema.COND_INSTANCES;
|
||||
select * from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
select * from performance_schema.EVENTS_WAITS_HISTORY;
|
||||
select * from performance_schema.EVENTS_WAITS_HISTORY_LONG;
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME;
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE;
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME;
|
||||
select * from performance_schema.FILE_INSTANCES;
|
||||
select * from performance_schema.FILE_SUMMARY_BY_EVENT_NAME;
|
||||
select * from performance_schema.FILE_SUMMARY_BY_INSTANCE;
|
||||
select * from performance_schema.MUTEX_INSTANCES;
|
||||
select * from performance_schema.PERFORMANCE_TIMERS;
|
||||
select * from performance_schema.PROCESSLIST;
|
||||
select * from performance_schema.RWLOCK_INSTANCES;
|
||||
select * from performance_schema.SETUP_CONSUMERS;
|
||||
select * from performance_schema.SETUP_INSTRUMENTS;
|
||||
select * from performance_schema.SETUP_OBJECTS;
|
||||
select * from performance_schema.SETUP_TIMERS;
|
||||
show variables like "performance_schema%";
|
||||
Variable_name Value
|
||||
performance_schema ON
|
||||
performance_schema_events_waits_history_long_size 10000
|
||||
performance_schema_events_waits_history_size 10
|
||||
performance_schema_max_cond_classes 80
|
||||
performance_schema_max_cond_instances 1000
|
||||
performance_schema_max_file_classes 50
|
||||
performance_schema_max_file_handles 32768
|
||||
performance_schema_max_file_instances 0
|
||||
performance_schema_max_mutex_classes 200
|
||||
performance_schema_max_mutex_instances 1000
|
||||
performance_schema_max_rwlock_classes 20
|
||||
performance_schema_max_rwlock_instances 1000
|
||||
performance_schema_max_table_handles 100000
|
||||
performance_schema_max_table_instances 50000
|
||||
performance_schema_max_thread_classes 50
|
||||
performance_schema_max_thread_instances 1000
|
||||
show engine PERFORMANCE_SCHEMA status;
|
||||
show status like "performance_schema%";
|
||||
show variables like "performance_schema_max_file_classes";
|
||||
Variable_name Value
|
||||
performance_schema_max_file_classes 50
|
||||
select count(*) > 0 from performance_schema.SETUP_INSTRUMENTS
|
||||
where name like "wait/io/file/%";
|
||||
count(*) > 0
|
||||
1
|
||||
show status like "performance_schema_file_classes_lost";
|
||||
Variable_name Value
|
||||
Performance_schema_file_classes_lost 0
|
||||
show variables like "performance_schema_max_file_instances";
|
||||
Variable_name Value
|
||||
performance_schema_max_file_instances 0
|
||||
select count(*) from performance_schema.FILE_INSTANCES;
|
||||
count(*)
|
||||
0
|
||||
select variable_value > 0 from information_schema.global_status
|
||||
where variable_name like 'PERFORMANCE_SCHEMA_FILE_INSTANCES_LOST';
|
||||
variable_value > 0
|
||||
1
|
@ -0,0 +1,74 @@
|
||||
show databases;
|
||||
Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
performance_schema
|
||||
test
|
||||
select count(*) from performance_schema.PERFORMANCE_TIMERS;
|
||||
count(*)
|
||||
5
|
||||
select count(*) from performance_schema.SETUP_CONSUMERS;
|
||||
count(*)
|
||||
8
|
||||
select count(*) > 0 from performance_schema.SETUP_INSTRUMENTS;
|
||||
count(*) > 0
|
||||
1
|
||||
select count(*) from performance_schema.SETUP_TIMERS;
|
||||
count(*)
|
||||
1
|
||||
select * from performance_schema.COND_INSTANCES;
|
||||
select * from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
select * from performance_schema.EVENTS_WAITS_HISTORY;
|
||||
select * from performance_schema.EVENTS_WAITS_HISTORY_LONG;
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME;
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE;
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME;
|
||||
select * from performance_schema.FILE_INSTANCES;
|
||||
select * from performance_schema.FILE_SUMMARY_BY_EVENT_NAME;
|
||||
select * from performance_schema.FILE_SUMMARY_BY_INSTANCE;
|
||||
select * from performance_schema.MUTEX_INSTANCES;
|
||||
select * from performance_schema.PERFORMANCE_TIMERS;
|
||||
select * from performance_schema.PROCESSLIST;
|
||||
select * from performance_schema.RWLOCK_INSTANCES;
|
||||
select * from performance_schema.SETUP_CONSUMERS;
|
||||
select * from performance_schema.SETUP_INSTRUMENTS;
|
||||
select * from performance_schema.SETUP_OBJECTS;
|
||||
select * from performance_schema.SETUP_TIMERS;
|
||||
show variables like "performance_schema%";
|
||||
Variable_name Value
|
||||
performance_schema ON
|
||||
performance_schema_events_waits_history_long_size 10000
|
||||
performance_schema_events_waits_history_size 10
|
||||
performance_schema_max_cond_classes 80
|
||||
performance_schema_max_cond_instances 1000
|
||||
performance_schema_max_file_classes 50
|
||||
performance_schema_max_file_handles 32768
|
||||
performance_schema_max_file_instances 10000
|
||||
performance_schema_max_mutex_classes 0
|
||||
performance_schema_max_mutex_instances 1000
|
||||
performance_schema_max_rwlock_classes 20
|
||||
performance_schema_max_rwlock_instances 1000
|
||||
performance_schema_max_table_handles 100000
|
||||
performance_schema_max_table_instances 50000
|
||||
performance_schema_max_thread_classes 50
|
||||
performance_schema_max_thread_instances 1000
|
||||
show engine PERFORMANCE_SCHEMA status;
|
||||
show status like "performance_schema%";
|
||||
show variables like "performance_schema_max_mutex_classes";
|
||||
Variable_name Value
|
||||
performance_schema_max_mutex_classes 0
|
||||
select count(*) from performance_schema.SETUP_INSTRUMENTS
|
||||
where name like "wait/synch/mutex/%";
|
||||
count(*)
|
||||
0
|
||||
select variable_value > 0 from information_schema.global_status
|
||||
where variable_name like 'PERFORMANCE_SCHEMA_MUTEX_CLASSES_LOST';
|
||||
variable_value > 0
|
||||
1
|
||||
select count(*) from performance_schema.MUTEX_INSTANCES;
|
||||
count(*)
|
||||
0
|
||||
show status like "performance_schema_mutex_instances_lost";
|
||||
Variable_name Value
|
||||
Performance_schema_mutex_instances_lost 0
|
@ -0,0 +1,77 @@
|
||||
show databases;
|
||||
Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
performance_schema
|
||||
test
|
||||
select count(*) from performance_schema.PERFORMANCE_TIMERS;
|
||||
count(*)
|
||||
5
|
||||
select count(*) from performance_schema.SETUP_CONSUMERS;
|
||||
count(*)
|
||||
8
|
||||
select count(*) > 0 from performance_schema.SETUP_INSTRUMENTS;
|
||||
count(*) > 0
|
||||
1
|
||||
select count(*) from performance_schema.SETUP_TIMERS;
|
||||
count(*)
|
||||
1
|
||||
select * from performance_schema.COND_INSTANCES;
|
||||
select * from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
select * from performance_schema.EVENTS_WAITS_HISTORY;
|
||||
select * from performance_schema.EVENTS_WAITS_HISTORY_LONG;
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME;
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE;
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME;
|
||||
select * from performance_schema.FILE_INSTANCES;
|
||||
select * from performance_schema.FILE_SUMMARY_BY_EVENT_NAME;
|
||||
select * from performance_schema.FILE_SUMMARY_BY_INSTANCE;
|
||||
select * from performance_schema.MUTEX_INSTANCES;
|
||||
select * from performance_schema.PERFORMANCE_TIMERS;
|
||||
select * from performance_schema.PROCESSLIST;
|
||||
select * from performance_schema.RWLOCK_INSTANCES;
|
||||
select * from performance_schema.SETUP_CONSUMERS;
|
||||
select * from performance_schema.SETUP_INSTRUMENTS;
|
||||
select * from performance_schema.SETUP_OBJECTS;
|
||||
select * from performance_schema.SETUP_TIMERS;
|
||||
show variables like "performance_schema%";
|
||||
Variable_name Value
|
||||
performance_schema ON
|
||||
performance_schema_events_waits_history_long_size 10000
|
||||
performance_schema_events_waits_history_size 10
|
||||
performance_schema_max_cond_classes 80
|
||||
performance_schema_max_cond_instances 1000
|
||||
performance_schema_max_file_classes 50
|
||||
performance_schema_max_file_handles 32768
|
||||
performance_schema_max_file_instances 10000
|
||||
performance_schema_max_mutex_classes 200
|
||||
performance_schema_max_mutex_instances 0
|
||||
performance_schema_max_rwlock_classes 20
|
||||
performance_schema_max_rwlock_instances 1000
|
||||
performance_schema_max_table_handles 100000
|
||||
performance_schema_max_table_instances 50000
|
||||
performance_schema_max_thread_classes 50
|
||||
performance_schema_max_thread_instances 1000
|
||||
show engine PERFORMANCE_SCHEMA status;
|
||||
show status like "performance_schema%";
|
||||
show variables like "performance_schema_max_mutex_classes";
|
||||
Variable_name Value
|
||||
performance_schema_max_mutex_classes 200
|
||||
select count(*) > 0 from performance_schema.SETUP_INSTRUMENTS
|
||||
where name like "wait/synch/mutex/%";
|
||||
count(*) > 0
|
||||
1
|
||||
show status like "performance_schema_mutex_classes_lost";
|
||||
Variable_name Value
|
||||
Performance_schema_mutex_classes_lost 0
|
||||
show variables like "performance_schema_max_mutex_instances";
|
||||
Variable_name Value
|
||||
performance_schema_max_mutex_instances 0
|
||||
select count(*) from performance_schema.MUTEX_INSTANCES;
|
||||
count(*)
|
||||
0
|
||||
select variable_value > 0 from information_schema.global_status
|
||||
where variable_name like 'PERFORMANCE_SCHEMA_MUTEX_INSTANCES_LOST';
|
||||
variable_value > 0
|
||||
1
|
@ -0,0 +1,74 @@
|
||||
show databases;
|
||||
Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
performance_schema
|
||||
test
|
||||
select count(*) from performance_schema.PERFORMANCE_TIMERS;
|
||||
count(*)
|
||||
5
|
||||
select count(*) from performance_schema.SETUP_CONSUMERS;
|
||||
count(*)
|
||||
8
|
||||
select count(*) > 0 from performance_schema.SETUP_INSTRUMENTS;
|
||||
count(*) > 0
|
||||
1
|
||||
select count(*) from performance_schema.SETUP_TIMERS;
|
||||
count(*)
|
||||
1
|
||||
select * from performance_schema.COND_INSTANCES;
|
||||
select * from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
select * from performance_schema.EVENTS_WAITS_HISTORY;
|
||||
select * from performance_schema.EVENTS_WAITS_HISTORY_LONG;
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME;
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE;
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME;
|
||||
select * from performance_schema.FILE_INSTANCES;
|
||||
select * from performance_schema.FILE_SUMMARY_BY_EVENT_NAME;
|
||||
select * from performance_schema.FILE_SUMMARY_BY_INSTANCE;
|
||||
select * from performance_schema.MUTEX_INSTANCES;
|
||||
select * from performance_schema.PERFORMANCE_TIMERS;
|
||||
select * from performance_schema.PROCESSLIST;
|
||||
select * from performance_schema.RWLOCK_INSTANCES;
|
||||
select * from performance_schema.SETUP_CONSUMERS;
|
||||
select * from performance_schema.SETUP_INSTRUMENTS;
|
||||
select * from performance_schema.SETUP_OBJECTS;
|
||||
select * from performance_schema.SETUP_TIMERS;
|
||||
show variables like "performance_schema%";
|
||||
Variable_name Value
|
||||
performance_schema ON
|
||||
performance_schema_events_waits_history_long_size 10000
|
||||
performance_schema_events_waits_history_size 10
|
||||
performance_schema_max_cond_classes 80
|
||||
performance_schema_max_cond_instances 1000
|
||||
performance_schema_max_file_classes 50
|
||||
performance_schema_max_file_handles 32768
|
||||
performance_schema_max_file_instances 10000
|
||||
performance_schema_max_mutex_classes 200
|
||||
performance_schema_max_mutex_instances 1000
|
||||
performance_schema_max_rwlock_classes 0
|
||||
performance_schema_max_rwlock_instances 1000
|
||||
performance_schema_max_table_handles 100000
|
||||
performance_schema_max_table_instances 50000
|
||||
performance_schema_max_thread_classes 50
|
||||
performance_schema_max_thread_instances 1000
|
||||
show engine PERFORMANCE_SCHEMA status;
|
||||
show status like "performance_schema%";
|
||||
show variables like "performance_schema_max_rwlock_classes";
|
||||
Variable_name Value
|
||||
performance_schema_max_rwlock_classes 0
|
||||
select count(*) from performance_schema.SETUP_INSTRUMENTS
|
||||
where name like "wait/synch/rwlock/%";
|
||||
count(*)
|
||||
0
|
||||
select variable_value > 0 from information_schema.global_status
|
||||
where variable_name like 'PERFORMANCE_SCHEMA_RWLOCK_CLASSES_LOST';
|
||||
variable_value > 0
|
||||
1
|
||||
select count(*) from performance_schema.RWLOCK_INSTANCES;
|
||||
count(*)
|
||||
0
|
||||
show status like "performance_schema_rwlock_instances_lost";
|
||||
Variable_name Value
|
||||
Performance_schema_rwlock_instances_lost 0
|
@ -0,0 +1,77 @@
|
||||
show databases;
|
||||
Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
performance_schema
|
||||
test
|
||||
select count(*) from performance_schema.PERFORMANCE_TIMERS;
|
||||
count(*)
|
||||
5
|
||||
select count(*) from performance_schema.SETUP_CONSUMERS;
|
||||
count(*)
|
||||
8
|
||||
select count(*) > 0 from performance_schema.SETUP_INSTRUMENTS;
|
||||
count(*) > 0
|
||||
1
|
||||
select count(*) from performance_schema.SETUP_TIMERS;
|
||||
count(*)
|
||||
1
|
||||
select * from performance_schema.COND_INSTANCES;
|
||||
select * from performance_schema.EVENTS_WAITS_CURRENT;
|
||||
select * from performance_schema.EVENTS_WAITS_HISTORY;
|
||||
select * from performance_schema.EVENTS_WAITS_HISTORY_LONG;
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_EVENT_NAME;
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_INSTANCE;
|
||||
select * from performance_schema.EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME;
|
||||
select * from performance_schema.FILE_INSTANCES;
|
||||
select * from performance_schema.FILE_SUMMARY_BY_EVENT_NAME;
|
||||
select * from performance_schema.FILE_SUMMARY_BY_INSTANCE;
|
||||
select * from performance_schema.MUTEX_INSTANCES;
|
||||
select * from performance_schema.PERFORMANCE_TIMERS;
|
||||
select * from performance_schema.PROCESSLIST;
|
||||
select * from performance_schema.RWLOCK_INSTANCES;
|
||||
select * from performance_schema.SETUP_CONSUMERS;
|
||||
select * from performance_schema.SETUP_INSTRUMENTS;
|
||||
select * from performance_schema.SETUP_OBJECTS;
|
||||
select * from performance_schema.SETUP_TIMERS;
|
||||
show variables like "performance_schema%";
|
||||
Variable_name Value
|
||||
performance_schema ON
|
||||
performance_schema_events_waits_history_long_size 10000
|
||||
performance_schema_events_waits_history_size 10
|
||||
performance_schema_max_cond_classes 80
|
||||
performance_schema_max_cond_instances 1000
|
||||
performance_schema_max_file_classes 50
|
||||
performance_schema_max_file_handles 32768
|
||||
performance_schema_max_file_instances 10000
|
||||
performance_schema_max_mutex_classes 200
|
||||
performance_schema_max_mutex_instances 1000
|
||||
performance_schema_max_rwlock_classes 20
|
||||
performance_schema_max_rwlock_instances 0
|
||||
performance_schema_max_table_handles 100000
|
||||
performance_schema_max_table_instances 50000
|
||||
performance_schema_max_thread_classes 50
|
||||
performance_schema_max_thread_instances 1000
|
||||
show engine PERFORMANCE_SCHEMA status;
|
||||
show status like "performance_schema%";
|
||||
show variables like "performance_schema_max_rwlock_classes";
|
||||
Variable_name Value
|
||||
performance_schema_max_rwlock_classes 20
|
||||
select count(*) > 0 from performance_schema.SETUP_INSTRUMENTS
|
||||
where name like "wait/synch/rwlock/%";
|
||||
count(*) > 0
|
||||
1
|
||||
show status like "performance_schema_rwlock_classes_lost";
|
||||
Variable_name Value
|
||||
Performance_schema_rwlock_classes_lost 0
|
||||
show variables like "performance_schema_max_rwlock_instances";
|
||||
Variable_name Value
|
||||
performance_schema_max_rwlock_instances 0
|
||||
select count(*) from performance_schema.RWLOCK_INSTANCES;
|
||||
count(*)
|
||||
0
|
||||
select variable_value > 0 from information_schema.global_status
|
||||
where variable_name like 'PERFORMANCE_SCHEMA_RWLOCK_INSTANCES_LOST';
|
||||
variable_value > 0
|
||||
1
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user