Bug #60252 Workbench Utilities do not allow hyphens in host names
Submitted: 25 Feb 2011 14:44 Modified: 9 Jul 2012 19:12
Reporter: Joel Madigan Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Utilities Severity:S3 (Non-critical)
Version:5.2.31 OS:Any
Assigned to: Assigned Account CPU Architecture:Any

[25 Feb 2011 14:44] Joel Madigan
Description:
When attempting to connect to a host name containing hyphens using any of the python based command line utilities, the host name is truncated at the hyphen.

For example, when calling the mysqlmetagrep.py utility:

python mysqlmetagrep.py --server=johndoe@host-name 

The script will come back with error 2003:
Can't connect to MySQL server on 'host:3306'

How to repeat:
Attempt to connect to a host name containing hyphens.

Suggested fix:
In module mysql.utilities.common.options.py:

139c139
<     r"([\w+|\d+|.]+)"           # Domain name or IP address
---
>     r"([\w+|\d+|.|-]+)"           # Domain name or IP address
[27 Feb 2011 15:42] Valeriy Kravchuk
Thank you for the bug report and solution suggested. Verified on Windows XP.
[9 Jul 2012 19:12] Chuck Bell
Fixed in Release 1.0.2.