Python interface to MySQL
Project description
mysqlclient
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:
- Python mailing list python-list
- Slack pythondev.slack.com
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file mysqlclient-2.0.1.tar.gz
.
File metadata
- Download URL: mysqlclient-2.0.1.tar.gz
- Upload date:
- Size: 87.8 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb2f75aea14722390d2d8ddf384ad99da708c707a96656210a7be8af20a2c5e5 |
|
MD5 | 4483c4830f5d54089d5239477c305148 |
|
BLAKE2b-256 | a5e1e5f2b231c05dc51d9d87fa5066f90d1405345c54b14b0b11a1c859020f21 |
File details
Details for the file mysqlclient-2.0.1-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: mysqlclient-2.0.1-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 269.0 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6b5648f648b16335e3b1aaec93dc3fcc81a9a661180e306936437cc522c810b |
|
MD5 | 733880b695f960e37c9463256c326cad |
|
BLAKE2b-256 | b272e205fcf877dd0ec05d71b975def8ecef3ae4bb7fee14434615140ebdc168 |
File details
Details for the file mysqlclient-2.0.1-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: mysqlclient-2.0.1-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 268.9 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f39855a4ad22805361e782cc4d1010ac74796225fa2d1c03cc16673ccdc983a |
|
MD5 | 6f10edeb0fe2d9df8c92d4f7f2511f82 |
|
BLAKE2b-256 | 4a28b08ede6cc8382179201455c3b9e5ed0d66aa5921e7c1888828dba48b832b |
File details
Details for the file mysqlclient-2.0.1-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: mysqlclient-2.0.1-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 268.9 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | edd42ccaa444b00702d5374b2f5f7585c9d0ce201917f15339f1c3cf91c1b1ed |
|
MD5 | 574ed429c23e698f95dec4db4dbc8663 |
|
BLAKE2b-256 | 77da4a3bd7f544e8ee0c5de34834f1503d78e2ef1882a1875cd8b2ebd24787a9 |