- Mysql connector mac os
- Mysql connector mac os
- Installing Connector/Python with pip
- Installing Connector/Python on Microsoft Windows
- Installing Connector/Python on Linux Using the MySQL Yum Repository
- Installing Connector/Python on Linux Using an RPM Package
- Installing Connector/Python on Linux Using a Debian Package
- Installing Connector/Python on macOS Using a Disk Image
- MySQL Connectors и API
- Соединители и API
Mysql connector mac os
macOS is based on the FreeBSD operating system, and you can normally use the MySQL network port for connecting to MySQL servers on other hosts. Installing the Connector/ODBC driver lets you connect to MySQL databases on any platform through the ODBC interface. If your application requires an ODBC interface, install the Connector/ODBC driver.
On macOS, the ODBC Administrator, based on the iODBC manager, provides easy administration of ODBC drivers and configuration, allowing the updates of the underlying iODBC configuration files through a GUI tool. The tool is included in macOS v10.5 and earlier; users of later versions of macOS need to download it from http://www.iodbc.org/dataspace/doc/iodbc/wiki/iodbcWiki/Downloads and install it manually.
OpenSSL is a required dependency. The macOS installation binaries bundle OpenSSL, while the compressed tar archives do not and require that you install OpenSSL on your system before the installation process.
There are two ways to install Connector/ODBC on macOS. You can use either the package provided in a compressed tar archive that you manually install, or use a compressed disk image ( .dmg ) file, which includes an installer.
To install using the compressed tar archive (some of the steps below might require superuser privileges):
Download the compressed tar archive.
Extract the archive:
The directory created contains two subdirectories, lib and bin . Copy these to a suitable location such as /usr/local :
Finally, register the driver with iODBC using the myodbc-installer tool that was included in the package:
For Connector/ODBC 8.0:
For Connector/ODBC 5.3:
To install using the a compressed disk image ( .dmg ) file:
iODBC 3.52.12 or later must be installed on the macOS system before you can install Connector/ODBC using a compressed disk image. See Section 4.3, “Installing Connector/ODBC on macOS”.
Download the disk image.
Double click the disk image to open it. You see the Connector/ODBC installer inside.
Double click the Connector/ODBC installer, and you will be guided through the rest of the installation process. You need superuser privileges to finish the installation.
To verify the installed drivers, either use the ODBC Administrator application or the myodbc-installer utility:
Источник
Mysql connector mac os
Connector/Python installers in native package formats are available for Windows and for Unix and Unix-like systems:
Windows: MSI installer package
Linux: Yum repository for EL7 and EL8 and Fedora; RPM packages for Oracle Linux, Red Hat, and SuSE; Debian packages for Debian and Ubuntu
macOS: Disk image package with PKG installer
You may need root or administrator privileges to perform the installation operation.
Prior to Connector/Python 8.0.22, the C extension and pure Python implementations were installed using two separate binary distributions; except they were always combined for Windows and macOS. The C extension implementation had “ cext ” in the package name.
Binary distributions that provide the C Extension link to an already installed C client library provided by a MySQL Server installation. For those distributions that are not statically linked, you must install MySQL Server if it is not already present on your system. To obtain it, visit the MySQL download site.
Installing Connector/Python with pip
Use pip to install Connector/Python on most any operating system:
Installing Connector/Python on Microsoft Windows
Managing all of your MySQL products, including MySQL Connector/Python, with MySQL Installer is the recommended approach. It handles all requirements and prerequisites, configurations, and upgrades.
Prerequisite. The Microsoft Visual C++ 2015 Redistributable must be installed on your system.
MySQL Installer (recommended): When executing MySQL Installer, choose MySQL Connector/Python as one of the products to install. MySQL Installer installs the Windows MSI Installer described in this documentation.
Windows MSI Installer ( .msi file): To use the MSI Installer, launch it and follow the prompts in the screens it presents to install Connector/Python in the location of your choosing.
Like with MySQL Installer, subsequent executions of the Connector/Python MSI enable you to either repair or remove the existing Connector/Python installation.
Connector/Python Windows MSI Installers ( .msi files) are available from the Connector/Python download site (see Section 4.1, “Obtaining Connector/Python”). Choose an installer appropriate for the version of Python installed on your system. As of Connector/Python 2.1.1, MSI Installers include the C Extension; it need not be installed separately.
Alternatively, to run the installer from the command line, use this command in a console window, where VER and PYVER are the respective Connector/Python and Python version numbers in the installer file name:
Subsequent executions of Connector/Python using the MSI installer permit you to either repair or remove the existing Connector/Python installation.
Installing Connector/Python on Linux Using the MySQL Yum Repository
For EL7 or EL8-based platforms and Fedora, you can install Connector/Python using the MySQL Yum repository (see Installing Additional MySQL Products and Components with Yum). You must have the MySQL Yum repository on your system’s repository list (for details, see Adding the MySQL Yum Repository). To make sure that your Yum repository is up-to-date, use this command:
Prerequisite. Although optional, the mysql-community-client-plugins package is required to use newer authentication methods, such as caching_sha2_password that’s the default authentication method as of MySQL 8.0.
Then install Connector/Python as follows:
Installing Connector/Python on Linux Using an RPM Package
Connector/Python Linux RPM packages ( .rpm files) are available from the Connector/Python download site (see Section 4.1, “Obtaining Connector/Python”).
To install a Connector/Python RPM package (denoted here as PACKAGE .rpm ), use this command:
Prerequisite. Although optional, the mysql-community-client-plugins package is required to use newer authentication methods, such as caching_sha2_password that’s the default authentication method as of MySQL 8.0.
Prior to Connector/Python 8.0.22, the C extension implementation was a separate RPM package that contained “ cext ” in the name.
RPM provides a feature to verify the integrity and authenticity of packages before installing them. To learn more, see Verifying Package Integrity Using MD5 Checksums or GnuPG.
Installing Connector/Python on Linux Using a Debian Package
Connector/Python Debian packages ( .deb files) are available for Debian or Debian-like Linux systems from the Connector/Python download site (see Section 4.1, “Obtaining Connector/Python”).
Prerequisite. Although optional, the mysql-community-client-plugins package is required to use newer authentication methods, such as caching_sha2_password that’s the default authentication method as of MySQL 8.0.
To install a Connector/Python Debian package (denoted here as PACKAGE .deb ), use this command:
Prior to Connector/Python 8.0.22, the C extension implementation was a separate DEB package that contained “ cext ” in the name.
Installing Connector/Python on macOS Using a Disk Image
Connector/Python macOS disk images ( .dmg files) are available from the Connector/Python download site (see Section 4.1, “Obtaining Connector/Python”). As of Connector/Python 2.1.1, macOS disk images include the C Extension; it need not be installed separately.
Download the .dmg file and install Connector/Python by opening it and double clicking the resulting .pkg file.
Источник
MySQL Connectors и API
Соединители и API
MySQL Connectors обеспечивают подключение к серверу MySQL для клиентских программ, а API предоставляют низкоуровневый доступ к протоколу и ресурсам MySQL. Вы можете подключать и выполнять операторы MySQL из другого языка или среды, включая ODBC, Python, Perl, Ruby, PHP, Java (JDBC), а также встроенные экземпляры C и встроенные MySQL через соединители и API.
Что такое водитель?
Драйвер — это часть программного обеспечения, предназначенная для связи с конкретным сервером базы данных. Драйвер также может вызывать библиотеку, такую как «MySQL Client Library» или «MySQL Native Driver». Эти библиотеки реализуют протокол низкого уровня, используемый для связи с сервером базы данных.
Что такое разъем?
Соединитель относится к программному обеспечению, которое позволяет вашему приложению подключаться к серверу базы данных MySQL. MySQL предоставляет коннекторы для различных языков, включая Python, Perl, Ruby, PHP, Java (JDBC), C и т. Д.
Что такое API?
API, аббревиатура интерфейса прикладной программы, представляет собой набор инструкций по программированию (через классы, методы, функции и переменные) и стандартов для доступа к веб-приложению или веб-инструменту.
API могут быть процедурными или объектно-ориентированными. С процедурным API вы вызываете функции для выполнения задач, с объектно-ориентированным API вы создаете экземпляры классов, а затем вызываете методы для получающихся объектов. Из этих двух обычно предпочтительным является второй, так как он более современный и ведет к более организованному коду.
Список коннекторов MySQL
- ODBC / Connector: обеспечивает поддержку драйверов для подключения (платформы Windows, Unix и Mac OS X) к MySQL с использованием API-интерфейса Open Database Connectivity (ODBC).
- .Net / Connector: предоставляет поддержку для создания приложений .NET, которые подключаются к MySQL.
- J / Connector: обеспечивает поддержку драйверов для подключения к MySQL из приложений Java с помощью API подключения к базе данных Java (JDBC).
- Python / Connector: обеспечивает поддержку драйверов для подключения к MySQL из приложений Python с использованием Python DB API версии 2.0.
- C ++ / Connector: является автономной заменой клиентской библиотеки MySQL ( libMySQLclient ), используемой для приложений на языке Си.
Примечание: libMySQLclient включен в дистрибутивы MySQL и в дистрибутивы MySQL Connector / C.
Список сторонних API MySQL
язык | API | Тип | |
---|---|---|---|
Ada | Привязки GNU Ada MySQL | libMySQLclient | Привязки MySQL для GNU Ada |
С | C API | libMySQLclient | Раздел 23.8, «MySQL C API» . |
С | Соединитель / C | Замена для libMySQLclient | MySQL, Connector / C Руководство разработчика . |
C ++ | Соединитель / C ++ | libMySQLclient | MySQL, Connector / C ++ Developer Guide . |
MySQL ++ | libMySQLclient | MySQL ++ Веб-сайт . | |
MySQL завернутый | libMySQLclient | MySQL завернутый . | |
Какао | MySQL-Какао | libMySQLclient | Совместим со средой Objective-C Cocoa. http://MySQL-cocoa.sourceforge.net/ |
D | MySQL для D | libMySQLclient | MySQL для D. |
Eiffel | Eiffel MySQL | libMySQLclient | Раздел 23.14, «MySQL Eiffel Wrapper» . |
Erlang | Эрл-MySQL-драйвер | libMySQLclient | Эрл-MySQL-драйвер. |
Haskell | Haskell MySQL Bindings | Родной Водитель | Чистые привязки Брайана О’Салливана к MySQL на Haskell . |
HSQL-MySQL | libMySQLclient | Драйвер MySQL для Haskell . | |
Java / JDBC | Соединитель / Дж | Родной Водитель | MySQL, Connector / J Руководство разработчика . |
Kaya | MyDB | libMySQLclient | MyDB . |
Lua | LuaSQL | libMySQLclient | LuaSQL |
.NET / Mono | Connector / Net | Родной Водитель | MySQL, Connector / Net Developer Guide . |
Объектив Caml | Объективные привязки Caml MySQL | libMySQLclient | Привязки MySQL для объективной камеры . |
октава | Привязки базы данных для GNU Octave | libMySQLclient | Привязки базы данных для GNU Octave . |
ODBC | Connector / ODBC | libMySQLclient | MySQL, Connector / ODBC Developer Guide . |
Perl | DBI / DBD :: MySQL | libMySQLclient | Раздел 23.10, «MySQL Perl API» . |
Net :: MySQL | Родной Водитель | Net :: MySQL в CPAN | |
PHP | MySQL, ext / MySQLinterface (устарело) | libMySQLclient | Оригинальный MySQL API (MySQL) . |
MySQLi, внутр / MySQLiinterface | libMySQLclient | Улучшенное расширение MySQL (MySQLi) . | |
PDO_MySQL | libMySQLclient | Функции MySQL (PDO_MySQL) (MySQL (PDO)) . | |
PDO MySQLnd | Родной Водитель | ||
питон | Соединитель / Python | Родной Водитель | MySQL, Connector / Python Developer Guide . |
MySQLdb | libMySQLclient | MySQL Python API | |
Рубин | MySQL / рубин | libMySQLclient | Использует libMySQLclient. MySQL / Ruby API . |
Рубин / MySQL | Родной Водитель | Раздел 23.12.2, «API Ruby / MySQL» . | |
Схема | Myscsh | libMySQLclient | Myscsh . |
SPL | sql_MySQL | libMySQLclient | sql_MySQL для SPL . |
Список версий MySQL, Connector и Сервера
соединитель | Версия разъема | Версия MySQL Server |
---|---|---|
Соединитель / C | 6.1.0 GA | 5,6, 5,5, 5,1, 5,0, 4,1 |
Соединитель / C ++ | 1,0,5 га | 5,6, 5,5, 5,1 |
Соединитель / Дж | 5.1.8 | 5,6, 5,5, 5,1, 5,0, 4,1 |
Connector / Net | 6,5 | 5,6, 5,5, 5,1, 5,0 |
Connector / Net | 6,4 | 5,6, 5,5, 5,1, 5,0 |
Connector / Net | 6,3 | 5,6, 5,5, 5,1, 5,0 |
Connector / Net | 6.2 (больше не поддерживается) | 5,6, 5,5, 5,1, 5,0 |
Connector / Net | 6.1 (больше не поддерживается) | 5,6, 5,5, 5,1, 5,0 |
Connector / Net | 6.0 (больше не поддерживается) | 5,6, 5,5, 5,1, 5,0 |
Connector / Net | 5.2 (больше не поддерживается) | 5,6, 5,5, 5,1, 5,0 |
Connector / Net | 1.0 (больше не поддерживается) | 5.0, 4.0 |
Connector / ODBC | 5,1 | 5.6, 5.5, 5.1, 5.0, 4.1.1+ |
Connector / ODBC | 3.51 (Unicode не поддерживается) | 5,6, 5,5, 5,1, 5,0, 4,1 |
Далее: MySQL ODBC Connection.
Предыдущая: PHPMyAdmin
Далее: MySQL ODBC Connector
Источник