1MYSQLACCESS(1)              MariaDB 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 written by Yves Carlier. It checks the
13       access privileges for a host name, user name, and database combination.
14       Note that mysqlaccess checks access using only the user, db, and host
15       tables. It does not check table, column, or routine privileges
16       specified in the tables_priv, columns_priv, or procs_priv tables.
17
18       Invoke mysqlaccess like this:
19
20           shell> mysqlaccess [host_name [user_name [db_name]]] [options]
21
22       mysqlaccess supports the following options.
23
24       ·   --help, -?
25
26           Display a help message and exit.
27
28       ·   --brief, -b
29
30           Generate reports in single-line tabular format.
31
32       ·   --commit
33
34           Copy the new access privileges from the temporary tables to the
35           original grant tables. The grant tables must be flushed for the new
36           privileges to take effect. (For example, execute a mysqladmin
37           reload command.)
38
39       ·   --copy
40
41           Reload the temporary grant tables from original ones.
42
43       ·   --db=db_name, -d db_name
44
45           Specify the database name.
46
47       ·   --debug=N
48
49           Specify the debug level.  N can be an integer from 0 to 3.
50
51       ·   --host=host_name, -h host_name
52
53           The host name to use in the access privileges.
54
55       ·   --howto
56
57           Display some examples that show how to use mysqlaccess.
58
59       ·   --old_server
60
61           Connect to a very old MySQL server (before MySQL 3.21) that does
62           not know how to handle full WHERE clauses.
63
64       ·   --password[=password], -p[password]
65
66           The password to use when connecting to the server. If you omit the
67           password value following the --password or -p option on the command
68           line, mysqlaccess prompts for one.
69
70           Specifying a password on the command line should be considered
71           insecure. See Section 5.3.2.2, “End-User Guidelines for Password
72           Security”.
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
81           temporary grant tables.
82
83       ·   --relnotes
84
85           Display the release notes.
86
87       ·   --rhost=host_name, -H host_name
88
89           Connect to the MariaDB 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 --spassword or -p
99           option on the command line, mysqlaccess prompts for one.
100
101           Specifying a password on the command line should be considered
102           insecure. See Section 5.3.2.2, “End-User Guidelines for Password
103           Security”.
104
105       ·   --superuser=user_name, -U user_name
106
107           Specify the user name for connecting as the superuser.
108
109       ·   --table, -t
110
111           Generate reports in table format.
112
113       ·   --user=user_name, -u user_name
114
115           The user name to use in the access privileges.
116
117       ·   --version, -v
118
119           Display version information and exit.
120
121       If your MariaDB distribution is installed in some non-standard
122       location, you must change the location where mysqlaccess expects to
123       find the mysql client. Edit the mysqlaccess script at approximately
124       line 18. 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 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.,
134       2010-2015 MariaDB Foundation
135
136       This documentation is free software; you can redistribute it and/or
137       modify it only under the terms of the GNU General Public License as
138       published by the Free Software Foundation; version 2 of the License.
139
140       This documentation is distributed in the hope that it will be useful,
141       but WITHOUT ANY WARRANTY; without even the implied warranty of
142       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
143       General Public License for more details.
144
145       You should have received a copy of the GNU General Public License along
146       with the program; if not, write to the Free Software Foundation, Inc.,
147       51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA or see
148       http://www.gnu.org/licenses/.
149
150

SEE ALSO

152       For more information, please refer to the MariaDB Knowledge Base,
153       available online at https://mariadb.com/kb/
154

AUTHOR

156       MariaDB Foundation (http://www.mariadb.org/).
157
158
159
160MariaDB 10.4                     28 March 2019                  MYSQLACCESS(1)
Impressum