@@ -7,37 +7,60 @@ This is a fork of [MySQLdb1](https://github.com/farcepest/MySQLdb1).
7
7
This project adds Python 3 support and bug fixes.
8
8
I hope this fork is merged back to MySQLdb1 like distribute was merged back to setuptools.
9
9
10
- ## Install
11
10
12
- ### Prerequisites
11
+ ## Support
12
+
13
+ ** Do Not use Github Issue Tracker to ask help. OSS Maintainer is not free tech support**
14
+
15
+ When your question looks relating to Python rather than MySQL:
16
+
17
+ * Python mailing list [ python-list] ( https://mail.python.org/mailman/listinfo/python-list )
18
+ * Slack [ pythondev.slack.com] ( https://pyslackers.com/web/slack )
19
+
20
+ Or when you have question about MySQL:
21
+
22
+ * [ MySQL Community on Slack] ( https://lefred.be/mysql-community-on-slack/ )
23
+
24
+
25
+ ## Install
13
26
14
- You may need to install the Python and MySQL development headers and libraries like so:
27
+ ### Windows
15
28
16
- * ` sudo apt-get install python-dev default-libmysqlclient-dev ` # Debian / Ubuntu
17
- * ` sudo yum install python-devel mysql-devel ` # Red Hat / CentOS
18
- * ` brew install mysql-client ` # macOS (Homebrew)
29
+ Building mysqlclient on Windows is very hard.
30
+ But there are some binary wheels you can install easily.
19
31
20
- On Windows, there are binary wheels you can install without MySQLConnector/C or MSVC.
32
+ ### macOS (Homebrew)
21
33
22
- #### Note on Python 3 : if you are using python3 then you need to install python3-dev using the following command :
34
+ Install MySQL and mysqlclient :
23
35
24
- ` sudo apt-get install python3-dev ` # debian / Ubuntu
36
+ ```
37
+ # Assume you are activating Python 3 venv
38
+ $ brew install mysql
39
+ $ pip install mysqlclient
40
+ ```
25
41
26
- ` sudo yum install python3-devel ` # Red Hat / CentOS
42
+ If you don't want to install MySQL server, you can use mysql-client instead:
27
43
28
- ### Install from PyPI
44
+ ```
45
+ # Assume you are activating Python 3 venv
46
+ $ brew install mysql-client
47
+ $ echo 'export PATH="/usr/local/opt/mysql-client/bin:$PATH"' >> ~/.bash_profile
48
+ $ export PATH="/usr/local/opt/mysql-client/bin:$PATH"
49
+ $ pip install mysqlclient
50
+ ```
29
51
30
- ` pip install mysqlclient `
52
+ ### Linux
31
53
32
- NOTE: Wheels for Windows may be not released with source package. You should pin version
33
- in your ` requirements.txt ` to avoid trying to install newest source package.
54
+ You may need to install the Python 3 and MySQL development headers and libraries like so:
34
55
56
+ * ` $ sudo apt-get install python3-dev default-libmysqlclient-dev ` # Debian / Ubuntu
57
+ * ` % sudo yum install python3-devel mysql-devel ` # Red Hat / CentOS
35
58
36
- ### Install from source
59
+ Then you can install mysqlclient via pip now:
37
60
38
- 1 . Download source by ` git clone ` or [ zipfile ] ( https://github.com/PyMySQL/mysqlclient-python/archive/master.zip ) .
39
- 2 . Customize ` site.cfg `
40
- 3 . ` python setup.py install `
61
+ ```
62
+ $ pip install mysqlclient
63
+ `` `
41
64
42
65
### Documentation
43
66
0 commit comments