Mysql Server And Server-Startup Programs; Mysqld - The Mysql Server - Oracle 5.0 Reference Manual

Table of Contents

Advertisement

you can set it in a startup file or by using the interface provided by your system for this purpose.
Consult the documentation for your command interpreter for specific details.
"Environment
To specify a value for an environment variable, use the syntax appropriate for your command
processor. For example, on Windows or NetWare, you can set the
MySQL account name. To do so, use this syntax:
SET
USER=your_name
The syntax on Unix depends on your shell. Suppose that you want to specify the TCP/IP port number
using the
MYSQL_TCP_PORT
follows:
MYSQL_TCP_PORT=3306
export MYSQL_TCP_PORT
The first command sets the variable, and the
environment so that its value becomes accessible to MySQL and other processes.
For
and tcsh, use
csh
setenv MYSQL_TCP_PORT 3306
The commands to set environment variables can be executed at your command prompt to take effect
immediately, but the settings persist only until you log out. To have the settings take effect each time
you log in, use the interface provided by your system or place the appropriate command or commands
in a startup file that your command interpreter reads each time it starts.
On Windows, you can set environment variables using the System Control Panel (under Advanced).
On Unix, typical shell startup files are
Suppose that your MySQL programs are installed in
make it easy to invoke these programs. To do this, set the value of the
include that directory. For example, if your shell is bash, add the following line to your
PATH=${PATH}:/usr/local/mysql/bin
uses different startup files for login and nonlogin shells, so you might want to add the setting to
bash
for login shells and to
.bashrc
regardless.
If your shell is tcsh, add the following line to your
setenv PATH ${PATH}:/usr/local/mysql/bin
If the appropriate startup file does not exist in your home directory, create it with a text editor.
After modifying your
that the setting goes into effect.

4.3. MySQL Server and Server-Startup Programs

This section describes mysqld, the MySQL server, and several programs that are used to start the
server.
4.3.1.
— The MySQL Server
mysqld
mysqld, also known as MySQL Server, is the main program that does most of the work in a MySQL
installation. MySQL Server manages access to the MySQL data directory that contains databases and
tables. The data directory is also the default location for other information such as log files and status
files.

MySQL Server and Server-Startup Programs

Variables", lists all environment variables that affect MySQL program operation.
variable. Typical syntax (such as for sh, bash, zsh, and so on) is as
to make the shell variable available to the environment:
setenv
.bash_profile
setting, open a new console window on Windows or log in again on Unix so
PATH
command exports the variable to the shell
export
or
.bashrc
.bash_profile
/usr/local/mysql/bin
for nonlogin shells to make sure that
.tcshrc
244
Section 2.21,
variable to specify your
USER
for bash, or
.tcshrc
and that you want to
environment variable to
PATH
file:
for tcsh.
file:
.bashrc
is set
PATH

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 5.0 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Mysql 5.0

Table of Contents