OS: Windows 7 64-bit
Application using the ODBC Data Soruce: Excel of Office 2010 Pro 32-bit
ODBC Driver: mysql-connector-odbc-5.2.5-winx64.msi
Error Message:
[Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application
Solution:
This “excel mysql odbc architecture mismatch” error on my newly installed 64-bit Windows 7 has puzzled me for a while and finally I’ve found the solution as described in the following steps:
1. uninstall 64-bit ODBC driver (mysql-connector-odbc-5.2.5-winx64.msi)
2. install 32-bit ODBC (driver mysql-connector-odbc-5.1.10-win32.msi)
3. Configure ODBC using the following tool (Do not use the 64bit ODBC configration tool in Control Panel)
Configuration tool: C:\Windows\SysWOW64\odbcad32.exe
Notes:
If you used the 64bit ODBC configration tool in Control Panel Control Panel\All Control Panel Items\Administrative Tools\Data Sources (ODBC), you will not be able to see any the 32-bit mysql ODBC driver when you try to add to new data source.