⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.124
Server IP:
50.28.103.30
Server:
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
server
/
mysql
/
mysql-test
/
include
/
View File Name :
ndb_setup_slave.inc
# # now setup replication to continue from last epoch # 1. get ndb_apply_status epoch from slave # 2. get corresponding _next_ binlog postition from master # 3. change master on slave # 1. --connection slave --replace_column 1 <the_epoch> SELECT @the_epoch:=MAX(epoch) FROM mysql.ndb_apply_status; --let $the_epoch= `select @the_epoch` # 2. --connection master --replace_result $the_epoch <the_epoch> --replace_column 1 <the_pos> --disable_query_log eval SELECT @the_pos:=Position, @the_file:=SUBSTRING_INDEX(REPLACE(FILE,'\\\\','/'), '/', -1) FROM mysql.ndb_binlog_index WHERE epoch > $the_epoch ORDER BY epoch ASC LIMIT 1; --enable_query_log --let $the_pos= `SELECT @the_pos` --let $the_file= `SELECT @the_file` # 3. --connection slave --replace_result $the_pos <the_pos> eval CHANGE MASTER TO master_log_file = '$the_file', master_log_pos = $the_pos ;