Bug #71628 mysqlcloneserver made some useless file & argument for Windows platform.
Submitted: 7 Feb 2014 16:30 Modified: 18 Apr 2014 4:29
Reporter: Meiji Kimura Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Utilities Severity:S3 (Non-critical)
Version:1.3.6 OS:Windows
Assigned to: Jose Israel Gomez Delgado CPU Architecture:Any

[7 Feb 2014 16:30] Meiji Kimura
Description:
mysqlserverclone makes a startup script with -w option. But it's use less format for windows like below.

# Startup command generated by mysqlserverclone.
['C:\\Program Files\\MySQL\\MySQL Server 5.6\\bin\\mysqld.exe', '--no-defaults', '--datadir=c:\\users\\meiji\\data2', '--tmpdir=c:\\users\\meiji\\data2', '--pid-file=c:\\users\\meiji\\data2\\clone.pid', '--port=3307', '--server-id=2', '--basedir=C:\\Program Files\\MySQL\\MySQL Server 5.6', '--socket=c:\\users\\meiji\\data2\\mysql.sock']

I think this format for python subprocess.

http://docs.python.org/2.7/library/subprocess.html#module-subprocess

But MySQL Utilities for windows provided as *.exe format, they don't need python environment, so it's useless for windows environment.

When a user specify startup.sh for -w option, mysqlcloneserver add 1st line for shell script. but it seems also useless because ['executerble', 'option1', ... ,'optionn'] format is not executed as normal shell script.

How to repeat:
mysqluc> mysqlserverclone --server=root:root@localhost:3306 --new-data=c:/users/
meiji/data2 --root-password=root -w c:/users/meiji/start.bat
# Cloning the MySQL server running on localhost.
# Creating new data directory...
# Configuring new instance...
# Locating mysql tools...
# Setting up empty database and mysql tables...
# Starting new instance of the server...
# Testing connection to new instance...
# Success!
# Setting the root password...
# Connection Information:
#  -uroot -proot --port=3307
#...done.

Suggested fix:
The format of file should be transformed to nomal shell(POSIX), bat(Windows) format.
[4 Mar 2014 23:05] Chuck Bell
Fixed in release-1.4.2
[18 Apr 2014 4:29] Philip Olson
Fixed as of MySQL Utilities 1.4.2, and here's the changelog entry:

On Microsoft Windows, the "mysqlserverclone" utility with the
"--write-command" option would generate a script using surrounding Python
subprocess.call style square [brackets].

Thank you for the bug report.