annotate README @ 33:7c7b7114864b MySQLdb

Merge back r555 for ez_setup usage
author kylev
date Wed, 11 Feb 2009 23:51:13 +0000
parents e48810735f11
children 7b67220c5109
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
1 ====================
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
2 MySQLdb Installation
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
3 ====================
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
4
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
5 .. contents::
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
6 ..
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
7
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
8 Prerequisites
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
9 -------------
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
10
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
11 + Python 2.3.4 or higher
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
12
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
13 * http://www.python.org/
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
14
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
15 * Versions lower than 2.3 WON'T WORK.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
16
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
17 * 2.4 is the primary test environment.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
18
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
19 * Red Hat Linux:
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
20
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
21 - Make sure you have the Python development headers and libraries
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
22 (python-devel).
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
23
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
24 + MySQL 3.23.32 or higher
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
25
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
26 * http://www.mysql.com/downloads/
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
27
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
28 * Versions lower than 3.22 definitely WON'T WORK.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
29
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
30 * Versions lower than 3.22.19 might not work.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
31
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
32 * MySQL-3.22 might work but isn't supported anymore. It's very old.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
33
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
34 * MySQL-3.23 ought to work, but it's pretty elderly.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
35
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
36 * MySQL-4.0 is supported, but not tested and slightly discouraged.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
37
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
38 * MySQL-4.1 is supported and tested. The prepared statements API is not
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
39 supported, and won't be until MySQLdb-1.3 or 2.0.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
40
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
41 * MySQL-5.0 is supported and tested, including stored procedures.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
42
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
43 * MaxDB, formerly known as SAP DB (and maybe Adabas D?), is a
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
44 completely different animal. Use the sapdb.sql module that comes
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
45 with MaxDB.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
46
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
47 * Red Hat Linux packages:
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
48
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
49 - mysql-devel to compile
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
50
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
51 - mysql and/or mysql-devel to run
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
52
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
53 * MySQL.com RPM packages:
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
54
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
55 - MySQL-devel to compile
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
56
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
57 - MySQL-shared if you want to use their shared
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
58 library. Otherwise you'll get a statically-linked module,
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
59 which may or may not be what you want.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
60
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
61 - MySQL-shared to run if you compiled with MySQL-shared installed
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
62
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
63 * Transactions (particularly InnoDB tables) are supported for
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
64 MySQL-3.23 and up. You may need a special package from your vendor
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
65 with this support turned on.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
66
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
67 + zlib
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
68
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
69 * Required for MySQL-3.23 and newer.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
70
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
71 * Red Hat Linux
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
72
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
73 - zlib-devel to compile
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
74
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
75 - zlib to run
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
76
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
77 + openssl
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
78
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
79 * May be needed for MySQL-4.0 or newer, depending on compilation
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
80 options. If you need it, you probably already have it.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
81
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
82 - you may need openssl-devel on some platforms
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
83
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
84 + C compiler
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
85
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
86 * Most free software-based systems already have this, usually gcc.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
87
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
88 * Most commercial UNIX platforms also come with a C compiler, or
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
89 you can also use gcc.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
90
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
91 * If you have some Windows flavor, you usually have to pay extra
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
92 for this, or you can use Cygwin_.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
93
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
94 .. _Cygwin: http://www.cygwin.com/
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
95
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
96
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
97
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
98 Building and installing
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
99 -----------------------
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
100
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
101 The setup.py script uses mysql_config to find all compiler and linker
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
102 options, and should work as is on any POSIX-like platform, so long as
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
103 mysql_config is in your path.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
104
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
105 Depending on which version of MySQL you have, you may have the option
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
106 of using three different client libraries. To select the client library,
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
107 edit the [options] section of site.cfg:
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
108
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
109 embedded
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
110 use embedded server library (libmysqld) if True; otherwise use
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
111 one of the client libraries (default).
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
112
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
113 threadsafe
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
114 thread-safe client library (libmysqlclient_r) if True (default);
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
115 otherwise use non-thread-safe (libmysqlclient). You should
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
116 always use the thread-safe library if you have the option;
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
117 otherwise you *may* have problems.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
118
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
119 static
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
120 if True, try to link against a static library; otherwise link
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
121 against dynamic libraries (default). You may need static linking
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
122 to use the embedded server.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
123
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
124
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
125 Finally, putting it together::
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
126
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
127 $ tar xfz MySQL-python-1.2.1.tar.gz
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
128 $ cd MySQL-python-1.2.1
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
129 $ # edit site.cfg if necessary
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
130 $ python setup.py build
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
131 $ sudo python setup.py install # or su first
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
132
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
133
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
134 Windows
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
135 .......
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
136
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
137 I don't do Windows. However if someone provides me with a package for
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
138 Windows, I'll make it available. Don't ask me for help with Windows
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
139 because I can't help you.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
140
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
141 Generally, though, running setup.py is similar to above::
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
142
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
143 C:\...> python setup.py install
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
144 C:\...> python setup.py bdist_wininst
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
145
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
146 The latter example should build a Windows installer package, if you
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
147 have the correct tools. In any event, you *must* have a C compiler.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
148 Additionally, you have to set an environment variable (mysqlroot)
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
149 which is the path to your MySQL installation. In theory, it would be
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
150 possible to get this information out of the registry, but like I said,
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
151 I don't do Windows, but I'll accept a patch that does this.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
152
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
153 On Windows, you will definitely have to edit site.cfg since there is
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
154 no mysql_config in the MySQL package.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
155
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
156
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
157 Zope
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
158 ....
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
159
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
160 If you are using a binary package of Zope, you need run setup.py with
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
161 the python executable that came with Zope. Otherwise, you'll install
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
162 into the wrong Python tree and Zope (ZMySQLDA) will not be able to
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
163 find _mysql.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
164
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
165
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
166 Binary Packages
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
167 ---------------
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
168
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
169 I don't plan to make binary packages any more. However, if someone
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
170 contributes one, I will make it available. Several OS vendors have
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
171 their own packages available.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
172
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
173
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
174 RPMs
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
175 ....
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
176
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
177 If you prefer to install RPMs, you can use the bdist_rpm command with
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
178 setup.py. This only builds the RPM; it does not install it. You may
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
179 want to use the --python=XXX option, where XXX is the name of the
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
180 Python executable, i.e. python, python2, python2.4; the default is
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
181 python. Using this will incorporate the Python executable name into
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
182 the package name for the RPM so you have install the package multiple
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
183 times if you need to support more than one version of Python. You can
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
184 also set this in setup.cfg.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
185
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
186
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
187 Red Hat Linux
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
188 .............
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
189
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
190 MySQL-python is pre-packaged in Red Hat Linux 7.x and newer. This
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
191 includes Fedora Core and Red Hat Enterprise Linux. You can also
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
192 build your own RPM packages as described above.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
193
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
194
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
195 Debian GNU/Linux
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
196 ................
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
197
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
198 Packaged as `python-mysqldb`_::
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
199
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
200 # apt-get install python-mysqldb
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
201
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
202 Or use Synaptic.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
203
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
204 .. _`python-mysqldb`: http://packages.debian.org/python-mysqldb
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
205
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
206
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
207 Ubuntu
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
208 ......
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
209
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
210 Same as with Debian.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
211
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
212
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
213 Gentoo Linux
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
214 ............
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
215
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
216 Packaged as `mysql-python`_. Gentoo is also my preferred development platform,
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
217 though I have also done some with Ubuntu lately. ::
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
218
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
219 # emerge sync
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
220 # emerge mysql-python
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
221 # emerge zmysqlda # if you use Zope
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
222
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
223 .. _`mysql-python`: http://packages.gentoo.org/search/?sstring=mysql-python
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
224
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
225
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
226 BSD
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
227 ...
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
228
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
229 MySQL-python is a ported package in FreeBSD, NetBSD, and OpenBSD,
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
230 although the name may vary to match OS conventions.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
231
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
232
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
233 License
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
234 -------
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
235
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
236 GPL or the original license based on Python 1.5.2's license.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
237
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
238
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
239 :Author: Andy Dustman <[email protected]>
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
240 :Revision: $Id$