MySQL Connector/ODBC 8.0 Silent Install (How-To Guide)

MySQL Connector/ODBC (sometimes called just Connector/ODBC or MyODBC) is a driver for connecting to a MySQL database server through the Open Database Connectivity (ODBC) application program interface (API), which is the standard means of connecting to any database. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of MySQL Connector/ODBC 8.0 from the command line using the MSI installer.

How to Install MySQL Connector/ODBC 8.0 Silently

MySQL Connector/ODBC 8.0 Silent Install (x86, 32-bit MSI)

  1. Navigate to: https://dev.mysql.com/downloads/connector/odbc/
  2. Select the Windows (x86, 32-bit), MSI Installer
  3. Download the mysql-connector-odbc-8.0.xx-win32.msi to a folder created at (C:\Downloads)
  4. Navigate to: https://aka.ms/vs/17/release/vc_redist.x86.exe
  5. Download the VC_redist.x86.exe to a folder created at (C:\Downloads)
  6. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  7. Navigate to the C:\Downloads folder
  8. Enter the following commands:
VC_redist.x86.exe /install /quiet /norestart
MsiExec.exe /i mysql-connector-odbc-8.0.xx-win32.msi /qn

After a few moments you will find MySQL Connector/ODBC 8.0 entries in the Installation Directory and Programs and Features in the Control Panel.

Software Title:MySQL Connector/ODBC 8.0
Vendor:Oracle Corporation
Version:8.0.xx
Architecture:32-bit
Installer Type:MSI
Silent Install Switch (Step 1)VC_redist.x86.exe /install /quiet /norestart
Silent Install Switch (Step 2)MsiExec.exe /i mysql-connector-odbc-8.0.xx-win32.msi /qn
Silent Uninstall Switch:MsiExec.exe /x mysql-connector-odbc-8.0.xx-win32.msi /qn
Repair Command:MsiExec.exe /fa mysql-connector-odbc-8.0.xx-win32.msi /qn
Download Link:https://dev.mysql.com/downloads/connector/odbc/
PowerShell Script:https://silentinstallhq.com/mysql-connector-odbc-8-0-install-and-uninstall-powershell/
Detection Script:https://silentinstallhq.com/create-a-custom-detection-script-for-mysql-connector-odbc-powershell/

MySQL Connector/ODBC 8.0 Silent Install (x86, 64-bit MSI)

  1. Navigate to: https://dev.mysql.com/downloads/connector/odbc/
  2. Select the Windows (x86, 64-bit), MSI Installer
  3. Download the mysql-connector-odbc-8.0.xx-winx64.msi to a folder created at (C:\Downloads)
  4. Navigate to: https://aka.ms/vs/17/release/vc_redist.x64.exe
  5. Download the VC_redist.x64.exe to a folder created at (C:\Downloads)
  6. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  7. Navigate to the C:\Downloads folder
  8. Enter the following commands:
VC_redist.x64.exe /install /quiet /norestart
MsiExec.exe /i mysql-connector-odbc-8.0.xx-winx64.msi /qn

After a few moments you will find MySQL Connector/ODBC 8.0 entries in the Installation Directory and Programs and Features in the Control Panel.

Software Title:MySQL Connector/ODBC 8.0
Vendor:Oracle Corporation
Version:8.0.xx
Architecture:64-bit
Installer Type:MSI
Silent Install Switch (Step 1)VC_redist.x64.exe /install /quiet /norestart
Silent Install Switch (Step 2)MsiExec.exe /i mysql-connector-odbc-8.0.xx-winx64.msi /qn
Silent Uninstall Switch:MsiExec.exe /x mysql-connector-odbc-8.0.xx-winx64.msi /qn
Repair Command:MsiExec.exe /fa mysql-connector-odbc-8.0.xx-winx64.msi /qn
Download Link:https://dev.mysql.com/downloads/connector/odbc/
PowerShell Script:https://silentinstallhq.com/mysql-connector-odbc-8-0-install-and-uninstall-powershell/
Detection Script:https://silentinstallhq.com/create-a-custom-detection-script-for-mysql-connector-odbc-powershell/

The information above provides a quick overview of the software title, vendor, silent install, and silent uninstall switches. The download links provided take you directly to the vendors website. Continue reading if you are interested in additional details and configurations.


Additional Configurations

Create a MySQL Connector/ODBC 8.0 Installation Log File

The MySQL Connector/ODBC 8.0 installer offers the option to generate a log file during installation to assist with troubleshooting should any problems arise. You can use the following commands to create a verbose log file with details about the installation.

MySQL Connector/ODBC 8.0 Silent Install with Logging (x86, 32-bit MSI)

VC_redist.x86.exe /install /quiet /norestart /log "%WINDIR%\Temp\VC2022x86-Install.log"
MsiExec.exe /i mysql-connector-odbc-8.0.xx-win32.msi /qn /L*v "%WINDIR%\Temp\MySQLODBCx86-Install.log"

MySQL Connector/ODBC 8.0 Silent Install with Logging (x86, 64-bit MSI)

VC_redist.x64.exe /install /quiet /norestart /log "%WINDIR%\Temp\VC2022x64-Install.log"
MsiExec.exe /i mysql-connector-odbc-8.0.xx-winx64.msi /qn /L*v "%WINDIR%\Temp\MySQLODBCx64-Install.log"

How to Uninstall MySQL Connector/ODBC 8.0 Silently

Check out the following posts for a scripted solution:

MySQL Connector/ODBC 8.0 Install and Uninstall (PowerShell)
MySQL Connector/ODBC 8.0 Silent Uninstall (PowerShell)
  1. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  2. Enter one of the following commands:
VersionMySQL Connector/ODBC 8.0 Silent Uninstall String
8.0.30 (32-bit)MsiExec.exe /x {8F52AC06-953A-49FC-95D9-58497892FA21} /qn
8.0.30 (64-bit)MsiExec.exe /x {A02F5AD7-2744-4911-A102-8253913CA59C} /qn
8.0.29 (32-bit)MsiExec.exe /x {9D5E723F-60C1-4949-92A3-AD84EE546177} /qn
8.0.29 (64-bit)MsiExec.exe /x {C3E1B2C4-71E4-433D-973E-DD36C9E4A611} /qn
8.0.28 (32-bit)MsiExec.exe /x {1AA2ADA7-561C-4C78-9C15-67B287160013} /qn
8.0.28 (64-bit)MsiExec.exe /x {5B61E759-B36C-4442-B523-90091DDF11F8} /qn
8.0.27 (32-bit)MsiExec.exe /x {40A570EF-97D4-4BFE-8887-1FEA273DE07F} /qn
8.0.27 (64-bit)MsiExec.exe /x {7B47492A-AAA1-4F37-AEE1-F008C56E2978} /qn
8.0.26 (32-bit)MsiExec.exe /x {25E78103-4427-4152-888C-A61B063DF9FF} /qn
8.0.26 (64-bit)MsiExec.exe /x {4826C676-CB09-410F-A4DC-D27F93D68ABF} /qn
8.0.25 (32-bit)MsiExec.exe /x {7813A5BC-EC13-446C-BEE6-46163333A5B1} /qn
8.0.25 (64-bit)MsiExec.exe /x {375F057A-3C9D-4E99-9374-9EBA10243051} /qn
8.0.24 (32-bit)MsiExec.exe /x {E1868314-A805-443C-8363-0C2EB19299A7} /qn
8.0.24 (64-bit)MsiExec.exe /x {E52276FC-900F-4A95-A75D-3C66E142B1FA} /qn
8.0.23 (32-bit)MsiExec.exe /x {2936C4C6-8D36-4BC7-8AF9-C1E330DB6A09} /qn
8.0.23 (64-bit)MsiExec.exe /x {C9094960-C544-46C4-B1FA-A39CFC44F72D} /qn
8.0.22 (32-bit)MsiExec.exe /x {1500C747-D134-484E-B466-34DABFCAFD29} /qn
8.0.22 (64-bit)MsiExec.exe /x {93726A76-F841-4376-8E3F-1444990DF014} /qn
8.0.21 (32-bit)MsiExec.exe /x {276A03AE-AB0E-402F-8194-C529E7E58782} /qn
8.0.21 (64-bit)MsiExec.exe /x {1E923AE9-0843-4562-ABAE-E434FE1B332D} /qn
8.0.20 (32-bit)MsiExec.exe /x {494E8E7C-3691-4A37-B3FB-855338C9CD31} /qn
8.0.20 (64-bit)MsiExec.exe /x {40C962AA-3C56-4BD5-9643-4D4411C0C7B9} /qn
8.0.19 (32-bit)MsiExec.exe /x {19DC9A23-0569-4DAB-A354-2411217A1B63} /qn
8.0.19 (64-bit)MsiExec.exe /x {7FD27F93-9D73-4E26-8265-A2BAC4BED2A6} /qn
8.0.18 (32-bit)MsiExec.exe /x {E1A864B6-3B36-4548-BD03-AEB8B7D0A472} /qn
8.0.18 (64-bit)MsiExec.exe /x {3C0AB23E-7D55-4C9A-BA7D-160E074A5F28} /qn
8.0.17 (32-bit)MsiExec.exe /x {CB8F5DDA-DF04-446B-82AF-FF13238BAF98} /qn
8.0.17 (64-bit)MsiExec.exe /x {9C22F358-C88B-41A1-AFFA-29FFFBBBB5A4} /qn
8.0.16 (32-bit)MsiExec.exe /x {E1B4A09E-77B3-4A0C-AD5E-5EA272576C0F} /qn
8.0.16 (64-bit)MsiExec.exe /x {A6302E15-2BC2-47E1-9080-BBB7CACEE11B} /qn
8.0.15 (32-bit)MsiExec.exe /x {9C485A64-1025-4FC8-967C-BECF6C6537E1} /qn
8.0.15 (64-bit)MsiExec.exe /x {14D42774-ADD5-479B-AE32-DE4E86100B56} /qn
8.0.14 (32-bit)MsiExec.exe /x {C20023B2-1AE3-4038-B465-04CD8835E060} /qn
8.0.14 (64-bit)MsiExec.exe /x {34DF1E2B-8BD2-4507-9F9E-FD631E121245} /qn
8.0.13 (32-bit)MsiExec.exe /x {EBECA1D0-F239-4573-BAF3-914C29A3DE62} /qn
8.0.13 (64-bit)MsiExec.exe /x {68348C36-F97C-437E-9616-686E0730758E} /qn
8.0.12 (32-bit)MsiExec.exe /x {EA2178D3-B3CF-4034-9FB3-65A28C4DBF62} /qn
8.0.12 (64-bit)MsiExec.exe /x {23E46103-4512-46CE-99DD-F3B75B20F22C} /qn
8.0.11 (64-bit)MsiExec.exe /x {74A758A2-7CD2-4301-A2B5-8A6602676409} /qn

Always make sure to test everything in a development environment prior to implementing anything into production. The information in this article is provided “As Is” without warranty of any kind.