Mysql connector odbc windows 10

Установка драйвера MySQL Connector ODBC в Windows

Категория:

В данный статье будет рассмотрен процесс по установке драйвера MySQL Connector ODBC для операционных систем на платформе Windows.

Этот драйвер используется для взаимодействия с СУБД MySQL через программный интерфейс доступа к базам данных (ODBC). При использовании ODBC взаимодействие с любой базой данных становится простым, так как используется стандартный интерфейс для взаимодействия с различными СУБД. То есть для каждой СУБД уже не придется писать отдельный код по взаимодействию с конкретной СУБД.

Перед установкой необходимо зайти на сайт dev.mysql.com/downloads/connector/odbc/ и скачать там MySQL Connector ODBC последней версии. На выбор имеется 32-разрядная и 64-разрядная версия драйвера MySQL Connector ODBC.

В данный статье рассмотрена установка 32-битной версии драйвера MySQL Connector ODBC 5.1.6, так как является универсальной как для работы в 32-разрядной среде, так и в 64-разрядной программной среде. На всякий случай данная версия приложена в конце статьи, которую можно скачать.

Теперь начнем поэтапную настройку.

Шаг 1. Сразу после запуска инсталлятора запустится приветственное окно установщика MySQL Connector ODBC 5.1.6. Здесь ничего делать не нужно, нажимаем «Next» и переходим к следующему шагу.

Примечание: в других версиях вместо выбора типа установки может сначала следовать окно с лицензионным соглашением и только потом выбор типа установки.

Шаг 2. На данном этапе установки необходимо выбрать тип установки. Typical — обычный вариант установки, в данном случае установится общие характеристики программы. Complete — комплексная установка, то есть будут установлены все компоненты. Выбираем вариант Complete, жмем «Next» и переходим к шагу 3.

Шаг 3. На данном этапе ничего делать не нужно, так как здесь показывается сводная информация по выбранному типу, так что жмем «Install» и на этом процесс установки завершен. В следующем окне остается нажать только «Finish».

На этом статья об установке закончена. В следующей статье будет рассматриваться как настроить данный драйвер для использования.

Скачивание драйвера ODBC Driver for SQL Server Download ODBC Driver for SQL Server

Применимо к: Applies to: SQL Server SQL Server (все поддерживаемые версии) SQL Server SQL Server (all supported versions) База данных SQL Azure Azure SQL Database База данных SQL Azure Azure SQL Database Управляемый экземпляр SQL Azure Azure SQL Managed Instance Управляемый экземпляр SQL Azure Azure SQL Managed Instance Azure Synapse Analytics Azure Synapse Analytics Azure Synapse Analytics Azure Synapse Analytics Параллельное хранилище данных Parallel Data Warehouse Параллельное хранилище данных Parallel Data Warehouse Применимо к: Applies to: SQL Server SQL Server (все поддерживаемые версии) SQL Server SQL Server (all supported versions) База данных SQL Azure Azure SQL Database База данных SQL Azure Azure SQL Database Управляемый экземпляр SQL Azure Azure SQL Managed Instance Управляемый экземпляр SQL Azure Azure SQL Managed Instance Azure Synapse Analytics Azure Synapse Analytics Azure Synapse Analytics Azure Synapse Analytics Параллельное хранилище данных Parallel Data Warehouse Параллельное хранилище данных Parallel Data Warehouse

Читайте также:  Как выключить ввод пароля windows 10

Microsoft ODBC Driver for SQL Server — это отдельная библиотека динамической компоновки (DLL), которая содержит поддержку времени выполнения для приложений, использующих API машинного кода для подключения к SQL Server. Microsoft ODBC Driver for SQL Server is a single dynamic-link library (DLL) containing run-time support for applications using native-code APIs to connect to SQL Server. Используйте Microsoft ODBC Driver 17 for SQL Server для создания новых и расширения существующих приложений, которым необходимо использовать новые возможности SQL Server. Use Microsoft ODBC Driver 17 for SQL Server to create new applications or enhance existing applications that need to take advantage of newer SQL Server features.

Скачать для Windows Download for Windows

Распространяемый установщик Microsoft ODBC Driver for SQL Server версии 17 устанавливает клиентские компоненты, необходимые во время выполнения, чтобы воспользоваться преимуществами функциями нового SQL Server. The redistributable installer for Microsoft ODBC Driver 17 for SQL Server installs the client components, which are required during run time to take advantage of newer SQL Server features. При необходимости он устанавливает файлы заголовков, которые требуются для разработки приложения, использующего API ODBC. It optionally installs the header files needed to develop an application that uses the ODBC API. Начиная с версии 17.4.2, установщик также включает и устанавливает библиотеку проверки подлинности Microsoft Active Directory (ADAL.dll). Starting with version 17.4.2, the installer also includes and installs the Microsoft Active Directory Authentication Library (ADAL.dll).

Версия 17.7.2 является последней общедоступной (GA) версией. Version 17.7.2 is the latest general availability (GA) version. Если у вас установлена предыдущая версия Microsoft ODBC Driver for SQL Server 17, то при установке версии 17.7.2 она обновляется до версии 17.7.2. If you have a previous version of Microsoft ODBC Driver 17 for SQL Server installed, installing 17.7.2 upgrades it to 17.7.2.

Скачать Microsoft ODBC Driver for SQL Server версии 17 (x64) Download Microsoft ODBC Driver 17 for SQL Server (x64)
Скачать Microsoft ODBC Driver for SQL Server версии 17 (x86) Download Microsoft ODBC Driver 17 for SQL Server (x86)

Сведения о версии Version information

  • Номер выпуска: 17.7.2.1 Release number: 17.7.2.1
  • Дата выпуска: 10 марта 2021 г. Released: March 10, 2021

Если вы открываете локализованную версию этой страницы и хотите просмотреть актуальные материалы, посетите эту страницу на версии сайта на языке US-English. If you are accessing this page from a non-English language version, and want to see the most up-to-date content, please visit the US-English version of the site. С версии сайта US-English вы можете скачать SSMS на других языках из числа доступных. You can download different languages from the US-English version site by selecting available languages.

Доступные языки Available languages

Этот выпуск драйвера Microsoft ODBC Driver for SQL Server доступен для установки на следующих языках: This release of Microsoft ODBC Driver for SQL Server can be installed in the following languages:

Заметки о выпуске для Windows Release notes for Windows

Дополнительные сведения об этом выпуске для Windows см. в заметках о выпуске для Windows. For details about this release on Windows, see the Windows release notes.

Предыдущие выпуски для Windows Previous releases for Windows

Чтобы скачать предыдущие версии для Windows, см. страницу с предыдущими выпусками Microsoft ODBC Driver for SQL Server. To download previous releases for Windows, see previous Microsoft ODBC Driver for SQL Server releases.

Загрузка для Linux и macOS Download for Linux and macOS

Microsoft ODBC Driver for SQL Server можно скачать и установить с помощью диспетчеров пакетов для Linux и macOS, используя соответствующие инструкции по установке. The Microsoft ODBC Driver for SQL Server can be downloaded and installed using package managers for Linux and macOS using the relevant installation instructions:
Установка ODBC для SQL Server (Linux) Install ODBC for SQL Server (Linux)
Установка ODBC для SQL Server (macOS) Install ODBC for SQL Server (macOS)

Читайте также:  Как подключить windows update

Если необходимо скачать пакеты для автономной установки, все версии доступны по следующим ссылкам. If you need to download the packages for offline installation, all versions are available via the below links.

Пакеты с именем msodbcsql17-* являются последней версией. Packages named msodbcsql17-* are the latest version. Пакеты с именем msodbcsql-* являются версией 13 драйвера. Packages named msodbcsql-* are version 13 of the driver.

Chapter 4 Connector/ODBC Installation

Table of Contents

This section explains where to download Connector/ODBC, and how to run the installer, copy the files manually, or build from source.

Where to Get Connector/ODBC

You can get a copy of the latest version of Connector/ODBC binaries and sources from our website at https://dev.mysql.com/downloads//connector/odbc/.

Choosing Binary or Source Installation Method

You can install the Connector/ODBC drivers using two different methods:

The binary installation is the easiest and most straightforward method of installation. You receive all the necessary libraries and other files pre-built, with an installer program or batch script to perform all necessary copying and configuration.

The source installation method is intended for platforms where a binary installation package is not available, or in situations where you want to customize or modify the installation process or Connector/ODBC drivers before installation.

If a binary distribution is not available for a particular platform, and you build the driver from the original source code.

Connector/ODBC binary distributions include an INFO_BIN file that describes the environment and configuration options used to build the distribution. If you installed Connector/ODBC from a binary distribution and experience build-related issues on a platform, it may help to check the settings that were used to build the distribution on that platform. Binary and source distributions include an INFO_SRC file that provides information about the product version and the source repository from which the distribution was produced. This information was added in Connector/ODBC 8.0.14.

Supported Platforms

Connector/ODBC can be used on all major platforms supported by MySQL according to https://www.mysql.com/en/support/supportedplatforms/database.html. This includes Windows, most Unix-like operation systems, and macOS.

On all non-Windows platforms except macOS, the driver is built against unixODBC and is expecting a 2-byte SQLWCHAR , not 4 bytes as iODBC is using. For this reason, the binaries are only compatible with unixODBC ; recompile the driver against iODBC to use them together. For further information, see Section 3.2, “ODBC Driver Managers”.

For further instructions, consult the documentation corresponding to the platform where you are installing and whether you are running a binary installer or building from source:

Mysql connector odbc windows 10

Before installing the Connector/ODBC drivers on Windows:

Make sure your Microsoft Data Access Components (MDAC) are up to date. You can obtain the latest version from the Microsoft Data Access and Storage website.

Make sure the Visual C++ Redistributable for Visual Studio is installed.

Connector/ODBC 8.0.14 or higher: VC++ Runtime 2015 or VC++ Runtime 2017

Читайте также:  Release final windows 10

Connector/ODBC 8.0.11 to 8.0.13: VC++ Runtime 2015

Connector/ODBC 5.3: VC++ Runtime 2013

Use the version of the package that matches the system type of your Connector/ODBC driver: use the 64-bit version (marked by “ x64 ” in the package’s title and filename) if you are running a 64-bit driver, and use the 32-bit version (marked by “ x86 ” in the package’s title and filename) if you are running a 32-bit driver.

OpenSSL is a required dependency. The MSI package bundles OpenSSL libraries used by Connector/ODBC while the Zip Archive does not and requires that you install OpenSSL on the system.

There are different distribution types to use when installing for Windows. The software that is installed is identical in each case, only the installation method is different.

MySQL Installer (recommended) : The general MySQL Installer application for Windows can install, upgrade, configure, and manage most MySQL products, including Connector/ODBC. Download it from http://dev.mysql.com/downloads/windows/installer/ and see the MySQL Installer documentation for additional details. This is not a Connector/ODBC specific installer.

MSI : The Windows MSI Installer Package wizard installs Connector/ODBC. Download it from https://dev.mysql.com/downloads/connector/odbc/. Configure ODBC connections using Chapter 5, Configuring Connector/ODBC after the installation.

Zip Archive : Contains DLL files that must be manually installed. See Section 4.1.1, “Installing the Windows Connector/ODBC Driver Using the Zipped DLL Package” for additional details.

An OLEDB/ODBC driver for Windows 64-bit is available from Microsoft Downloads.

Установка подключения к MySQL через ODBC connector

Итак, для того, чтобы настроить связь между MySQL и 1С нужно:

1. Скачать дистрибутив установки ODBC connector.

Я обычно пользуюсь ODBC 5.3 Unicode driver, он еще называется 5.3.0 alpha, скачать можно здесь https://downloads.mysql.com/archives/c-odbc/).

Устанавливать нужно на сервер, на котором лежит база данных. То есть, если в пути к базе написано «10.80.11.30», то и устанавливаем на сервер 10.80.11.30, если в пути к базе написано «localhost», то и устанавливаем на этот же сервер «localhost», ну вы понимаете.

Если в процессе установки возникает ошибка «Error 1318:Error installing ODBC Driver . the specified module could not be found . myodbc5s.d . «, значит на сервере не хватает пакета » Microsoft Visual C++ 2010 Redistributable Package», скачать можно здесь https://www.microsoft.com/en-us/download/confirmation.aspx?id=14632 (x64) и здесь https://www.microsoft.com/en-us/download/confirmation.aspx?id=5555 (x86). Если вы взяли версию драйвера отличную от моей любимой ODBC 5.3 Unicode driver, то пакет, необходимый для установки ODBC может быть и другой, ориентируйтесь на название недостающего компонента в описании ошибки, и вы обязательно найдете какого именно пакета Microsoft Visual C++ вам не хватает. Пакет Microsoft Visual C++ нужно тоже установить и для 32-х разрядной системы, и для 64-х разрядной.

2. Настроить ODBC connector.

На том сервере, на котором мы устанавливали ODBC connector, запускаем C:\Windows\SysWOW64\odbcad32.exe, добавляем базу в User DSN и System DSN, обязательно нажимаем «Test» и радуемся, что соединение устанавливается.

Там же запускаем C:\Windows\system32\odbcad32.exe, добавляем базу в User DSN и System DSN, обязательно нажимаем «Test», опять бурно радуемся, что соединение устанавливается.

3. Если соединение не устанавливается, проверяем, что в MySQL не наложены ограничения на IP, с которых осуществляется подключение. Если это не помогло, можно установить MySQL Workbench (https://www.mysql.com/products/workbench/), добавить туда базу данных MySQL и протестировать подключение — у Workbench более информативные сообщения об ошибке, зачастую с первого раза понятно куда копать.

4. После всех манипуляций можно выпить бокальчик вина и создать обработку работы с базой MySQL. Это очень просто:

Оцените статью