Skip navigation links

User Comments

Posted by Djordje Zurovac on August 3 2015 12:23pm[Delete] [Edit]

http://dev.mysql.com/doc/connector-odbc/en/connector-odbc-installation-binary-windows-dll.html

In the next page section is omitted parameter -n (name of driver used to uninstall). Therefore, the myodbc installer command execution results in an error.

7. Finally, register the Connector/ODBC driver with the ODBC manager:

For Unicode-enabled driver:
C:\> myodbc-installer -a -d -t"MySQL ODBC 5.2 Driver;\
DRIVER=myodbc5w.dll;SETUP=myodbc5S.dll"

For ANSI driver:
C:\> myodbc-installer -a -d -t"MySQL ODBC 5.2 Driver;\
DRIVER=myodbc5a.dll;SETUP=myodbc5S.dll"

-------

Correct is:

For Unicode-enabled driver:
C:\> myodbc-installer -a -d -n "MySQL ODBC 5.2 Driver" \
-t "DRIVER=myodbc5w.dll;SETUP=myodbc5S.dll"

For ANSI driver:
C:\> myodbc-installer -a -d -n "MySQL ODBC 5.2 Driver" \
-t "DRIVER=myodbc5a.dll;SETUP=myodbc5S.dll"