Oracle 5.0 Reference Manual page 134

Table of Contents

Advertisement

Installing MySQL from a Development Source Tree
1. To obtain a copy of the MySQL source code, you must create a new Bazaar branch. If you do not
already have a Bazaar repository directory set up, you must initialize a new directory:
shell>
mkdir mysql-server
shell>
bzr init-repo --trees mysql-server
This is a one-time operation.
2. Assuming that you have an initialized repository directory, you can branch from the public MySQL
server repositories to create a local source tree. To create a branch of a specific version:
shell>
cd mysql-server
shell>
bzr branch lp:mysql-server/5.0 mysql-5.0
This is a one-time operation per source tree. You can branch the source trees for several versions
of MySQL under the
3. The initial download will take some time to complete, depending on the speed of your connection.
Please be patient. Once you have downloaded the first tree, additional trees should take
significantly less time to download.
4. When building from the Bazaar branch, you may want to create a copy of your active branch so that
you can make configuration and other changes without affecting the original branch contents. You
can achieve this by branching from the original branch:
shell>
bzr branch mysql-5.0 mysql-5.0-build
5. To obtain changes made after you have set up the branch initially, update it using the
periodically. Use this command in the top-level directory of the local copy:
shell>
bzr pull
You can examine the changeset comments for the tree by using the
shell> bzr log
You can also browse changesets, comments, and source code online at the Launchpad
Server
page.
If you see diffs (changes) or code that you have a question about, do not hesitate to send email
to the MySQL
internals
have a better idea on how to do something, send an email message to the list with a patch.
After you have the local branch, you can build MySQL server from the source code. On Windows,
the build process is different from Unix/Linux: see
Windows".
On Unix/Linux, use the
the build environment before building. The following example shows the typical commands required to
build MySQL from a source tree.
1. Change location to the top-level directory of the source tree; replace
appropriate directory name.
shell>
cd mysql-5.0
2. Prepare the source tree for configuration.
You must separately configure the
from the main source directory:
shell>
(cd bdb/dist; sh s_all)
shell>
(cd innobase; autoreconf --force --install)
You can omit the previous commands if you do not require
directory.
mysql-server
mailing list. See
system to create the
autoconf
and
BDB
114
Section 1.6.1, "MySQL Mailing
Section 2.10.8, "Installing MySQL from Source on
script so that you can configure
configure
storage engines. Run the following commands
InnoDB
or
BDB
pull
option to bzr:
log
MySQL
Lists". If you think you
with the
mysql-5.0
support.
InnoDB
option

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents