Bug #59096 Mysqluserclone requires double entry of connection information
Submitted: 21 Dec 2010 16:49 Modified: 9 Jul 2012 19:09
Reporter: Mats Kindahl Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Utilities Severity:S4 (Feature request)
Version: OS:Any
Assigned to: Assigned Account CPU Architecture:Any

[21 Dec 2010 16:49] Mats Kindahl
Description:
When mysqluserclone is used to create new users from old ones, both --source and --destination have to be given even if they are identical.

How to repeat:
$ mysqluserclone --source=root:xyzzy@localhost  \
> --destination=root:password@localhost \
> mats@localhost chuck:xyzzy@localhost
# Source on localhost: ... connected.
# Destination on localhost: ... connected.
# Cloning 1 users...
# Cloning mats@localhost to user chuck:xyzzy@localhost 
# ...done.

Suggested fix:
Two alternative solutions:
1. Make --destination optional and default to the connection information
   provided by --source.
2. Introduce a --server option that is equivalent to setting --source and
   --destination to the same value.
[12 Jan 2011 16:00] Chuck Bell
Patch ready for review

Attachment: 59096.bundle (application/octet-stream, text), 6.01 KiB.

[12 Jan 2011 16:00] Chuck Bell
Ready for review.
[9 Jul 2012 19:09] Chuck Bell
Fixed in 1.0.1dev1.