403Webshell
Server IP : 104.21.38.3  /  Your IP : 162.158.189.219
Web Server : Apache
System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64
User : www ( 1000)
PHP Version : 7.4.33
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/server/mysql/src/mysql-test/suite/ndb/r/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/ndb/r/ndb_reconnect.result
CREATE TABLE t1(a int primary key, b varchar(255), c int) engine=ndb;
select * from t1;
a	b	c
insert into t1 values (1, "row 1", 2);
select * from t1;
a	b	c
1	row 1	2
select * from t1;
a	b	c
1	row 1	2
select * from t1;
a	b	c
1	row 1	2
select * from t1;
ERROR HY000: Got error 157 'Unknown error code' from NDBCLUSTER
select * from t1;
ERROR HY000: Got error 157 'Unknown error code' from NDBCLUSTER
select a,b,c from t1;
a	b	c
1	row 1	2
select * from t1;
a	b	c
1	row 1	2
select * from t1;
a	b	c
1	row 1	2
insert into t1 values (2, "row 1", 37);
drop table t1;
create table t1(a int, b varchar(10), c date) engine=ndb;
CREATE TRIGGER trg1 BEFORE UPDATE ON t1 FOR EACH ROW BEGIN
SET new.c = '1901-01-01 01:01:01';
End //
insert into t1 values (1, "row 1", NULL),(2, "row 2", NULL);
select * from t1 order by a;
a	b	c
1	row 1	NULL
2	row 2	NULL
create table t2(a int, b varchar(10), c date) engine=myisam;
CREATE TRIGGER trg2 BEFORE UPDATE ON t2 FOR EACH ROW BEGIN
SET new.c = '1901-01-01 01:01:01';
End //
create table t1(a int, b varchar(10), c date) engine=ndb;
CREATE TRIGGER trg1 BEFORE UPDATE ON t1 FOR EACH ROW BEGIN
SET new.c = '1902-02-02 02:02:02';
End //
insert into t1 values (1, "row 1", NULL),(2, "row 2", NULL);
select * from t1 order by a;
a	b	c
1	row 1	NULL
2	row 2	NULL
create table t2(a int, b varchar(10), c date) engine=myisam;
ERROR 42S01: Table 't2' already exists
drop table t2;
create table t2(a int, b varchar(10), c date) engine=myisam;
CREATE TRIGGER trg2 BEFORE UPDATE ON t2 FOR EACH ROW BEGIN
SET new.c = '1901-01-01 01:01:01';
End //
drop table t1, t2;
create table information_schema.t1(a int, b varchar(10), c date) engine=ndb;
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'

Youez - 2016 - github.com/yon3zu
LinuXploit