Oracle 5.0 Reference Manual page 132

Table of Contents

Advertisement

Installing MySQL from a Standard Source Distribution
shell>
cp support-files/my-medium.cnf /etc/my.cnf
You might need to run this command as root.
If you want to configure support for
removing the
character before the option lines that start with innodb_..., and modify the option
#
values to be what you want. See
Configuration".
9. Change location into the installation directory:
shell>
cd /usr/local/mysql
10. If you ran the
make install
that the installation is accessible to
installation directory:
shell>
chown -R mysql .
shell>
chgrp -R mysql .
The first command changes the owner attribute of the files to the
the group attribute to the
11. If you have not installed MySQL before, you must create the MySQL data directory and initialize the
grant tables:
shell>
bin/mysql_install_db --user=mysql
If you run the command as root, include the
while logged in as mysql, you can omit the
The command should create the data directory and its contents with
After using
mysql_install_db
manually. The
mysqld_safe
12. Most of the MySQL installation can be owned by
directory must be owned by mysql. To accomplish this, run the following commands as
installation directory:
shell>
chown -R root .
shell>
chown -R mysql var
13. If the plugin directory is writable by the server, it may be possible for a user to write executable
code to a file in the directory using
making
plugin_dir
to a directory where
14. If you want MySQL to start automatically when you boot your machine, you can copy
files/mysql.server
can be found in the
"Starting and Stopping MySQL
15. You can set up new accounts using the
the
and
DBI
DBD::mysql
Interactively Set Permissions in Grant
Section 2.22, "Perl Installation
After everything has been installed, test the distribution. To start the MySQL server, use the following
command:
shell>
/usr/local/mysql/bin/mysqld_safe --user=mysql &
InnoDB
Section 4.2.3.3, "Using Option
command as root, the installed files will be owned by root. Ensure
mysql
group.
mysql
to create the grant tables for MySQL, you must restart the server
command to do this is shown in a later step.
SELECT ... INTO
[481]
read only to the server or by setting
writes can be made safely.
SELECT
to the location where your system has its startup files. More information
support-files/mysql.server
Automatically".
bin/mysql_setpermission
Perl modules. See
Tables". For Perl module installation instructions, see
Notes".
112
tables, you should edit the
Files", and
by executing the following commands as
mysql
option as shown. If you run the command
--user
option.
--user
if you like. The exception is that the data
root
DUMPFILE. This can be prevented by
--secure-file-priv
script itself; see also
Section 4.6.15,
"mysql_setpermission
file,
/etc/my.cnf
Section 14.2.1,
in the
root
user. The second changes
as the owner.
mysql
root
[419]
support-
Section 2.18.1.2,
script if you install
"InnoDB
in the

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents