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.2.tar.gz
.
File metadata
- Download URL: mysqlclient-2.0.2.tar.gz
- Upload date:
- Size: 88.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8df057b08fc27d8f7106bfa997d0a21e2acef017f905f06d6fb0aa6a20d4d2b2 |
|
MD5 | c319609d5c4adcf29c18d5e4c3f8b2c1 |
|
BLAKE2b-256 | 0e68f79de0e0fcdb041783124b825771e0ba6a3d0893b7b4c4735f130e42af47 |
File details
Details for the file mysqlclient-2.0.2-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: mysqlclient-2.0.2-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 179.3 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4861e33b9fad83dadf38feae77a14106365fc8c354ec4300fab5d8ccfbee4b4e |
|
MD5 | 4f7a54c8a0265ba5692fdc3757ec2297 |
|
BLAKE2b-256 | 5a7aa0a5926d1e6b873dd2703973eee2dec64163a5ecc3778d91c4cde69c9522 |
File details
Details for the file mysqlclient-2.0.2-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: mysqlclient-2.0.2-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 179.3 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3739824f4b8f29a6a4e5fc965f933fdce7c9edc2454990c3e5c6e038779e5580 |
|
MD5 | 80788a2a9065096961be59d9cacdc10f |
|
BLAKE2b-256 | 7982ed51a2ec279392e394eea99a7af38fbe09145a8d5d5d308b35815fc5554d |
File details
Details for the file mysqlclient-2.0.2-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: mysqlclient-2.0.2-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 178.8 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d91dde55230a512937aafc5981c6c11c0efad2c6b3d33e83287208c8bdab367 |
|
MD5 | 7193398ddc187cccaea95a91a94082ec |
|
BLAKE2b-256 | a4b691c76ad189ce0f940dd200f895d954cea3f2b911673b5ded3a7d0a64cfba |
File details
Details for the file mysqlclient-2.0.2-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: mysqlclient-2.0.2-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 178.8 kB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8944d9008c29abfa43e3c97551416ea23b2ccb017af85682b79f34fc26dc43ae |
|
MD5 | 81191e338a43ca6bccefa312ced6b7b6 |
|
BLAKE2b-256 | dd6a4085468b43528cd50179aeedc635f059b8ccd7cdf583e1e95ec1d6f998d6 |