MySQL ODBC connector is automatically installed in windows. In some operating systems, uninstalling and installing MySQL ODBC connector multiple times will find that the driver is abnormal and cannot be used. You must manually reinstall and fix the problem. However, if your driver is installed in an application, how can this problem be solved? You can install it in two steps, one installation, and one repair. (It's a bit cool, but it's feasible ). For example, in InstallShield, call MySQL ODBC connector to automatically (silent) install the MySQL client Driver (use the msi installation package to copy it to the mysqlconnector folder in the target directory ): // install the mysql odbc connector if Is (FILE_EXISTS, WINSYSDIR ^ "msiexec.exe") = FALSE then MessageBox ("Can't find msi installer", WARNING ); else szCmd = "\" "+ WINSYSDIR ^" msiexec.exe \ "/I \" "+ TARGETDIR ^" mysqlconnector \ mysql-connector-odbc-3.51.27-win32.msi \ "/q"; LaunchAppAndWait (szCmd ,"", WAIT); // when the odbc driver is not completely installed (previously installed and uninstalled), The/I parameter may not ensure that the installation is completed successfully, use the/f parameter to fix szCmd = "\" "+ WINSYSDIR ^" msiexec.exe \ "/f \" "+ TARGETDIR ^" mysqlconnector \ mysql-connector-odbc-3.51.27-win32.msi \ "/q "; launchAppAndWait (szCmd, "", WAIT); endif;