If you run the command as root, you should use the
name of the login account that you created in the first step to use for running the server. If you run the
mysqld_safe
If the command fails immediately and prints
by default is the
More information about
Startup
Script".
To make it more convenient to invoke programs installed in /usr/local/mysql/bin, you can add
that directory to your
only its name, not its entire path name. See
2.17.2. Installing MySQL from a Development Source Tree
This section discusses how to install MySQL from the latest development source code. Development
trees have not necessarily received the same level of testing as standard release distributions, so this
installation method is usually required only if you need the most recent code changes. Do not use a
development tree for production systems. If your goal is simply to get MySQL up and running on your
system, you should use a standard release distribution (either a binary or source distribution). See
Section 2.5, "How to Get
To obtain the source tree, you must have Bazaar installed. The
for downloading and installing Bazaar on different platforms. Bazaar is supported on any platform that
supports Python, and is therefore compatible with any Linux, Unix, Windows, or Mac OS X host.
MySQL development projects are hosted on Launchpad. MySQL projects, including MySQL Server,
MySQL Workbench, and others are available from the
repositories related only to MySQL Server, see the
To build under Unix/Linux, you must have the following tools installed:
• A good
make
highly recommended that you use GNU
system as gmake. GNU
•
autoconf
•
automake
•
libtool
• m4, available from http://www.gnu.org/software/m4/.
• bison, available from http://www.gnu.org/software/bison/. You should use the latest version of
where possible. Versions 1.75 and 2.1 are known to work. There have been reported
bison
problems with
version.
To build under Windows you must have Microsoft Visual C++ 2005 Express Edition, Visual Studio .Net
2003 (7.1), or Visual Studio 2005 (8.0) compiler system.
Once the necessary tools are installed, create a local branch of the MySQL development tree on your
machine using this procedure:
Installing MySQL from a Development Source Tree
command while logged in as that user, you can omit the
file in the data directory).
host_name.err
mysqld_safe
environment variable setting. That enables you to run a program by typing
PATH
Note
The accounts that are listed in the MySQL grant tables initially have no
passwords. After starting the server, you should set up passwords for them
using the instructions in
MySQL".
program. Although some platforms come with their own
is available from http://www.gnu.org/software/make/.
make
2.58 (or newer), available from http://www.gnu.org/software/autoconf/.
1.8.1, available from http://www.gnu.org/software/automake/.
1.5, available from http://www.gnu.org/software/libtool/. 1.5.24 or later is recommended.
1.875. If you experience problems, upgrade to a later, rather than earlier,
bison
--user
ended, look for information in the error log (which
mysqld
is given in
Section 4.3.2,
Section 4.2.4, "Setting Environment
Section 2.18, "Postinstallation Setup and
Oracle/MySQL Engineering
MySQL Server
3.75 or newer. It may already be available on your
make
113
option as shown. The option value is the
option.
--user
"mysqld_safe
— MySQL Server
Variables".
Testing".
Bazaar VCS Web site
page. For the
page.
implementations, it is
make
has instructions
Need help?
Do you have a question about the 5.0 and is the answer not in the manual?
Questions and answers