Oracle 5.0 Reference Manual page 157

Table of Contents

Advertisement

To check the effect of specifying path options, invoke
[425]
and
verbose
--help
where
is installed and then run the following command, it shows the effect of starting the
mysqld
server with a base directory of /usr/local:
shell>
./mysqld --basedir=/usr/local --verbose --help
You can specify other options such as
[400]
must be the last options.
help
Once you determine the path settings you want, start the server without
[400].
help
If
is currently running, you can find out what path settings it is using by executing this
mysqld
command:
shell>
mysqladmin variables
Or:
shell>
mysqladmin -h host_name variables
is the name of the MySQL server host.
host_name
If you get
Errcode 13
the privileges of the data directory or its contents do not permit server access. In this case, you change
the permissions for the involved files and directories so that the server has the right to use them. You
can also start the server as root, but this raises security issues and should be avoided.
On Unix, change location into the data directory and check the ownership of the data directory and
its contents to make sure the server has access. For example, if the data directory is
mysql/var, use this command:
shell>
ls -la /usr/local/mysql/var
If the data directory or its files or subdirectories are not owned by the login account that you use for
running the server, change their ownership to that account. If the account is named mysql, use these
commands:
shell>
chown -R mysql /usr/local/mysql/var
shell>
chgrp -R mysql /usr/local/mysql/var
If it possible that even with correct ownership, MySQL may fail to start up if there is other security
software running on your system that manages application access to various parts of the file system. In
this case, you may need to reconfigure that software to enable
during normal operation.
If the server fails to start up correctly, check the error log. Log files are located in the data directory
(typically
C:\Program Files\MySQL\MySQL Server 5.0\data
for a Unix binary distribution, and
mysql/data
in the data directory for files with names of the form
is the name of your server host. Then examine the last few lines of these files. On Unix,
host_name
you can use
to display them:
tail
shell>
tail host_name.err
shell>
tail host_name.log
The error log should contain information that indicates why the server could not start. For example, you
might see something like this in the log:
000729 14:50:10
bdb:
000729 14:50:10
bdb:
000729 14:50:10
Can't init databases
Unix Postinstallation Procedures
[400]
options. For example, if you change location into the directory
--datadir
(which means
Permission
Recovery function for LSN 1 27595 failed
warning: ./test/t1.db: No such file or directory
137
with those options followed by the
mysqld
[404]
as well, but
--verbose
denied) when starting mysqld, this means that
mysqld
on Windows,
for a Unix source distribution). Look
/usr/local/var
and host_name.log, where
host_name.err
[425]
and
--
[425]
and
--verbose
/usr/local/
to access the directories it uses
/usr/local/
--
--

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents