Replication
Lowy Shin edited this page Mar 17, 2021
·
2 revisions
- Master
show master status;
-- Check Master position
-- if null, this server is slave or stand-alone
- Slave
show slave status;
-- Check master position and slave position
-- You can see result on master and slave
- If replication is broken and reconnect
/* on Slave
*/
show slave status;
-- get Master_Log_file
-- get Exec_Master_Log_Pos
STOP SLAVE;
RESET SLAVE;
CHANGE MASTER TO MASTER_LOG_FILE='<Master_Log_file>', MASTER_LOG_POS=<Exec_Master_Log_Pos>;
START SLAVE;
show slave status;
/* on Master =====================
*/
RESET MASTER;
FLUSH TABLES WITH READ LOCK;
SHOW MASTER STATUS;
-- get Master_Log_file
-- get Master_Log_Pos
/* run mysqldump on ssh
mysqldump mydata.sql
*/
UNLOCK TABLES;
/* on Slave =====================
*/
STOP SLAVE;
/* import from ssh
mysql -uroot -p < mydata.sql
*/
RESET SLAVE;
CHANGE MASTER TO MASTER_LOG_FILE='<Master_Log_file>', MASTER_LOG_POS=<Master_Log_Pos>;
START SLAVE;
show slave status;
-
Knowledgebase
-
for edit page
- KB wiki is multi-lingual writing. If you want translate to your language, use google translate!
- Go to giip service Page : http://giipweb.littleworld.net
- Documentation : https://github.com/LowyShin/giip/wiki
- Sample automation scripts : https://github.com/LowyShin/giip/tree/gh-pages/giipscripts
See more : https://github.com/LowyShin/giip/wiki
- Token exchanges : https://tokenjar.io/GIIP
- Token exchanges manual : https://www.slideshare.net/LowyShin/giipentokenjario-giip-token-trade-manual-20190416-141149519
- GIIP Token Etherscan : https://etherscan.io/token/0x33be026eff080859eb9dfff6029232b094732c52
If you want get GIIP, contact us any time!
- LowyWorkEnv : https://github.com/LowyShin/Lowyworkenv/wiki
- CLoud RDBMS比較
- MachineLearning
- SQL Server
- ORACLE
- MySQL
- mariadh
- Redis with MySQL
- Mongodb
- Apache-Drill
- A5MK2-MultiDBMSTool
- BI
- Referrals
- Juliaの自動微分パッケージ Zygote の紹介
- color code table
- Canva - free Online Design tool
- vscode
- git(github)
- GoogleSheet
- UiPath(RPA)
- WinAutomation(official)
- Excel
- VNC
- VPN
- Note Tool
- Blog
- google news alert
- Online PDF to JPG
- LoadTest " putty
- Shell/bash
- crontab
- PowerShell
- Windows(DOS) batch
- Wscript/wsf
- AWS
- Azure
- File Sync(rsync, scp...)
- KnownPort(wikipedia)
- CentOS(Linux)
- Windows10
- Android