# mysqlclient
This project is a fork of [MySQLdb1](https://github.com/farcepest/MySQLdb1).
This project adds Python 3 support and fixed many bugs.
* PyPI: https://pypi.org/project/mysqlclient/
* GitHub: https://github.com/PyMySQL/mysqlclient
## 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/MariaDB:
* Python mailing list [python-list](https://mail.python.org/mailman/listinfo/python-list)
* Slack [pythondev.slack.com](https://pyslackers.com/web/slack)
Or when you have question about MySQL/MariaDB:
* [MySQL Support](https://dev.mysql.com/support/)
* [Getting Help With MariaDB](https://mariadb.com/kb/en/getting-help-with-mariadb/)
## Install
### Windows
Building mysqlclient on Windows is very hard.
But there are some binary wheels you can install easily.
If binary wheels do not exist for your version of Python, it may be possible to
build from source, but if this does not work, **do not come asking for support.**
To build from source, download the
[MariaDB C Connector](https://mariadb.com/downloads/#connectors) and install
it. It must be installed in the default location
(usually "C:\Program Files\MariaDB\MariaDB Connector C" or
"C:\Program Files (x86)\MariaDB\MariaDB Connector C" for 32-bit). If you
build the connector yourself or install it in a different location, set the
environment variable `MYSQLCLIENT_CONNECTOR` before installing. Once you have
the connector installed and an appropriate version of Visual Studio for your
version of Python:
```
$ pip install mysqlclient
```
### macOS (Homebrew)
Install MySQL and mysqlclient:
```bash
$ # Assume you are activating Python 3 venv
$ brew install mysql pkg-config
$ pip install mysqlclient
```
If you don't want to install MySQL server, you can use mysql-client instead:
```bash
$ # Assume you are activating Python 3 venv
$ brew install mysql-client pkg-config
$ export PKG_CONFIG_PATH="$(brew --prefix)/opt/mysql-client/lib/pkgconfig"
$ 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 pkg-config` # Debian / Ubuntu
* `% sudo yum install python3-devel mysql-devel pkgconfig` # Red Hat / CentOS
Then you can install mysqlclient via pip now:
```
$ pip install mysqlclient
```
### Customize build (POSIX)
mysqlclient uses `pkg-config --cflags --ldflags mysqlclient` by default for finding
compiler/linker flags.
You can use `MYSQLCLIENT_CFLAGS` and `MYSQLCLIENT_LDFLAGS` environment
variables to customize compiler/linker options.
```bash
$ export MYSQLCLIENT_CFLAGS=`pkg-config mysqlclient --cflags`
$ export MYSQLCLIENT_LDFLAGS=`pkg-config mysqlclient --libs`
$ pip install mysqlclient
```
### Documentation
Documentation is hosted on [Read The Docs](https://mysqlclient.readthedocs.io/)
Raw data
{
"_id": null,
"home_page": null,
"name": "mysqlclient",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "MySQL",
"author": null,
"author_email": "Inada Naoki <songofacandy@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/be/95/1af2ee813d4f0b607082c18bb82aa05c98a95a402a1d2d5808999317cb16/mysqlclient-2.2.5.tar.gz",
"platform": null,
"description": "# mysqlclient\r\n\r\nThis project is a fork of [MySQLdb1](https://github.com/farcepest/MySQLdb1).\r\nThis project adds Python 3 support and fixed many bugs.\r\n\r\n* PyPI: https://pypi.org/project/mysqlclient/\r\n* GitHub: https://github.com/PyMySQL/mysqlclient\r\n\r\n\r\n## Support\r\n\r\n**Do Not use Github Issue Tracker to ask help. OSS Maintainer is not free tech support**\r\n\r\nWhen your question looks relating to Python rather than MySQL/MariaDB:\r\n\r\n* Python mailing list [python-list](https://mail.python.org/mailman/listinfo/python-list)\r\n* Slack [pythondev.slack.com](https://pyslackers.com/web/slack)\r\n\r\nOr when you have question about MySQL/MariaDB:\r\n\r\n* [MySQL Support](https://dev.mysql.com/support/)\r\n* [Getting Help With MariaDB](https://mariadb.com/kb/en/getting-help-with-mariadb/)\r\n\r\n\r\n## Install\r\n\r\n### Windows\r\n\r\nBuilding mysqlclient on Windows is very hard.\r\nBut there are some binary wheels you can install easily.\r\n\r\nIf binary wheels do not exist for your version of Python, it may be possible to\r\nbuild from source, but if this does not work, **do not come asking for support.**\r\nTo build from source, download the\r\n[MariaDB C Connector](https://mariadb.com/downloads/#connectors) and install\r\nit. It must be installed in the default location\r\n(usually \"C:\\Program Files\\MariaDB\\MariaDB Connector C\" or\r\n\"C:\\Program Files (x86)\\MariaDB\\MariaDB Connector C\" for 32-bit). If you\r\nbuild the connector yourself or install it in a different location, set the\r\nenvironment variable `MYSQLCLIENT_CONNECTOR` before installing. Once you have\r\nthe connector installed and an appropriate version of Visual Studio for your\r\nversion of Python:\r\n\r\n```\r\n$ pip install mysqlclient\r\n```\r\n\r\n### macOS (Homebrew)\r\n\r\nInstall MySQL and mysqlclient:\r\n\r\n```bash\r\n$ # Assume you are activating Python 3 venv\r\n$ brew install mysql pkg-config\r\n$ pip install mysqlclient\r\n```\r\n\r\nIf you don't want to install MySQL server, you can use mysql-client instead:\r\n\r\n```bash\r\n$ # Assume you are activating Python 3 venv\r\n$ brew install mysql-client pkg-config\r\n$ export PKG_CONFIG_PATH=\"$(brew --prefix)/opt/mysql-client/lib/pkgconfig\"\r\n$ pip install mysqlclient\r\n```\r\n\r\n### Linux\r\n\r\n**Note that this is a basic step. I can not support complete step for build for all\r\nenvironment. If you can see some error, you should fix it by yourself, or ask for\r\nsupport in some user forum. Don't file a issue on the issue tracker.**\r\n\r\nYou may need to install the Python 3 and MySQL development headers and libraries like so:\r\n\r\n* `$ sudo apt-get install python3-dev default-libmysqlclient-dev build-essential pkg-config` # Debian / Ubuntu\r\n* `% sudo yum install python3-devel mysql-devel pkgconfig` # Red Hat / CentOS\r\n\r\nThen you can install mysqlclient via pip now:\r\n\r\n```\r\n$ pip install mysqlclient\r\n```\r\n\r\n### Customize build (POSIX)\r\n\r\nmysqlclient uses `pkg-config --cflags --ldflags mysqlclient` by default for finding\r\ncompiler/linker flags.\r\n\r\nYou can use `MYSQLCLIENT_CFLAGS` and `MYSQLCLIENT_LDFLAGS` environment\r\nvariables to customize compiler/linker options.\r\n\r\n```bash\r\n$ export MYSQLCLIENT_CFLAGS=`pkg-config mysqlclient --cflags`\r\n$ export MYSQLCLIENT_LDFLAGS=`pkg-config mysqlclient --libs`\r\n$ pip install mysqlclient\r\n```\r\n\r\n### Documentation\r\n\r\nDocumentation is hosted on [Read The Docs](https://mysqlclient.readthedocs.io/)\r\n",
"bugtrack_url": null,
"license": "GNU General Public License v2 or later (GPLv2+)",
"summary": "Python interface to MySQL",
"version": "2.2.5",
"project_urls": {
"Documentation": "https://mysqlclient.readthedocs.io/",
"Project": "https://github.com/PyMySQL/mysqlclient"
},
"split_keywords": [
"mysql"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "87785dc4d98b998e957968aa8ad807a6ca7f751ef79ce462da11156317d7ca08",
"md5": "165fdcd356cf63e5da86bcd5eca972ed",
"sha256": "b78438314199504c64f69e1e3521f2c9b419f19fcd85158b44c997b64409a6af"
},
"downloads": -1,
"filename": "mysqlclient-2.2.5-cp310-cp310-win_amd64.whl",
"has_sig": false,
"md5_digest": "165fdcd356cf63e5da86bcd5eca972ed",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.8",
"size": 207205,
"upload_time": "2024-10-20T09:52:40",
"upload_time_iso_8601": "2024-10-20T09:52:40.713843Z",
"url": "https://files.pythonhosted.org/packages/87/78/5dc4d98b998e957968aa8ad807a6ca7f751ef79ce462da11156317d7ca08/mysqlclient-2.2.5-cp310-cp310-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "9a120e10b29d0a880e0d2482fe93d502d537bddf647f1a35468c8b98bb517c91",
"md5": "9d24bcbfe65500115a10287c4944ffba",
"sha256": "b54511648c1455b43ac28f8b4c1f732c5b0c343e87f7a3bd6fc9f9fe0f91934e"
},
"downloads": -1,
"filename": "mysqlclient-2.2.5-cp311-cp311-win_amd64.whl",
"has_sig": false,
"md5_digest": "9d24bcbfe65500115a10287c4944ffba",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.8",
"size": 207207,
"upload_time": "2024-10-20T09:52:42",
"upload_time_iso_8601": "2024-10-20T09:52:42.797269Z",
"url": "https://files.pythonhosted.org/packages/9a/12/0e10b29d0a880e0d2482fe93d502d537bddf647f1a35468c8b98bb517c91/mysqlclient-2.2.5-cp311-cp311-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "8b96962f16047ed35ee8c91c10c26a98057194242f6c8da3b78238909a8014fe",
"md5": "c649c2c8753ff08e8bdb214b26f64e65",
"sha256": "e871ede4261d0d42b8ed20a2459db411c7deafedd8e77b7e4ba760be4a6a752b"
},
"downloads": -1,
"filename": "mysqlclient-2.2.5-cp312-cp312-win_amd64.whl",
"has_sig": false,
"md5_digest": "c649c2c8753ff08e8bdb214b26f64e65",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.8",
"size": 207349,
"upload_time": "2024-10-20T09:52:44",
"upload_time_iso_8601": "2024-10-20T09:52:44.507670Z",
"url": "https://files.pythonhosted.org/packages/8b/96/962f16047ed35ee8c91c10c26a98057194242f6c8da3b78238909a8014fe/mysqlclient-2.2.5-cp312-cp312-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "62f94a43f9fde92eb463bdb08643c4a143751be2b68cd9ad0582d7ee80836ddc",
"md5": "7bf55aec0fc457812a17f1b39c9e3f40",
"sha256": "8012c633aab8c91ea8172ac479807135b171501b9cad1a7cd9b58c4dc8dcdab5"
},
"downloads": -1,
"filename": "mysqlclient-2.2.5-cp313-cp313-win_amd64.whl",
"has_sig": false,
"md5_digest": "7bf55aec0fc457812a17f1b39c9e3f40",
"packagetype": "bdist_wheel",
"python_version": "cp313",
"requires_python": ">=3.8",
"size": 207343,
"upload_time": "2024-10-20T09:52:46",
"upload_time_iso_8601": "2024-10-20T09:52:46.315892Z",
"url": "https://files.pythonhosted.org/packages/62/f9/4a43f9fde92eb463bdb08643c4a143751be2b68cd9ad0582d7ee80836ddc/mysqlclient-2.2.5-cp313-cp313-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "dafc91fda245bb5ce2c4778103ddf80621440a570b985d2a20457c39b28a39db",
"md5": "e80532af05531aef33036e7a5fee14f4",
"sha256": "3f9625bea2b9bcde0ace76b32708762d44597491092c819fd1bff5b4e27f709b"
},
"downloads": -1,
"filename": "mysqlclient-2.2.5-cp39-cp39-win_amd64.whl",
"has_sig": false,
"md5_digest": "e80532af05531aef33036e7a5fee14f4",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.8",
"size": 207233,
"upload_time": "2024-10-20T09:52:47",
"upload_time_iso_8601": "2024-10-20T09:52:47.602267Z",
"url": "https://files.pythonhosted.org/packages/da/fc/91fda245bb5ce2c4778103ddf80621440a570b985d2a20457c39b28a39db/mysqlclient-2.2.5-cp39-cp39-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "be17cd1b80247f76968c1c5a643843c69c640a8548f4f5e131be6b10d4436def",
"md5": "6230f085ead673ea015184d35f336704",
"sha256": "1d2e2ca0fe8405d8d6464edd01bf059951279e4bc27284d39341bd4737b2bc64"
},
"downloads": -1,
"filename": "mysqlclient-2.2.5-pp310-pypy310_pp73-win_amd64.whl",
"has_sig": false,
"md5_digest": "6230f085ead673ea015184d35f336704",
"packagetype": "bdist_wheel",
"python_version": "pp310",
"requires_python": ">=3.8",
"size": 207267,
"upload_time": "2024-10-20T09:52:49",
"upload_time_iso_8601": "2024-10-20T09:52:49.978259Z",
"url": "https://files.pythonhosted.org/packages/be/17/cd1b80247f76968c1c5a643843c69c640a8548f4f5e131be6b10d4436def/mysqlclient-2.2.5-pp310-pypy310_pp73-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "215ac48769a4e4c500c27f8da3d1e375aca5313a1c5a94b08fc52c18b2943af5",
"md5": "17e9401ed3422400cfd8ca7b2a1d36f2",
"sha256": "aee14f1872114865679fcb09aac3772de4595fa7dcf2f83a4c7afee15e508854"
},
"downloads": -1,
"filename": "mysqlclient-2.2.5-pp39-pypy39_pp73-win_amd64.whl",
"has_sig": false,
"md5_digest": "17e9401ed3422400cfd8ca7b2a1d36f2",
"packagetype": "bdist_wheel",
"python_version": "pp39",
"requires_python": ">=3.8",
"size": 207347,
"upload_time": "2024-10-20T09:52:51",
"upload_time_iso_8601": "2024-10-20T09:52:51.917955Z",
"url": "https://files.pythonhosted.org/packages/21/5a/c48769a4e4c500c27f8da3d1e375aca5313a1c5a94b08fc52c18b2943af5/mysqlclient-2.2.5-pp39-pypy39_pp73-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "be951af2ee813d4f0b607082c18bb82aa05c98a95a402a1d2d5808999317cb16",
"md5": "7e312b1e95c52fa24def1da7e5ab348c",
"sha256": "add8643c32f738014d252d2bdebb478623b04802e8396d5903905db36474d3ff"
},
"downloads": -1,
"filename": "mysqlclient-2.2.5.tar.gz",
"has_sig": false,
"md5_digest": "7e312b1e95c52fa24def1da7e5ab348c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 90519,
"upload_time": "2024-10-20T09:52:53",
"upload_time_iso_8601": "2024-10-20T09:52:53.165846Z",
"url": "https://files.pythonhosted.org/packages/be/95/1af2ee813d4f0b607082c18bb82aa05c98a95a402a1d2d5808999317cb16/mysqlclient-2.2.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-20 09:52:53",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "PyMySQL",
"github_project": "mysqlclient",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "mysqlclient"
}