Bug #67512 mysqldbcopy crashes (AttributeError: 'Server' object has no attribute 'name')
Submitted: 7 Nov 2012 21:12 Modified: 14 Nov 2012 2:40
Reporter: Filipus Klutiero Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Utilities Severity:S3 (Non-critical)
Version:1.1 OS:Windows (Vista)
Assigned to: CPU Architecture:Any

[7 Nov 2012 21:12] Filipus Klutiero
Description:
mysqldbcopy apparently doesn't work here, attempting to copy a schema on a remote machine:

C:\Program Files\MySQL\MySQL Workbench 5.2 CE\utilities>mysqldbcopy.exe --source
=cohtaxion:pass@metis.lan.gvq:3306 --destination=cohtaxion:pass@metis.lan.gvq:3306
 cohtaxionjp:cohtaxionpc
# Source on metis.lan.gvq: ... connected.
Traceback (most recent call last):
  File "C:\Program Files\MySQL\MySQL Workbench 5.2 CE\utilities\scripts\mysqldbcopy.py", line 203, in <module>    dbcopy.copy_db(source_values, dest_values, db_list, options)
  File "C:\Program Files\MySQL\MySQL Workbench 5.2 CE\python\mysql_libs.zip\mysql\utilities\command\dbcopy.py", line 216, in copy_db
  File "C:\Program Files\MySQL\MySQL Workbench 5.2 CE\python\mysql_libs.zip\mysql\utilities\common\server.py", line 333, in connect_servers
AttributeError: 'Server' object has no attribute 'name'
Unable to start mysqldbcopy, please verify that your installation is correct

I got the utilities with MySQL Workbecnh 5.2.44.

How to repeat:
Run the command on an affected machine.
[12 Nov 2012 15:09] MySQL Verification Team
I can't repeat:

C:\Program Files (x86)\MySQL\MySQL Workbench 5.2 CE\utilities>mysqldbcopy --source=root:miguel@localhost:3306 --destination=miguel:miguel@192.168.1.35:3306
 cis_admin:cis_admin
# Source on localhost: ... connected.
# Destination on 192.168.1.35: ... connected.
# Copying database cis_admin renamed as cis_admin
# Copying TABLE cis_admin.table1
# Copying PROCEDURE cis_admin.core_GrantExecute
# Copying data for TABLE cis_admin.table1
#...done.
[13 Nov 2012 14:15] Chuck Bell
Fixed by BUG#14711565 in release-1.1.1
[14 Nov 2012 2:40] Filipus Klutiero
Fixed by what, Chuck?
[20 Nov 2012 18:57] Chuck Bell
By this. It appears twice in the code. If the server class return None the original code will fail.

    if not _require_version(source, version):
        raise UtilError("The %s version is incompatible. Utility "
                        "requires version %s or higher." %
-                        (source.name, version))
+                        (src_name, version))
[6 Nov 2014 23:10] Sandro Tosi
Indeed, this has not been fixed in 1.6.0.
[6 Nov 2014 23:12] Sandro Tosi
sigh, i read the patch backwards... it is fixed :)