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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/innodb/t/check_ibd_filesize_16k.test
--source include/have_innodb.inc
--source include/have_innodb_16k.inc

--echo #
--echo # Bug #21950389 SMALL TABLESPACES WITH BLOBS TAKE UP TO 80 TIMES MORE
--echo # SPACE IN 5.7 THAN IN 5.6
--echo #

let MYSQLD_DATADIR=`SELECT @@datadir`;

SET GLOBAL innodb_file_per_table=ON;

#
# Table 1: small rows
#
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB;

let FILE_TO_CHECK=test/t1.ibd;
echo Empty table:;
--source include/show_file_size.inc

let $i = 0;

--disable_query_log
BEGIN;
while ($i < 25000) {
      eval INSERT INTO t1 VALUES($i);
      inc $i;
      let $print= `SELECT $i MOD 5000`;
      if ($print == 0) {
         COMMIT;
         echo Rows inserted: $i;
         source include/show_file_size.inc;
         BEGIN;
      }
}
COMMIT;
--enable_query_log

DROP TABLE t1;

#
# Table 2: BLOB
#
CREATE TABLE t2 (a INT PRIMARY KEY, b BLOB) ENGINE=InnoDB;

let FILE_TO_CHECK=test/t2.ibd;
echo Empty table:;
--source include/show_file_size.inc

let $i = 0;

--disable_query_log
BEGIN;
while ($i < 20) {
      eval INSERT INTO t2 VALUES($i, REPEAT('a', 30000));
      inc $i;
      let $print= `SELECT $i MOD 4`;
      if ($print == 0) {
         COMMIT;
         echo Rows inserted: $i;
         source include/show_file_size.inc;
         BEGIN;
      }
}
COMMIT;
--enable_query_log

DROP TABLE t2;

#
# Table 3: compressed BLOB
#
CREATE TABLE t3 (a INT PRIMARY KEY, b BLOB)
       ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1;

let FILE_TO_CHECK=test/t3.ibd;
echo Empty table:;
--source include/show_file_size.inc

let $i = 0;

--disable_query_log
BEGIN;
while ($i < 40) {
      eval INSERT INTO t3 VALUES($i, REPEAT('a', 30000));
      inc $i;
      let $print= `SELECT $i MOD 8`;
      if ($print == 0) {
         COMMIT;
         echo Rows inserted: $i;
         source include/show_file_size.inc;
         BEGIN;
      }
}
COMMIT;
--enable_query_log

DROP TABLE t3;

SET GLOBAL innodb_file_per_table=default;

Youez - 2016 - github.com/yon3zu
LinuXploit