How To Run Mysql As A Normal User - Oracle 5.0 Reference Manual

Hello, I am your AI assistant. How can I help you?
Table of Contents

Advertisement

Name
local_infile [462]
old_passwords [480]
safe-show-
database [418]
safe-user-
create [419]
secure-auth [419]
- Variable:
secure_auth
secure-file-
priv [419]
- Variable:
secure_file_priv
skip-grant-
tables [420]
skip-name-
resolve [420]
- Variable:
skip_name_resolve
skip-
networking [421]
- Variable:
skip_networking
skip-show-
database [421]
- Variable:
skip_show_database

6.1.5. How to Run MySQL as a Normal User

On Windows, you can run the server as a Windows service using a normal user account.
On Unix, the MySQL server
running the server as the Unix
unprivileged Unix user user_name, you must do the following:
1. Stop the server if it is running (use
2. Change the database directories and files so that
in them (you might need to do this as the Unix
shell>
chown -R user_name /path/to/mysql/datadir
If you do not do this, the server will not be able to access databases or tables when it runs as
user_name.
If directories or files within the MySQL data directory are symbolic links,
follow symbolic links for you. If it does not, you will also need to follow those links and change the
directories and files they point to.
3. Start the server as user user_name. Another alternative is to start
and use the
user
user_name

How to Run MySQL as a Normal User

Cmd-Line
Option file
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
can be started and run by any user. However, you should avoid
mysqld
user for security reasons. To change
root
mysqladmin
[424]
--user=user_name
before accepting any connections.
System Var Status Var
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
shutdown).
has privileges to read and write files
user_name
user):
root
option.
starts up, then switches to run as the Unix
mysqld
571
Var Scope
Dynamic
Global
Yes
Both
Yes
Global
Yes
Global
Yes
Global
Yes
Global
No
Global
No
Global
No
Global
No
Global
No
Global
No
Global
No
Global
No
to run as a normal
mysqld
might not
chown -R
as the Unix
mysqld
root
user

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