Jun 22, 2015 Choose one from the list. For example, to use mariadb as the default mysql client: sudo port select mysql mariadb Now open a fresh terminal window and you should be able to start the mariadb mysql CLI client: mysql -h -u -p.
Released:
Python interface to MySQL
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.
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:
Building mysqlclient on Windows is very hard.But there are some binary wheels you can install easily.
Install MySQL and mysqlclient:
If you don't want to install MySQL server, you can use mysql-client instead:
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 / CentOSThen you can install mysqlclient via pip now:
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 is hosted on Read The Docs
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
1.3.1
1.3.0
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 |
Algorithm | Hash digest |
---|---|
SHA256 | 3381ca1a4f37ff1155fcfde20836b46416d66531add8843f6aa6d968982731c3 |
MD5 | 9614ec630b00470851d4af1da4d0d0ef |
BLAKE2-256 | 2c3cbd285daffea87cb0d1e33a25c78e155a8e6c551419f38a7636c9de136eed |
Algorithm | Hash digest |
---|---|
SHA256 | 0ac0dd759c4ca02c35a9fedc24bc982cf75171651e8187c2495ec957a87dfff7 |
MD5 | 04f767412b0d2a66ece0226204d3100c |
BLAKE2-256 | 6b06a486f3795cf39883815eacec56d00a8fb0e6e46226af5cdfa24ffb3d43ec |
Algorithm | Hash digest |
---|---|
SHA256 | 71c4b330cf2313bbda0307fc858cc9055e64493ba9bf28454d25cf8b3ee8d7f5 |
MD5 | 3230a16ee5379b4a31763be526cf4614 |
BLAKE2-256 | f4f4916fb5ae7ec4438437060638d3e17aea6ba00614cf6a75905e2632c86b2b |
Algorithm | Hash digest |
---|---|
SHA256 | fc575093cf81b6605bed84653e48b277318b880dc9becf42dd47fa11ffd3e2b6 |
MD5 | 9ee9582f2bc0e984bc244363606d890c |
BLAKE2-256 | 63151934083acfecfee06b7ddf048d9df6b59b2bf7f452cfac38ea54f738c5a4 |
Algorithm | Hash digest |
---|---|
SHA256 | f6ebea7c008f155baeefe16c56cd3ee6239f7a5a9ae42396c2f1860f08a7c432 |
MD5 | c1f213c1f5dd7b3490f1657957b60ef0 |
BLAKE2-256 | 3cdf59cd2fa5e48d0804d213bdcb1acb4d08c403b61c7ff7ed4dd4a6a2deb3f7 |