1MYSQLACCESS(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 host name,
14       user name, and database combination. Note that mysqlaccess checks
15       access using only the user, db, and host tables. It does not check
16       table, 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 supports 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
38           reload 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 host name 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, mysqlaccess prompts for one.
70
71           Specifying a password on the command line should be considered
72           insecure. See Section 6.1.2.1, “End-User Guidelines for Password
73           Security”.
74
75       ·   --plan
76
77           Display suggestions and ideas for future releases.
78
79       ·   --preview
80
81           Show the privilege differences after making changes to the
82           temporary grant tables.
83
84       ·   --relnotes
85
86           Display the release notes.
87
88       ·   --rhost=host_name, -H host_name
89
90           Connect to the MySQL server on the given host.
91
92       ·   --rollback
93
94           Undo the most recent changes to the temporary grant tables.
95
96       ·   --spassword[=password], -P[password]
97
98           The password to use when connecting to the server as the superuser.
99           If you omit the password value following the --spassword or -p
100           option on the command line, mysqlaccess prompts for one.
101
102           Specifying a password on the command line should be considered
103           insecure. See Section 6.1.2.1, “End-User Guidelines for Password
104           Security”.
105
106       ·   --superuser=user_name, -U user_name
107
108           Specify the user name for connecting as the superuser.
109
110       ·   --table, -t
111
112           Generate reports in table format.
113
114       ·   --user=user_name, -u user_name
115
116           The user name to use in the access privileges.
117
118       ·   --version, -v
119
120           Display version information and exit.
121
122       If your MySQL distribution is installed in some nonstandard location,
123       you must change the location where mysqlaccess expects to find the
124       mysql client. Edit the mysqlaccess script at approximately line 18.
125       Search for a line that looks like this:
126
127           $MYSQL     = '/usr/local/bin/mysql';    # path to mysql executable
128
129       Change the path to reflect the location where mysql actually is stored
130       on your system. If you do not do this, a Broken pipe error will occur
131       when you run mysqlaccess.
132
134       Copyright © 1997, 2013, Oracle and/or its affiliates. All rights
135       reserved.
136
137       This documentation is free software; you can redistribute it and/or
138       modify it only under the terms of the GNU General Public License as
139       published by the Free Software Foundation; version 2 of the License.
140
141       This documentation is distributed in the hope that it will be useful,
142       but WITHOUT ANY WARRANTY; without even the implied warranty of
143       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
144       General Public License for more details.
145
146       You should have received a copy of the GNU General Public License along
147       with the program; if not, write to the Free Software Foundation, Inc.,
148       51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see
149       http://www.gnu.org/licenses/.
150
151

SEE ALSO

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

AUTHOR

158       Oracle Corporation (http://dev.mysql.com/).
159
160
161
162MySQL 5.1                         11/04/2013                    MYSQLACCESS(1)
Impressum