Oracle 5.0 Reference Manual page 141

Table of Contents

Advertisement

should still try to build all clients, but you can ignore any warnings about files such as mysql.cc. (If
stops, try
make
make -k
To build the embedded MySQL library (libmysqld.a), use the
[121]
option.
server
To place your log files and database directories elsewhere than under /usr/local/var, use a
command something like one of these:
configure
shell>
./configure --prefix=/usr/local/mysql
shell>
./configure --prefix=/usr/local \
--localstatedir=/usr/local/mysql/data
The first command changes the installation prefix so that everything is installed under
rather than the default of /usr/local. The second command preserves the default
local/mysql
installation prefix, but overrides the default location for database directories (normally
var) and changes it to /usr/local/mysql/data.
You can also specify the installation directory and data directory locations at server startup time by
using the
--basedir
line or in an MySQL option file, although it is more common to use an option file. See
"Using Option
Files".
The
--with-tcp-port
for TCP/IP connections. The default is port 3306. To listen on a different port, use a
command like this:
shell>
./configure --with-tcp-port=3307
On Unix, if you want the MySQL socket file location to be somewhere other than the default
location (normally in the directory
shell>
./configure \
--with-unix-socket-path=/usr/local/mysql/tmp/mysql.sock
The socket file name must be an absolute path name. You can also change the location of
at server startup by using a MySQL option file. See
mysql.sock
Change the MySQL Unix Socket
To compile statically linked programs (for example, to make a binary distribution, to get better
performance, or to work around problems with some Red Hat Linux distributions), run
like this:
shell>
./configure --with-client-ldflags=-all-static \
--with-mysqld-ldflags=-all-static
If you are using
gcc
to use
as your C++ compiler:
gcc
shell>
CC=gcc CXX=gcc ./configure
When you use
as your C++ compiler, it does not attempt to link in
gcc
may be a good thing to do even if you have those libraries installed. Some versions of them have
caused strange problems for MySQL users in the past.
The following list indicates some compilers and environment variable settings that are commonly
used with each one.
2.7.2:
gcc
CC=gcc CXX=gcc CXXFLAGS="-O3 -felide-constructors"
2.95.2:
gcc
MySQL Source-Configuration Options
to tell it to continue with the rest of the build even if errors occur.)
[401]
and
[404]
--datadir
[121]
option specifies the port number on which the server listens
or /var/run), use a
/tmp
File".
and do not have
libg++
121
--with-embedded-
options. These can be given on the command
configure
Section C.5.4.5, "How to Protect or
or
installed, you can tell
libstdc++
libg++
/usr/
/usr/local/
Section 4.2.3.3,
configure
command like this:
configure
configure
or libstdc++. This

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents