mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
10.0-base merge
This commit is contained in:
@ -9,8 +9,8 @@ ERROR 42S22: Unknown column 'foobar' in 'field list'
|
||||
show status like 'audit_null%';
|
||||
Variable_name Value
|
||||
Audit_null_called 9
|
||||
Audit_null_general_error 1
|
||||
Audit_null_general_log 3
|
||||
Audit_null_general_error 1
|
||||
Audit_null_general_result 2
|
||||
create procedure au1(x char(16)) select concat("test1", x);
|
||||
call au1("-12");
|
||||
@ -19,8 +19,8 @@ test1-12
|
||||
show status like 'audit_null%';
|
||||
Variable_name Value
|
||||
Audit_null_called 19
|
||||
Audit_null_general_error 1
|
||||
Audit_null_general_log 7
|
||||
Audit_null_general_error 1
|
||||
Audit_null_general_result 5
|
||||
uninstall plugin audit_null;
|
||||
Warnings:
|
||||
|
@ -1,4 +1,4 @@
|
||||
call mtr.add_suppression("mysql/plugin.MYI");
|
||||
call mtr.add_suppression("Incorrect key file for table.*mysql.plugin.MYI");
|
||||
SET debug_dbug='+d,myisam_pretend_crashed_table_on_usage';
|
||||
install plugin audit_null soname 'adt_null';
|
||||
ERROR HY000: Incorrect key file for table './mysql/plugin.MYI'; try to repair it
|
||||
|
18
mysql-test/suite/plugins/r/auth_v0100.result
Normal file
18
mysql-test/suite/plugins/r/auth_v0100.result
Normal file
@ -0,0 +1,18 @@
|
||||
install soname 'auth_0x0100';
|
||||
select plugin_name, plugin_type_version from information_schema.plugins where plugin_type='authentication' order by plugin_name;
|
||||
plugin_name plugin_type_version
|
||||
auth_0x0100 1.0
|
||||
mysql_native_password 2.0
|
||||
mysql_old_password 2.0
|
||||
create user tt identified via auth_0x0100;
|
||||
grant select on test.* to zzzzzzzzzzzzzzzz;
|
||||
connect(localhost,tt,,test,MASTER_MYPORT,MASTER_MYSOCK);
|
||||
ERROR 28000: Access denied for user 'tt'@'localhost' (using password: YES)
|
||||
grant proxy on zzzzzzzzzzzzzzzz to tt;
|
||||
select user(), current_user(), @@external_user;
|
||||
user() tt@localhost
|
||||
current_user() zzzzzzzzzzzzzzzz@%
|
||||
@@external_user oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo.
|
||||
drop user tt;
|
||||
drop user zzzzzzzzzzzzzzzz;
|
||||
uninstall plugin auth_0x0100;
|
15
mysql-test/suite/plugins/r/qc_info.result
Normal file
15
mysql-test/suite/plugins/r/qc_info.result
Normal file
@ -0,0 +1,15 @@
|
||||
set global query_cache_size=1355776;
|
||||
create table t1 (a int not null);
|
||||
insert into t1 values (1),(2),(3);
|
||||
select * from t1;
|
||||
a
|
||||
1
|
||||
2
|
||||
3
|
||||
select statement_schema, statement_text, result_blocks_count, result_blocks_size from information_schema.query_cache_info;
|
||||
statement_schema statement_text result_blocks_count result_blocks_size
|
||||
test select * from t1 1 512
|
||||
drop table t1;
|
||||
select statement_schema, statement_text, result_blocks_count, result_blocks_size from information_schema.query_cache_info;
|
||||
statement_schema statement_text result_blocks_count result_blocks_size
|
||||
set global query_cache_size= default;
|
23
mysql-test/suite/plugins/r/qc_info_priv.result
Normal file
23
mysql-test/suite/plugins/r/qc_info_priv.result
Normal file
@ -0,0 +1,23 @@
|
||||
set global query_cache_size=1355776;
|
||||
create table t1 (a int not null);
|
||||
insert into t1 values (1),(2),(3);
|
||||
select * from t1;
|
||||
a
|
||||
1
|
||||
2
|
||||
3
|
||||
select statement_schema, statement_text, result_blocks_count, result_blocks_size from information_schema.query_cache_info;
|
||||
statement_schema statement_text result_blocks_count result_blocks_size
|
||||
test select * from t1 1 512
|
||||
create user mysqltest;
|
||||
select a from t1;
|
||||
a
|
||||
1
|
||||
2
|
||||
3
|
||||
select count(*) from information_schema.query_cache_info;
|
||||
count(*)
|
||||
0
|
||||
drop user mysqltest;
|
||||
drop table t1;
|
||||
set global query_cache_size= default;
|
35
mysql-test/suite/plugins/r/show_all_plugins.result
Normal file
35
mysql-test/suite/plugins/r/show_all_plugins.result
Normal file
@ -0,0 +1,35 @@
|
||||
flush status;
|
||||
show status like '%libraries%';
|
||||
Variable_name Value
|
||||
Opened_plugin_libraries 0
|
||||
select * from information_schema.all_plugins where plugin_library='ha_example.so';
|
||||
PLUGIN_NAME PLUGIN_VERSION PLUGIN_STATUS PLUGIN_TYPE PLUGIN_TYPE_VERSION PLUGIN_LIBRARY PLUGIN_LIBRARY_VERSION PLUGIN_AUTHOR PLUGIN_DESCRIPTION PLUGIN_LICENSE LOAD_OPTION PLUGIN_MATURITY PLUGIN_AUTH_VERSION
|
||||
EXAMPLE 0.1 NOT INSTALLED STORAGE ENGINE 100001.0 ha_example.so 1.4 Brian Aker, MySQL AB Example storage engine GPL OFF Experimental 0.1
|
||||
UNUSABLE 3.14 NOT INSTALLED DAEMON 100001.0 ha_example.so 1.4 Sergei Golubchik Unusable Daemon GPL OFF Experimental 3.14.15.926
|
||||
show status like '%libraries%';
|
||||
Variable_name Value
|
||||
Opened_plugin_libraries 1
|
||||
show plugins soname 'ha_example.so';
|
||||
Name Status Type Library License
|
||||
EXAMPLE NOT INSTALLED STORAGE ENGINE ha_example.so GPL
|
||||
UNUSABLE NOT INSTALLED DAEMON ha_example.so GPL
|
||||
show status like '%libraries%';
|
||||
Variable_name Value
|
||||
Opened_plugin_libraries 2
|
||||
show plugins soname like '%example%';
|
||||
Name Status Type Library License
|
||||
EXAMPLE NOT INSTALLED STORAGE ENGINE ha_example.so GPL
|
||||
UNUSABLE NOT INSTALLED DAEMON ha_example.so GPL
|
||||
daemon_example NOT INSTALLED DAEMON libdaemon_example.so GPL
|
||||
three_attempts NOT INSTALLED AUTHENTICATION dialog_examples.so GPL
|
||||
two_questions NOT INSTALLED AUTHENTICATION dialog_examples.so GPL
|
||||
show status like '%libraries%';
|
||||
Variable_name Value
|
||||
Opened_plugin_libraries 6
|
||||
show plugins soname where library = 'ha_example.so';
|
||||
Name Status Type Library License
|
||||
EXAMPLE NOT INSTALLED STORAGE ENGINE ha_example.so GPL
|
||||
UNUSABLE NOT INSTALLED DAEMON ha_example.so GPL
|
||||
select variable_value > 10 from information_schema.global_status where variable_name like '%libraries%';
|
||||
variable_value > 10
|
||||
1
|
Reference in New Issue
Block a user