summaryrefslogtreecommitdiff
path: root/mysql-test/suite/perfschema/r/dml_hosts.result
blob: e282110bf77bdacf72b417435dd77029ab6f5fc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
select * from performance_schema.hosts
limit 1;
select * from performance_schema.hosts
where host='FOO';
insert into performance_schema.hosts
set host='FOO',
current_connections=1, total_connections=2;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'hosts'
update performance_schema.hosts
set current_connections=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'hosts'
update performance_schema.hosts
set current_connections=12 where host like "FOO";
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'hosts'
delete from performance_schema.hosts
where total_connections=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'hosts'
delete from performance_schema.hosts;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'hosts'
LOCK TABLES performance_schema.hosts READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'hosts'
UNLOCK TABLES;
LOCK TABLES performance_schema.hosts WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'hosts'
UNLOCK TABLES;
#
# MDEV-25325 column_comment for performance_schema tables
#
select column_name, column_comment 
from information_schema.columns 
where table_schema='performance_schema' and table_name='hosts';
column_name	column_comment
HOST	Host name used by the client to connect, NULL for internal threads or user sessions that failed to authenticate.
CURRENT_CONNECTIONS	Current number of the host's connections.
TOTAL_CONNECTIONS	Total number of the host's connections