mysql failed connecting to MS Access - mysql

I'm trying to transfer my database from Microsoft Access to MySQL (I'm using MySQL workbench). for that I need to connect MySQL to Access but I'm facing some problems.
I'm following these guidelines:
https://dev.mysql.com/doc/workbench/en/wb-migration-database-access.html
when testing the connection it shows this error message:
Unhandled exception: grt.Dict key must be string.
I checked the log for more information and this is what I found :
Starting...
Connect to source DBMS...
- Connecting to source...
Connecting to ...
Opening ODBC connection to DSN=northwind...
Traceback (most recent call last):
File "C:\Program Files\MySQL\MySQL Workbench 8.0 CE\modules\db_msaccess_re_grt.py", line 701, in connect
return MsAccessReverseEngineering.connect(connection, password)
File "C:\Program Files\MySQL\MySQL Workbench 8.0 CE\modules\db_msaccess_re_grt.py", line 152, in connect
con = db_driver.connect(connection, password)
File "C:\Program Files\MySQL\MySQL Workbench 8.0 CE\workbench\db_driver.py", line 95, in connect
connection = library.connect(connection_string, password=password)
pyodbc.Error: ('HY000', 'The driver did not supply an error!')
Traceback (most recent call last):
File "C:\Program Files\MySQL\MySQL Workbench 8.0 CE\workbench\wizard_progress_page_widget.py", line 71, in run
self.func()
File "C:\Program Files\MySQL\MySQL Workbench 8.0 CE\modules\migration_source_selection.py", line 456, in task_connect
username = self.main.plan.migrationSource.connection.parameterValues.userName
KeyError: 'grt.Dict key must be a string'
ERROR: Error during Connect to source DBMS: 'grt.Dict key must be a string'
ERROR: Exception in task 'Connect to source DBMS': KeyError('grt.Dict key must be a string',)
Failed
It seems that I need to make some changes in the files but I don't have any idea how to do that and I couldn't find answers to that online.

Hello this is late [very]. The solution that worked for me was making sure during adding a DSN (Data Source Name) you added your database [as in the ms access file]
See this image if my words aren't clear:

You see this error if you're trying to migrate data from an old-format database (Access < 2010 .mdb file) using a newer ODBC connector. First save the file in a more recent format first (.accdb), and then try the migration again.

Related

Error Connecting QODBC to MySQL through migration wizard

I am currently attempting to migrate my QB Data through QODBC to my MySQL server, however I have run into the following error:
Starting...
Connect to source DBMS...
- Connecting to source...
Connecting to ...
Opening ODBC connection to DSN=QuickBooks Data 64-Bit QRemote...
Connected
Connect to source DBMS done
Check target DBMS connection...
- Connecting to target...
Check target DBMS connection done
Retrieve schema list from source....
- Checking connection...
Connection to apparently lost, reconnecting...
Connecting to ...
Opening ODBC connection to DSN=QuickBooks Data 64-Bit QRemote...
Connected
- Fetching catalog names...
Traceback (most recent call last):
File "C:\Program Files\MySQL\MySQL Workbench 8.0 CE\modules\db_sql92_re_grt.py", line 368, in getCatalogNames
return Sql92ReverseEngineering.getCatalogNames(connection)
File "C:\Program Files\MySQL\MySQL Workbench 8.0 CE\modules\db_sql92_re_grt.py", line 43, in getCatalogNames
return sorted(list(set(row[0] for row in cls.execute_query(connection, 'SELECT TABLE_CATALOG FROM INFORMATION_SCHEMA.TABLES'))) )
File "C:\Program Files\MySQL\MySQL Workbench 8.0 CE\modules\db_generic_re_grt.py", line 80, in execute_query
return cls.get_connection(connection_object).cursor().execute(query, *args, **kwargs)
pyodbc.ProgrammingError: ('42000', '[42000] [QODBC] Unexpected extra token: . (11017) (SQLExecDirectW)')
Traceback (most recent call last):
File "C:\Program Files\MySQL\MySQL Workbench 8.0 CE\workbench\wizard_progress_page_widget.py", line 197, in thread_work
self.func()
File "C:\Program Files\MySQL\MySQL Workbench 8.0 CE\modules\migration_source_selection.py", line 469, in task_fetch_schemata
self.main.plan.migrationSource.doFetchSchemaNames(only_these_catalogs)
File "C:\Program Files\MySQL\MySQL Workbench 8.0 CE\modules\migration.py", line 245, in doFetchSchemaNames
catalog_names = self.getCatalogNames()
File "C:\Program Files\MySQL\MySQL Workbench 8.0 CE\modules\migration.py", line 209, in getCatalogNames
return self._rev_eng_module.getCatalogNames(self.connection)
SystemError: ProgrammingError("('42000', '[42000] [QODBC] Unexpected extra token: . (11017) (SQLExecDirectW)')"): error calling Python module function DbSql92RE.getCatalogNames
ERROR: Retrieve schema list from source: ProgrammingError("('42000', '[42000] [QODBC] Unexpected extra token: . (11017) (SQLExecDirectW)')"): error calling Python module function DbSql92RE.getCatalogNames
Failed
What should I do? I'm not quite sure how to diagnose this situation.
Instead of SELECT TABLE_CATALOG FROM INFORMATION_SCHEMA.TABLES use sp_tables
Please refer to http://qodbc.com/links/2342

MS Access Migration to MySQL Connect to Source Error

I am currently in the process of migrating my Access 2019 database to a MySQL server.
I have tried a number of different avenues, but ultimately when using the MySQL Workbench Migration Wizard, I get the following error log:
Connect to source DBMS...
- Connecting...
Connecting to ...
Opening ODBC connection to DSN=LSCBDPORTAL...
Traceback (most recent call last):
File "C:\Program Files\MySQL\MySQL Workbench 8.0 CE\modules\db_msaccess_re_grt.py", line 701, in connect
return MsAccessReverseEngineering.connect(connection, password)
File "C:\Program Files\MySQL\MySQL Workbench 8.0 CE\modules\db_msaccess_re_grt.py", line 152, in connect
con = db_driver.connect(connection, password)
File "C:\Program Files\MySQL\MySQL Workbench 8.0 CE\workbench\db_driver.py", line 95, in connect
connection = library.connect(connection_string, password=password)
pyodbc.Error: ('HY000', 'The driver did not supply an error!')
Traceback (most recent call last):
File "C:\Program Files\MySQL\MySQL Workbench 8.0 CE\workbench\wizard_progress_page_widget.py", line 71, in run
self.func()
File "C:\Program Files\MySQL\MySQL Workbench 8.0 CE\modules\migration_schema_selection.py", line 172, in task_connect
if not self.main.plan.migrationSource.connect():
File "C:\Program Files\MySQL\MySQL Workbench 8.0 CE\modules\migration.py", line 199, in connect
self._rev_eng_module.connect(self.connection, self.password or "")
SystemError: Error("('HY000', 'The driver did not supply an error!')"): error calling Python module function DbMsAccessRE.connect
ERROR: Error during Connect to source DBMS: Error("('HY000', 'The driver did not supply an error!')"): error calling Python module function DbMsAccessRE.connect
ERROR: Exception in task 'Connect to source DBMS': SystemError('Error("(\'HY000\', \'The driver did not supply an error!\')"): error calling Python module function DbMsAccessRE.connect',)
Failed
I expected to have this work seamlessly because of how simple this database is. I must be configuring something wrong early in the migration process.
go to control panel /uninstall all access 2016 or 2010 engine
open MS access then close it
start migration

Migration DB2 to MySQL using MySQL Workbench 6.2 5 Error

Does MySql workbench support the DB2 to MySql migration ?
Steps I followed :
Installed DB2 ODBC driver and and defined the conection parameters for my DB2 database in 'Source Selection'.
I am using Database System as "Generic RDBMS" and Connection Method as "ODBC Data Source" and DSN with DB2 ODBC driver.
Defined the MySql database details in 'Target Selection'
When I do next and it goes to 'Fetch Schema List', I get error as below. Although my source and target database connection successful.
Error logs from workbench as follows :
Starting...
Connect to source DBMS...
Connecting to source...
Connection to apparently lost, reconnecting...
Connecting to ...
Opening ODBC connection to DSN=EESBPTS...
Connected
Connect to source DBMS done
Check target DBMS connection...
Connecting to target...
Check target DBMS connection done
Retrieve schema list from source....
Checking connection...
Connection to apparently lost, reconnecting...
Connecting to ...
Opening ODBC connection to DSN=EESBPTS...
Connected
Fetching catalog names...
Fetching schema names...
Fetching schema names from None...
Traceback (most recent call last):
File "C:\Program Files\MySQL\MySQL Workbench 6.2 CE\workbench\wizard_progress_page_widget.py", line 192, in thread_work
self.func()
File "C:\Program Files\MySQL\MySQL Workbench 6.2 CE\modules\migration_source_selection.py", line 456, in task_fetch_schemata
self.main.plan.migrationSource.doFetchSchemaNames(only_these_catalogs)
File "C:\Program Files\MySQL\MySQL Workbench 6.2 CE\modules\migration.py", line 255, in doFetchSchemaNames
self.state.sourceSchemataNames.append("%s.%s" % (self._db_module.quoteIdentifier(catalog), self._db_module.quoteIdentifier(schema)))
TypeError: DbGenericRE.quoteIdentifier(): argument 1 must be a string but is None
ERROR: Retrieve schema list from source: DbGenericRE.quoteIdentifier(): argument 1 must be a string but is None
Failed
Please help me to proceed further.

How to create a new MySQL server instance in workbench?

I'm using:
Mac OS X
MySQL Ver 14.14 Distrib 5.6.27
And latest MySQL workbench, which, for some reason, still telling me, that it uses MySQl version 5.6.24.
So, I could create new connections, but when I try to configure local management, in stage of test settings I always get:
Error: error calling Python module function
WbAdmin.testInstanceSettingByName
Check if /etc/my.cnf can be accessed File was found at the expected
location Check if section for instance mysqld exists in /etc/my.cnf
Traceback (most recent call last): File
"/Applications/MySQLWorkbench.app/Contents/Resources/plugins/wb_admin_grt.py",
line 777, in testInstanceSettingByName
if check_if_config_file_has_section(open(config_file, "r"), section): IOError: [Errno 13] Permission denied: '/etc/my.cnf'
Operation failed: error calling Python module function
WbAdmin.testInstanceSettingByName
I suppose, that it is caused by absence of any server instances. When I try to Rescan for Local MySQL Servers, I get message:
No servers were found.
So, what's wrong? How to solve this problem, how to create a server instance?

Cannot connect to MySQL during Migration in workbenck. Can't connect to MySQL (10061) (code 2003)

I'm using MySql Workbench to connect to a remote MySQL instance. I have a connection setting that allows me query tables, create tables... but it fails when I try to migrate data from Microsoft SQL Server to MySQL.
Here are the steps:
Database -> migration... Enter the connection data for Source DBMS -> test connection pass. Enter the source DBMS select the existing saved connection -> test connection pass. Go to next step.
I receive the error Can't connect to MySQL server on '127.0.0.1' (10061) (code 2003).
Below the complete log. Any ideas?
> Starting...
Connect to source DBMS...
- Connecting to source...
Connect to source DBMS done
Check target DBMS connection...
- Connecting to target...
Connecting to Mysql#localhost::3306#localhost:32222...
Traceback (most recent call last):
File "C:\Program Files (x86)\MySQL\MySQL Workbench 5.2 CE\modules\db_mysql_fe_grt.py", line 137, in connect
con.connect()
File "C:\Program Files (x86)\MySQL\MySQL Workbench 5.2 CE\workbench\db_utils.py", line 169, in connect
raise MySQLError(modules.DbMySQLQuery.lastError(), modules.DbMySQLQuery.lastErrorCode(), "%s#%s" % (self.connect_info.parameterValues["userName"], self.connect_info.parameterValues["hostName"]))
workbench.db_utils.MySQLError: Can't connect to MySQL server on '127.0.0.1' (10061) (code 2003)
Connecting to Mysql#localhost::3306#localhost:32222...
Traceback (most recent call last):
File "C:\Program Files (x86)\MySQL\MySQL Workbench 5.2 CE\modules\db_mysql_fe_grt.py", line 137, in connect
con.connect()
File "C:\Program Files (x86)\MySQL\MySQL Workbench 5.2 CE\workbench\db_utils.py", line 169, in connect
raise MySQLError(modules.DbMySQLQuery.lastError(), modules.DbMySQLQuery.lastErrorCode(), "%s#%s" % (self.connect_info.parameterValues["userName"], self.connect_info.parameterValues["hostName"]))
workbench.db_utils.MySQLError: Can't connect to MySQL server on '127.0.0.1' (10061) (code 2003)
Traceback (most recent call last):
File "C:\Program Files (x86)\MySQL\MySQL Workbench 5.2 CE\workbench\wizard_progress_page_widget.py", line 65, in run
self.func()
File "C:\Program Files (x86)\MySQL\MySQL Workbench 5.2 CE\modules\migration_source_selection.py", line 450, in task_test_target
raise e
SystemError: MySQLError("Can't connect to MySQL server on '127.0.0.1' (10061) (code 2003)"): error calling Python module function DbMySQLFE.connect
ERROR: Error during Check target DBMS connection: MySQLError("Can't connect to MySQL server on '127.0.0.1' (10061) (code 2003)"): error calling Python module function DbMySQLFE.connect
Traceback (most recent call last):
File "C:\Program Files (x86)\MySQL\MySQL Workbench 5.2 CE\workbench\wizard_progress_page_widget.py", line 543, in update_status
task.run()
File "C:\Program Files (x86)\MySQL\MySQL Workbench 5.2 CE\workbench\wizard_progress_page_widget.py", line 80, in run
raise e
SystemError: MySQLError("Can't connect to MySQL server on '127.0.0.1' (10061) (code 2003)"): error calling Python module function DbMySQLFE.connect
ERROR: Exception in task 'Check target DBMS connection': SystemError('MySQLError("Can\'t connect to MySQL server on \'127.0.0.1\' (10061) (code 2003)"): error calling Python module function DbMySQLFE.connect',)
I got the same error in MySQL Workbench 5.2.47 with two MySQL databases which work fine otherwise. It seems like a bug and I am surprised Oracle released a non-working wizard.
A workaround is to use Server Administration in Workbench for the two databases and use Data Export and Data Import/Restore respectively. However, this only works if you migrate from MySQL to MySQL. In addition, Data Export/Import functionality is buggy too.