Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to implement replication check script in Mysql

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces Mysql how to achieve replication check script, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.

#! / usr/bin/env bash

Base_dir= "/ home/mysql/mysql-5.7.20-linux-glibc2.12-x86_64"

Mysql_host= "10.1.1.1"

Mysql_user= "bkp_user"

Mysql_psw= "password"

Mysql_port= "3306"

Function get_v ()

{

If test-f / tmp/mysql_slave.txt; then

# for ((iUniversitt.com tmpUniverse mysqlslave.txt

For ((iTun1)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report