下面是代码片段(这里的mysql是的一个实例): try mysql.execute("INSERT INTO ...") print(error) // here will print out the actual MySQL error message
return error.localizedDescription // return "The operation couldn’t be completed. (MySQL.Error error 6.)" The real message from
Program Files (x86)\MySQL\MySQL Workbench 5.2 CE\workbench\db_utils.py", line 169, in connect raise MySQLError5.2 CE\modules\migration_source_selection.py