Giter Site home page Giter Site logo

源代码 about mha-re-edition HOT 15 OPEN

hcymysql avatar hcymysql commented on August 13, 2024
源代码

from mha-re-edition.

Comments (15)

hcymysql avatar hcymysql commented on August 13, 2024 1

同问。

密码有特殊字符,调整下方法 configparser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: '%a'

已解决,重新拉取可执行文件覆盖即可。我这边测试的密码是:password = O@pl/GI:4i&&3a$8

from mha-re-edition.

Aaron-kk avatar Aaron-kk commented on August 13, 2024

同问。

密码有特殊字符,调整下方法
configparser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: '%a'

from mha-re-edition.

Aaron-kk avatar Aaron-kk commented on August 13, 2024

同问。
密码有特殊字符,调整下方法 configparser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: '%a'

已解决,重新拉取可执行文件覆盖即可。我这边测试的密码是:password = O@pl/GI:4i&&3a$8

已测试 正常了,感谢。
ps:如果可以支持密码不使用明文配置就更好了^^

from mha-re-edition.

Aaron-kk avatar Aaron-kk commented on August 13, 2024

局部变量问题,麻烦看下
Traceback (most recent call last):
File "masterha_manager_mysql.py", line 963, in
File "masterha_manager_mysql.py", line 409, in MasterMonitor
UnboundLocalError: local variable 'current_master_ssh_info' referenced before assignment

from mha-re-edition.

hcymysql avatar hcymysql commented on August 13, 2024

current_master_ssh_info
Centos6系统 /sbin/ip;
Centos7系统 /usr/sbin/ip

Cenots6系统创建一个软连接:
ln -s /sbin/ip /usr/sbin/ip

app1.cnf配置文件
[server1]
ip = 172.19.136.32
port = 3306
user = special_character
password = O@pl/GI:4i&&3a$8
ssh_user = root
ssh_port = 22
ssh_password = 123456

[server2]
ip = 172.19.136.33
port = 3307
user = special_character
password = O@pl/GI:4i&&3a$8
ssh_user = root
ssh_port = 22
ssh_password = 123456

[server3]
ip = 172.19.136.34
port = 3308
user = special_character
password = O@pl/GI:4i&&3a$8
ssh_user = root
ssh_port = 22
ssh_password = 123456

from mha-re-edition.

liuflylove666 avatar liuflylove666 commented on August 13, 2024

@hcymysql 源码开放吗?

from mha-re-edition.

Aaron-kk avatar Aaron-kk commented on August 13, 2024

UnboundLocalError: local variable 'current_master_ssh_info' referenced before assignment
Cenots6系统创建一个软连接:
ln -s /sbin/ip /usr/sbin/ip

我这边测试机器是Centos7,报错应该不是ip命令的原因,看起来是变量引用的问题 @hcymysql

from mha-re-edition.

hcymysql avatar hcymysql commented on August 13, 2024

请问一下,你那边的环境是怎样的?是3台机器部署的MYSQL主从复制集群吗?

from mha-re-edition.

hcymysql avatar hcymysql commented on August 13, 2024

UnboundLocalError: local variable 'current_master_ssh_info' referenced before assignment
Cenots6系统创建一个软连接:
ln -s /sbin/ip /usr/sbin/ip

我这边测试机器是Centos7,报错应该不是ip命令的原因,看起来是变量引用的问题 @hcymysql

请再重新拉取一下masterha_manager_mysql这个文件,我增加了一个变量声明。

from mha-re-edition.

Aaron-kk avatar Aaron-kk commented on August 13, 2024

请问一下,你那边的环境是怎样的?是3台机器部署的MYSQL主从复制集群吗?

我这边是mysql5.7.22 一主两从3个实例(这里的主是跨机房级联的2级从库),分别部署在三台物理机Centos7.9 内核4.20,端口一致,网卡做了team聚合。

拉取了最新的可执行文件,报错如下
Traceback (most recent call last):
File "masterha_manager_mysql.py", line 963, in
File "masterha_manager_mysql.py", line 410, in MasterMonitor
IndexError: list index out of range

from mha-re-edition.

hcymysql avatar hcymysql commented on August 13, 2024

请问一下,你那边的环境是怎样的?是3台机器部署的MYSQL主从复制集群吗?

我这边是mysql5.7.22 一主两从3个实例(这里的主是跨机房级联的2级从库),分别部署在三台物理机Centos7.9 内核4.20,端口一致,网卡做了team聚合。

拉取了最新的可执行文件,报错如下 Traceback (most recent call last): File "masterha_manager_mysql.py", line 963, in File "masterha_manager_mysql.py", line 410, in MasterMonitor IndexError: list index out of range

请问第一步./masterha_check_repl_mysql --conf=app1.cnf 环境配置测试通过吗?

from mha-re-edition.

Aaron-kk avatar Aaron-kk commented on August 13, 2024

请问第一步./masterha_check_repl_mysql --conf=app1.cnf 环境配置测试通过吗?

通过的

from mha-re-edition.

hcymysql avatar hcymysql commented on August 13, 2024

你这样,用一个vmware虚拟3台centos7,安装MySQL5.7,干净的环境。你再试试。

我这边测试,没有问题的。

from mha-re-edition.

Aaron-kk avatar Aaron-kk commented on August 13, 2024

好的,我测试下

from mha-re-edition.

hcymysql avatar hcymysql commented on August 13, 2024

请问有源代码下载地址没

已开放下载。

from mha-re-edition.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.