Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 650543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:03:53+00:00 2026-05-13T22:03:53+00:00

I have a 32-bit application that must run on a Windows x64 server using

  • 0

I have a 32-bit application that must run on a Windows x64 server using a 64-bit version of MySQL.
Should I use a 32-bit ODBC driver or a 64-bit ODBC driver?
Or should I install a 32-bit version of MySQL too?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T22:03:53+00:00Added an answer on May 13, 2026 at 10:03 pm

    I was able to

    1. install ODBC 32-bit on Windows 64-bit

    2. have my application (32-bit) running
      fine with 32-bit ODBC “against” 64-bit
      MySQL on 64-bit Windows OS (2008 R2)

    To achieve 1) I had to modify install.bat provided with the zip package of MySQL ODBC to take into account the fact that the 32-bit driver must be installed in c:\windows\syswow64.

    @ECHO OFF
    REM #########################################################
    REM
    REM \brief  Install myodbc.
    REM
    REM         This exists for those working with the Windows source
    REM         distribution.
    REM
    REM \sa     README.win
    REM
    REM #########################################################
    
    SET installdir=none
    IF EXIST %windir%\system\nul   SET installdir=%windir%\system
    IF EXIST %windir%\system32\nul SET installdir=%windir%\system32
    
    REM ****************************
    REM * check syswow64 folder too ...
    REM ****************************
    IF EXIST %windir%\syswow64\nul SET installdir=%windir%\syswow64
    
    IF %installdir%==none GOTO :doError5
    
    
    IF "%1"=="1" GOTO :doDebug
    IF "%1"=="0" GOTO :doNormal
    GOTO doSyntax
    
    :doNormal
    
    REM ****************************
    REM * syswow64 must be specified
    REM ****************************
    IF EXIST %installdir%\myodbc3i.exe GOTO :doError4
    
    REM ****
    REM * Find out the bin/lib directory, or use default
    REM ****
    SET libdir=lib
    SET bindir=bin
    IF EXIST lib\release\myodbc3.lib         SET libdir=lib\release
    IF EXIST lib\relwithdebinfo\myodbc3.lib  SET libdir=lib\relwithdebinfo
    IF EXIST bin\release\myodbc3i.exe        SET bindir=bin\release
    IF EXIST bin\relwithdebinfo\myodbc3i.exe SET bindir=bin\relwithdebinfo
    
    REM ****
    REM * Copying myodbc libraries and executables to install dir...
    REM ****
    IF NOT EXIST %bindir%\myodbc3c.exe GOTO :doError2
    IF NOT EXIST %libdir%\myodbc3.lib  GOTO :doError2
    IF NOT EXIST %libdir%\myodbc3S.lib GOTO :doError2
    IF NOT EXIST %bindir%\myodbc3i.exe GOTO :doError2
    IF NOT EXIST %bindir%\myodbc3m.exe GOTO :doError2
    copy %libdir%\myodbc3S.dll %installdir%
    copy %libdir%\myodbc3S.lib %installdir%
    copy %libdir%\myodbc3.dll  %installdir%
    copy %libdir%\myodbc3.lib  %installdir%
    copy %bindir%\myodbc3i.exe      %installdir%
    copy %bindir%\myodbc3m.exe      %installdir%
    copy %bindir%\myodbc3c.exe      %installdir%
    copy doc\*.hlp             %installdir%
    
    REM ****
    REM * Registering driver...
    REM *
    REM * We can do this with myodbc3i.exe or the MS Windows ODBCConf.exe. It
    REM * may be safer to use the ODBCConf.exe when we think about such things
    REM * as 64bit windows.
    REM ****
    
    REM ****************************
    REM * syswow64 must be specified
    REM ****************************
    %installdir%\myodbc3i -a -d -t"MySQL ODBC 3.51 Driver;DRIVER=%installdir%\myodbc3.dll;SETUP=%installdir%\myodbc3S.dll"
    
    GOTO doSuccess
    
    :doDebug
    REM ****
    REM * Find out the bin/lib directory, or use default
    REM ****
    SET libdir=lib
    IF EXIST lib\debug\myodbc3d.lib          SET libdir=lib\debug
    
    IF NOT EXIST %libdir%\myodbc3d.lib goto doError3
    IF NOT EXIST %libdir%\myodbc3E.lib goto doError3
    IF NOT EXIST %installdir%\myodbc3i.exe goto doError1
    REM ****
    REM * Copying myodbc debug libraries to install dir...
    REM ****
    copy %libdir%\myodbc3E.dll %installdir%
    copy %libdir%\myodbc3E.lib %installdir%
    copy %libdir%\myodbc3d.dll %installdir%
    copy %libdir%\myodbc3d.lib %installdir%
    
    REM ****
    REM * Registering driver...
    REM ****
    
    REM ****************************
    REM * syswow64 must be specified
    REM ****************************
    %installdir%\myodbc3i -a -d -t"MySQL ODBC 3.51 Driver (debug);DRIVER=myodbc3d.dll;SETUP=myodbc3E.dll"
    
    goto doSuccess
    
    
    :doSuccess
    ECHO "+-----------------------------------------------------+"
    ECHO "| DONE                                                |"
    ECHO "+-----------------------------------------------------+"
    ECHO "|                                                     |"
    ECHO "| Hopefully things went well; the Connector/ODBC      |"
    ECHO "| files have been copied to the system directory      |"
    ECHO "| and the driver has been registered.                 |"
    ECHO "|                                                     |"
    ECHO "| Connector/ODBC is ready to use.                     |"
    ECHO "|                                                     |"
    ECHO "| The most common thing to do next is to go to the    |"
    ECHO "| Control Panel and find the ODBC Administrator -     |"
    ECHO "| then use it to create a Data Source Name (DSN)      |"
    ECHO "| so you (and your application) can connect to a      |"
    ECHO "| MySQL server.                                       |"
    ECHO "|                                                     |"
    ECHO "+-----------------------------------------------------+"
    EXIT /B 0
    
    :doError1
    ECHO "+-----------------------------------------------------+"
    ECHO "| ERROR                                               |"
    ECHO "+-----------------------------------------------------+"
    ECHO "|                                                     |"
    ECHO "| The non-debug version of Connector/ODBC needs to be |"
    ECHO "| installed.                                          |"
    ECHO "|                                                     |"
    ECHO "+-----------------------------------------------------+"
    PAUSE
    EXIT /B 1
    
    :doError2
    ECHO "+-----------------------------------------------------+"
    ECHO "| ERROR                                               |"
    ECHO "+-----------------------------------------------------+"
    ECHO "|                                                     |"
    ECHO "| Connector/ODBC not built. Consider executing        |"
    ECHO "| Build.bat.                                          |"
    ECHO "|                                                     |"
    ECHO "+-----------------------------------------------------+"
    PAUSE
    EXIT /B 1
    
    :doError3
    ECHO "+-----------------------------------------------------+"
    ECHO "| ERROR                                               |"
    ECHO "+-----------------------------------------------------+"
    ECHO "|                                                     |"
    ECHO "| Connector/ODBC (debug) not built. Consider executing|"
    ECHO "| Build.bat.                                          |"
    ECHO "|                                                     |"
    ECHO "+-----------------------------------------------------+"
    PAUSE
    EXIT /B 1
    
    :doError4
    ECHO "+-----------------------------------------------------+"
    ECHO "| ERROR                                               |"
    ECHO "+-----------------------------------------------------+"
    ECHO "|                                                     |"
    ECHO "| Existing Connector/ODBC installed. Request ignored. |"
    ECHO "|                                                     |"
    ECHO "+-----------------------------------------------------+"
    PAUSE
    EXIT /B 1
    
    :doError5
    ECHO "+-----------------------------------------------------+"
    ECHO "| ERROR                                               |"
    ECHO "+-----------------------------------------------------+"
    ECHO "|                                                     |"
    ECHO "| Can't find the Windows system directory             |"
    ECHO "|                                                     |"
    ECHO "+-----------------------------------------------------+"
    PAUSE
    EXIT /B 1
    
    :doSyntax
    ECHO "+-----------------------------------------------------+"
    ECHO "| Install.bat                                         |"
    ECHO "+-----------------------------------------------------+"
    ECHO "|                                                     |"
    ECHO "| DESCRIPTION                                         |"
    ECHO "|                                                     |"
    ECHO "| Use this to copy the driver and supporting files    |"
    ECHO "| to the system directory and register the driver.    |"
    ECHO "|                                                     |"
    ECHO "| You can not properly install the debug version      |"
    ECHO "| without first installing the regular version.       |"
    ECHO "|                                                     |"
    ECHO "| SYNTAX                                              |"
    ECHO "|                                                     |"
    ECHO "| Install <debug>                                     |"
    ECHO "|                                                     |"
    ECHO "| <debug>  must be;                                   |"
    ECHO "|              0 - to install a regular build         |"
    ECHO "|              1 - to install a debug version         |"
    ECHO "|                                                     |"
    ECHO "+-----------------------------------------------------+"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 338k
  • Answers 338k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You'd just do: textBox1.Text = fileReader This puts the contents… May 14, 2026 at 4:17 am
  • Editorial Team
    Editorial Team added an answer Have you considered displaying a ContentControl as the right-side pane,… May 14, 2026 at 4:17 am
  • Editorial Team
    Editorial Team added an answer Assuming you are talking about an xml file on the… May 14, 2026 at 4:17 am

Related Questions

I have a mature MFC C++ application that displays on screen and prints using
I have an existing 32-bit ASP.NET application that used 32-bit unmanaged DLLs. If I
Scenario: I have a project containgin two C# projects, which for historical reasons must
Question: How can I determine all processes in the child's Process Tree to kill
When I run my Visual Studio Windows Forms application by clicking F5 (debug mode),

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.