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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/rpl/t/rpl_lcase_tblnames_rewrite_db.test
# BUG#37656
#
# DESCRIPTION
#
#
#  This test case is tests whether replication works properly when
#  slave is configured with --lower-case-table-names=1 and replication
#  rewrite rules are in effect.
#
#  It checks four issues:
# 
#   (i) master contains capitalized table name
#
#  (ii) slave contains lowered case table name
#
# (iii) master and slave tables do not differ
#
--source include/not_group_replication_plugin.inc
-- source include/not_windows.inc
-- source include/not_lowercase1.inc
-- source include/master-slave.inc

SET SQL_LOG_BIN=0;
CREATE DATABASE B37656;
SET SQL_LOG_BIN=1;

-- connection slave
CREATE DATABASE BUG37656;

-- echo ### action: show that database on slave is created in lowercase
SHOW DATABASES LIKE '%37656';

-- connection master
USE B37656;
CREATE TABLE T1 (a int);
INSERT INTO T1 VALUES (1);

-- echo ### assertion: master contains capitalized case table
# this fixes result mismatches for MacOSX
--replace_result Tables_in_b37656 Tables_in_B37656
SHOW TABLES;

--source include/sync_slave_sql_with_master.inc

use bug37656;

-- echo ### assertion: slave contains lowered case table
SHOW TABLES;

-- echo ### assertion: master and slave tables do not differ
-- let $diff_tables= master:B37656.T1, slave:bug37656.t1
-- source include/diff_tables.inc

-- connection master
SET SQL_LOG_BIN=0;
DROP DATABASE B37656;
SET SQL_LOG_BIN=1;
SHOW DATABASES LIKE '%37656';

-- connection slave
DROP DATABASE BUG37656;
SHOW DATABASES LIKE '%37656';

--source include/rpl_end.inc

Youez - 2016 - github.com/yon3zu
LinuXploit