yoshinorim / mha4mysql-manager

Development tree of Master High Availability Manager and tools for MySQL (MHA), Manager part
http://code.google.com/p/mysql-master-ha/
GNU General Public License v2.0
1.47k stars 501 forks source link

extra square brackets in DBI connection string cause connection error #61

Open xiezhenye opened 8 years ago

xiezhenye commented 8 years ago

error log: [debug] Got MySQL error when connecting somehost(10.100.200.1:3306) :2005:Unknown MySQL server host '[10.100.200.1]' (1)

commit: https://github.com/yoshinorim/mha4mysql-manager/commit/35b3d9bab40d9a20940802b17d01e7306aa8d1bc#diff-0a6192c3f91649f626ccee1a77ca7ec3

abriel commented 7 years ago

dbi library must support that. https://rt.cpan.org/Public/Bug/Display.html?id=70640 . I concern that mha works fine on debian systems (look on https://github.com/grypyrg/mha4mysql-manager/pull/1 ), but RH package may not include that patch from CPAN. @xiezhenye , which system do you use? Thanks.

P.S. I have CentOS 6.8 with the same issue.

xiezhenye commented 7 years ago

I'm also using CentOS 6.8.

angeloxx commented 7 years ago

Same issue on RHEL7.3 with DBI 1.627 and DBD-mysql 4.023