403Webshell
Server IP : 172.67.216.182  /  Your IP : 104.23.175.189
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/ndb_rpl/r/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/ndb_rpl/r/ndb_rpl_init_rep_status.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]
reset master;
stop slave;
Generate something in the Masters Binlog
use test;
create table t1 (a int primary key, b int) engine=ndb;
insert into t1 values (1,1);
Initial state
select * from mysql.ndb_apply_status;
server_id	epoch	log_name	start_pos	end_pos
Ndb_slave_max_replicated_epoch: 0
select @slave_server_id:= @@server_id;
@slave_server_id:= @@server_id
2
Default, no data, max replicated epoch will be 0.
reset slave;
start slave;
select server_id from mysql.ndb_apply_status order by server_id;
server_id
1
Ndb_slave_max_replicated_epoch: 0
Default, load of own serverid from ndb_apply_status, should be 111
drop table test.t1;
stop slave;
reset slave;
insert into mysql.ndb_apply_status values (@slave_server_id, 111, 'Fictional log', 222, 333);
start slave;
select server_id from mysql.ndb_apply_status order by server_id;
server_id
1
2
Ndb_slave_max_replicated_epoch: 111
drop table test.t1;
Check that reset slave resets Ndb_slave_max_replicated_epoch
stop slave;
Ndb_slave_max_replicated_epoch: 111
reset slave;
Ndb_slave_max_replicated_epoch: 0
Multiple-channel, load highest of configured serverids, should be 222
set @other_local_server_id=@slave_server_id+1;
set @other_remote_server_id=@slave_server_id+2;
insert into mysql.ndb_apply_status values (@slave_server_id, 111, 'Fictional log', 222, 333);
insert into mysql.ndb_apply_status values (@other_local_server_id, 222, 'Fictional log', 222, 333);
insert into mysql.ndb_apply_status values (@other_remote_server_id, 444, 'Fictional log', 222, 333);
CHANGE MASTER TO IGNORE_SERVER_IDS=(3);;
start slave;
select server_id from mysql.ndb_apply_status order by server_id;
server_id
1
2
3
4
Ndb_slave_max_replicated_epoch: 222
stop slave;
CHANGE MASTER TO IGNORE_SERVER_IDS= ();
start slave;
drop table test.t1;
include/rpl_end.inc

Youez - 2016 - github.com/yon3zu
LinuXploit