MYSQLACCESS(1) MySQL Database System MYSQLACCESS(1)

2
3
4

NAME

6       mysqlaccess - client for checking access privileges
7

SYNOPSIS

9       mysqlaccess [host_name [user_name [db_name]]] [options]
10

DESCRIPTION

12       mysqlaccess is a diagnostic tool that Yves Carlier has provided for the
13       MySQL distribution. It checks the access privileges for a hostname,
14       username, and database combination. Note that mysqlaccess checks access
15       using only the user, db, and host tables. It does not check table,
16       column, or routine privileges specified in the tables_priv,
17       columns_priv, or procs_priv tables.
18
19       Invoke mysqlaccess like this:
20
21          shell> mysqlaccess [host_name [user_name [db_name]]] [options]
22
23       mysqlaccess understands the following options:
24
25       ·  --help, -?
26
27          Display a help message and exit.
28
29       ·  --brief, -b
30
31          Generate reports in single-line tabular format.
32
33       ·  --commit
34
35          Copy the new access privileges from the temporary tables to the
36          original grant tables. The grant tables must be flushed for the new
37          privileges to take effect. (For example, execute a mysqladmin reload
38          command.)
39
40       ·  --copy
41
42          Reload the temporary grant tables from original ones.
43
44       ·  --db=db_name, -d db_name
45
46          Specify the database name.
47
48       ·  --debug=N
49
50          Specify the debug level.  N can be an integer from 0 to 3.
51
52       ·  --host=host_name, -h host_name
53
54          The hostname to use in the access privileges.
55
56       ·  --howto
57
58          Display some examples that show how to use mysqlaccess.
59
60       ·  --old_server
61
62          Assume that the server is an old MySQL server (before MySQL 3.21)
63          that does not yet know how to handle full WHERE clauses.
64
65       ·  --password[=password], -p[password]
66
67          The password to use when connecting to the server. If you omit the
68          password value following the --password or -p option on the command
69          line, you are prompted for one.
70
71          Specifying a password on the command line should be considered
72          insecure. See Section 6.6, “Keeping Your Password Secure”.
73
74       ·  --plan
75
76          Display suggestions and ideas for future releases.
77
78       ·  --preview
79
80          Show the privilege differences after making changes to the temporary
81          grant tables.
82
83       ·  --relnotes
84
85          Display the release notes.
86
87       ·  --rhost=host_name, -H host_name
88
89          Connect to the MySQL server on the given host.
90
91       ·  --rollback
92
93          Undo the most recent changes to the temporary grant tables.
94
95       ·  --spassword[=password], -P[password]
96
97          The password to use when connecting to the server as the superuser.
98          If you omit the password value following the --password or -p option
99          on the command line, you are prompted for one.
100
101          Specifying a password on the command line should be considered
102          insecure. See Section 6.6, “Keeping Your Password Secure”.
103
104       ·  --superuser=user_name, -U user_name
105
106          Specify the username for connecting as the superuser.
107
108       ·  --table, -t
109
110          Generate reports in table format.
111
112       ·  --user=user_name, -u user_name
113
114          The username to use in the access privileges.
115
116       ·  --version, -v
117
118          Display version information and exit.
119
120
121       If your MySQL distribution is installed in some non-standard location,
122       you must change the location where mysqlaccess expects to find the
123       mysql client. Edit the mysqlaccess script at approximately line 18.
124       Search for a line that looks like this:
125
126          $MYSQL     = '/usr/local/bin/mysql';    # path to mysql executable
127
128       Change the path to reflect the location where mysql actually is stored
129       on your system. If you do not do this, a Broken pipe error will occur
130       when you run mysqlaccess.
131
133       Copyright 1997-2007 MySQL AB
134
135       This documentation is NOT distributed under a GPL license. Use of this
136       documentation is subject to the following terms: You may create a
137       printed copy of this documentation solely for your own personal use.
138       Conversion to other formats is allowed as long as the actual content is
139       not altered or edited in any way. You shall not publish or distribute
140       this documentation in any form or on any media, except if you
141       distribute the documentation in a manner similar to how MySQL
142       disseminates it (that is, electronically for download on a Web site
143       with the software) or on a CD-ROM or similar medium, provided however
144       that the documentation is disseminated together with the software on
145       the same medium. Any other use, such as any dissemination of printed
146       copies or use of this documentation, in whole or in part, in another
147       publication, requires the prior written consent from an authorized
148       representative of MySQL AB. MySQL AB reserves any and all rights to
149       this documentation not expressly granted above.
150
151       Please email <docs@mysql.com> for more information.
152

SEE ALSO

154       For more information, please refer to the MySQL Reference Manual, which
155       may already be installed locally and which is also available online at
156       http://dev.mysql.com/doc/.
157

AUTHOR

159       MySQL AB (http://www.mysql.com/).  This software comes with no
160       warranty.
161
162
163
164MySQL 5.0                         07/04/2007                    MYSQLACCESS(1)
Impressum