403Webshell
Server IP : 88.99.149.37  /  Your IP : 216.73.216.141
Web Server : nginx/1.31.2
System : Linux server-88-99-149-37 6.12.0-124.56.5.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 06:12:08 EDT 2026 x86_64
User : muralimurth ( 1015)
PHP Version : 8.4.23
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/local/mysql/mysql-test/include/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/local/mysql/mysql-test/include/print_ddl_log.inc
--echo #
--echo # Reading backup ddl log file
--echo #

let MYSQLD_DATADIR= `select @@datadir`;
perl;
  $datadir= $ENV{'MYSQLD_DATADIR'};
  $id_count= 0;
  $tmp_table_count;

  open(FILE, "$datadir/ddl.log") or
    die("Unable to read log file $datadir/ddl.log: $!\n");
  while(<FILE>)
  {
    chop;
    if (/([^\t]*)[\t]([^\t]*)[\t]([^\t]*)[\t]([^\t]*)[\t]([^\t]*)[\t]([^\t]*)[\t]([^\t]*)[\t]([^\t]*)[\t]([^\t]*)[\t]([^\t]*)[\t]([^\t]*)[\t]([^\t]*)/)
    {
      my $date = $1;
      my $query = $2;
      my $storage = $3;
      my $partitioned = $4;
      my $db = $5;
      my $table = $6;
      my $table_ver = $7;
      my $new_storage = $8;
      my $new_partitioned = $9;
      my $new_db = $10;
      my $new_table = $11;
      my $new_table_ver = $12;
      # Fix table ids
      $table_id1= "";
      $table_id2= "";
      if (!($table_ver eq ""))
      {
        $table_id1= "id: $id{$table_ver}";
        if (!exists($id{$table_ver}))
        {
          $id_count++;
          $table_id1= "id: $id_count";
          $id{$table_ver}= $id_count;
        }
      }
      if (!($new_table_ver eq ""))
      {
        $table_id2= "id: $id{$new_table_ver}";
        if (!exists($id{$new_table_ver}))
        {
          $id_count++;
          $table_id2= "id: $id_count";
          $id{$new_table_ver}= $id_count;
        }
      }
      # Fix table names
      $table_name1= $table;
      if (substr($table_name1,0,5) eq '@0023')
      {
        if (!exists($name{$table_name1}))
        {
          $tmp_table_count++;
          $name{$table_name1}= "#sql" . $tmp_table_count;
        }
        $table_name1= $name{$table_name1};
      }
      $table_name2= $new_table;
      if (substr($table_name2,0,5) eq '@0023')
      {
        if (!exists($name{$table_name2}))
        {
          $tmp_table_count++;
          $name{$table_name2}= "#sql" . $tmp_table_count;
        }
        $table_name2= $name{$table_name2};
      }

      print "$query,$storage,$partitioned,$db,$table_name1,$table_id1,$new_storage,$new_partitioned,$new_db,$table_name2,$table_id2\n";
    }
  }
EOF

Youez - 2016 - github.com/yon3zu
LinuXploit