Install default features, database instance as service, non-default datadir and port msiexec /i path-to-package.msi SERVICENAME=MySQL DATADIR=C: mariadb5.2 data PORT=3307 /qn; Install service, add debug symbols, do not add development components (client libraries and headers). Install Git on macOS using the Homebrew package manager Although you can use the version of Git shipped with macOS or install the latest version of Git on macOS by downloading it from the project website, we recommend installing Git with Homebrew to get access to an extensive selection of dependency-managed libraries and applications. I installed MySQL on Mac OS X Mountain Lion with homebrew install mysql, but when I tried mysql -u root I got the following error: ERROR 2002 (HY000): Can't connect to local MySQL server through. $ sudo spctl -master-disable install ejabberd $ sudo spctl -master-enable Using Homebrew. Homebrew is a package manager for macOS that aims to port the many Unix & Linux software that is not easily available or compatible. Homebrew installation is simple and the instruction is available on its website. 'Client does not support authentication protocol requested by server; consider upgrading MySQL client Then you are likely in the right place. To solve the problem start by creating an Empty 'dot JS' file for testing, call it 'sqltest.js' or whatever you like.
Released:
Python interface to MySQL
Project description
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:
If you don't want to install MySQL server, you can use mysql-client instead:
Linux
Note that this is a basic step. I can not support complete step for build for allenvironment. If you can see some error, you should fix it by yourself, or ask forsupport 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:
Customize build (POSIX)
mysqlclient uses mysql_config
or mariadb_config
by default for findingcompiler/linker flags.
You can use MYSQLCLIENT_CFLAGS
and MYSQLCLIENT_LDFLAGS
environmentvariables to customize compiler/linker options.
Documentation

Documentation is hosted on Read The Docs
Release historyRelease notifications | RSS feed
2.0.3
2.0.2
2.0.1
2.0.0
1.4.6
1.4.5
1.4.4
1.4.3
1.4.2.post1
1.4.2
1.4.1
1.4.0
1.4.0rc3 pre-release
1.4.0rc2 pre-release
1.4.0rc1 pre-release
1.3.14
1.3.13

1.3.12
1.3.11
1.3.11rc1 pre-release
1.3.10
1.3.9
1.3.8
1.3.7
1.3.6
1.3.5
1.3.4
1.3.3
1.3.2
Homebrew Install Mysql Client Tutorial
1.3.1
1.3.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size mysqlclient-2.0.3-cp36-cp36m-win_amd64.whl (179.0 kB) | File type Wheel | Python version cp36 | Upload date | Hashes |
Filename, size mysqlclient-2.0.3-cp37-cp37m-win_amd64.whl (179.0 kB) | File type Wheel | Python version cp37 | Upload date | Hashes |
Filename, size mysqlclient-2.0.3-cp38-cp38-win_amd64.whl (179.4 kB) | File type Wheel | Python version cp38 | Upload date | Hashes |
Filename, size mysqlclient-2.0.3-cp39-cp39-win_amd64.whl (179.4 kB) | File type Wheel | Python version cp39 | Upload date | Hashes |
Filename, size mysqlclient-2.0.3.tar.gz (88.9 kB) | File type Source | Python version None | Upload date | Hashes |
Hashes for mysqlclient-2.0.3-cp36-cp36m-win_amd64.whl

Algorithm | Hash digest |
---|---|
SHA256 | 3381ca1a4f37ff1155fcfde20836b46416d66531add8843f6aa6d968982731c3 |
MD5 | 9614ec630b00470851d4af1da4d0d0ef |
BLAKE2-256 | 2c3cbd285daffea87cb0d1e33a25c78e155a8e6c551419f38a7636c9de136eed |
Hashes for mysqlclient-2.0.3-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest |
---|---|
SHA256 | 0ac0dd759c4ca02c35a9fedc24bc982cf75171651e8187c2495ec957a87dfff7 |
MD5 | 04f767412b0d2a66ece0226204d3100c |
BLAKE2-256 | 6b06a486f3795cf39883815eacec56d00a8fb0e6e46226af5cdfa24ffb3d43ec |
Hashes for mysqlclient-2.0.3-cp38-cp38-win_amd64.whl
Algorithm | Hash digest |
---|---|
SHA256 | 71c4b330cf2313bbda0307fc858cc9055e64493ba9bf28454d25cf8b3ee8d7f5 |
MD5 | 3230a16ee5379b4a31763be526cf4614 |
BLAKE2-256 | f4f4916fb5ae7ec4438437060638d3e17aea6ba00614cf6a75905e2632c86b2b |
Hashes for mysqlclient-2.0.3-cp39-cp39-win_amd64.whl
Algorithm | Hash digest |
---|---|
SHA256 | fc575093cf81b6605bed84653e48b277318b880dc9becf42dd47fa11ffd3e2b6 |
MD5 | 9ee9582f2bc0e984bc244363606d890c |
BLAKE2-256 | 63151934083acfecfee06b7ddf048d9df6b59b2bf7f452cfac38ea54f738c5a4 |
Homebrew Install Mysql Client Installer
Hashes for mysqlclient-2.0.3.tar.gz
Homebrew Install Mysql Client
Algorithm | Hash digest |
---|---|
SHA256 | f6ebea7c008f155baeefe16c56cd3ee6239f7a5a9ae42396c2f1860f08a7c432 |
MD5 | c1f213c1f5dd7b3490f1657957b60ef0 |
BLAKE2-256 | 3cdf59cd2fa5e48d0804d213bdcb1acb4d08c403b61c7ff7ed4dd4a6a2deb3f7 |
