Oracle 5.0 Reference Manual page 153

Table of Contents

Advertisement

Address already in use
Can't start server: Bind on unix socket...
For instructions on setting up multiple servers, see
on One
Machine".
You do not have write access to the
If you do not have write access to create temporary files or a Unix socket file in the default location
(the
directory), an error occurs when you run
/tmp
You can specify different locations for the temporary directory and Unix socket file by executing
these commands prior to starting
path name to some directory for which you have write permission:
shell>
TMPDIR=/some_tmp_dir/
shell>
MYSQL_UNIX_PORT=/some_tmp_dir/mysql.sock
shell>
export TMPDIR MYSQL_UNIX_PORT
Then you should be able to run
shell>
bin/mysql_install_db --user=mysql
shell>
bin/mysqld_safe --user=mysql &
If
mysql_install_db
mysql_install_db.
See
Section C.5.4.5, "How to Protect or Change the MySQL Unix Socket
"Environment
Variables".
There are some alternatives to running the
distribution:
• If you want the initial privileges to be different from the standard defaults, you can modify
mysql_install_db
to change the privileges after the grant tables have been set up. In other words, you can run
mysql_install_db, and then use
MySQL
user so that you can issue the necessary
root
If you want to install MySQL on several machines with the same privileges, you can put the
and
statements in a file and execute the file as a script using
GRANT
REVOKE
mysql_install_db. For example:
shell>
bin/mysql_install_db --user=mysql
shell>
bin/mysql -u root < your_script_file
By doing this, you can avoid having to issue the statements manually on each machine.
• It is possible to re-create the grant tables completely after they have previously been created. You
might want to do this if you are just learning how to use
modifications after running
To re-create the grant tables, remove all the .frm, .MYI, and
directory. Then run the
• You can start
mysqld
privilege information yourself using mysql:
shell>
bin/mysqld_safe --user=mysql --skip-grant-tables &
shell>
bin/mysql mysql
From mysql, manually execute the SQL commands contained in mysql_install_db. Make sure
that you run
mysqladmin flush-privileges
server to reload the grant tables.
Unix Postinstallation Procedures
/tmp
mysql_install_db
mysql_install_db
is located in the
scripts
mysql_install_db
before you run it. However, it is preferable to use
mysql -u root mysql
mysql_install_db
mysql_install_db
manually using the
--skip-grant-tables
133
Section 5.3, "Running Multiple MySQL Instances
directory
mysql_install_db
or mysqld, where
and start the server with these commands:
directory, modify the first command to
script provided in the MySQL
to connect to the server as the
and
GRANT
REVOKE
and
GRANT
REVOKE
that you want to wipe out the tables and start over.
files in the
.MYD
script again.
[420]
or
mysqladmin reload
or the
server.
mysqld
is the full
some_tmp_dir
scripts/
File", and
Section 2.21,
and
GRANT
REVOKE
statements.
after running
mysql
and have made so many
database
mysql
option and add the
afterward to tell the

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents