Skip to main content

Python interface to MySQL

Project description

mysqlclient

Build Status

This is a fork of MySQLdb1.

This project adds Python 3 support and bug fixes. I hope this fork is merged back to MySQLdb1 like distribute was merged back to setuptools.

Support

Do Not use Github Issue Tracker to ask help. OSS Maintainer is not free tech support

When your question looks relating to Python rather than MySQL:

Or when you have question about MySQL:

Install

Windows

Building mysqlclient on Windows is very hard. But there are some binary wheels you can install easily.

macOS (Homebrew)

Install MySQL and mysqlclient:

# Assume you are activating Python 3 venv
$ brew install mysql
$ pip install mysqlclient

If you don't want to install MySQL server, you can use mysql-client instead:

# Assume you are activating Python 3 venv
$ brew install mysql-client
$ echo 'export PATH="/usr/local/opt/mysql-client/bin:$PATH"' >> ~/.bash_profile
$ export PATH="/usr/local/opt/mysql-client/bin:$PATH"
$ pip install mysqlclient

Linux

Note that this is a basic step. I can not support complete step for build for all environment. If you can see some error, you should fix it by yourself, or ask for support in some user forum. Don't file a issue on the issue tracker.

You may need to install the Python 3 and MySQL development headers and libraries like so:

  • $ sudo apt-get install python3-dev default-libmysqlclient-dev build-essential # Debian / Ubuntu
  • % sudo yum install python3-devel mysql-devel # Red Hat / CentOS

Then you can install mysqlclient via pip now:

$ pip install mysqlclient

Documentation

Documentation is hosted on Read The Docs

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mysqlclient-2.0.0.tar.gz (87.9 kB view details)

Uploaded Source

Built Distributions

mysqlclient-2.0.0-cp38-cp38-win_amd64.whl (269.3 kB view details)

Uploaded CPython 3.8 Windows x86-64

mysqlclient-2.0.0-cp37-cp37m-win_amd64.whl (269.1 kB view details)

Uploaded CPython 3.7m Windows x86-64

mysqlclient-2.0.0-cp36-cp36m-win_amd64.whl (269.1 kB view details)

Uploaded CPython 3.6m Windows x86-64

File details

Details for the file mysqlclient-2.0.0.tar.gz.

File metadata

  • Download URL: mysqlclient-2.0.0.tar.gz
  • Upload date:
  • Size: 87.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for mysqlclient-2.0.0.tar.gz
Algorithm Hash digest
SHA256 201dfcc2a3c8a0859ea399947f1af8abe74b706beba0ebac149180d9d7b0f6e8
MD5 cfa594b3aa9ef6e4f47a71d7dd8b971b
BLAKE2b-256 cacfdd8124bf8b3d2ae465db9c8ce35c51650c31784b095f41faf6f8cad987a0

See more details on using hashes here.

File details

Details for the file mysqlclient-2.0.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: mysqlclient-2.0.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 269.3 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for mysqlclient-2.0.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 136220b87f6e0f1cbb9dcaa83b184715f41fafee899efd67ab60fbc9a8a1dcf7
MD5 85be5440afd84e8fbaefff5f331d108a
BLAKE2b-256 3e7352cdee625b5dac8ed7fa4c0385e6852292912f0997f58febe328ac3c9b99

See more details on using hashes here.

File details

Details for the file mysqlclient-2.0.0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: mysqlclient-2.0.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 269.1 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for mysqlclient-2.0.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 083ea81950dcd1051891d9dbeeea946ada92d2c8f61ae5625e36357cc8357530
MD5 9db633939349e50876cc07e1a4de9c64
BLAKE2b-256 0e99dd4800da4573e0669bd6a3dcdd3fe997f7cccd2752a7b6aabcdfaa2f1ff7

See more details on using hashes here.

File details

Details for the file mysqlclient-2.0.0-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: mysqlclient-2.0.0-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 269.1 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for mysqlclient-2.0.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 ee6de1a7a1c85b02b297c05e5466eff9be92671eb4f3ae1083cde22a3f5ae8c3
MD5 07a94597bdbb0b2f30a08b1f4a6beea1
BLAKE2b-256 f71532717dc594bff91fe5e4ed952f9a7a27b06aecbeb061f35db6f8f62acc5f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page