1MARIADB-ACCESS(1)           MariaDB Database System          MARIADB-ACCESS(1)
2
3
4

NAME

6       mariadb-access - client for checking access privileges (mysqlaccess is
7       now a symlink to mariadb-access)
8

SYNOPSIS

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

DESCRIPTION

13       mysqlaccess is a diagnostic tool written by Yves Carlier. It checks the
14       access privileges for a host name, user name, and database combination.
15       Note that mysqlaccess checks access using only the user, db, and host
16       tables. It does not check table, column, or routine privileges
17       specified in the tables_priv, 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           Connect to a very old MySQL server (before MySQL 3.21) that does
63           not 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 5.3.2.2, “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 MariaDB 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 5.3.2.2, “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 MariaDB distribution is installed in some non-standard
123       location, you must change the location where mysqlaccess expects to
124       find the mysql client. Edit the mysqlaccess script at approximately
125       line 18. 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 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.,
135       2010-2019 MariaDB Foundation
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-1335 USA or see
149       http://www.gnu.org/licenses/.
150
151

SEE ALSO

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

AUTHOR

157       MariaDB Foundation (http://www.mariadb.org/).
158
159
160
161MariaDB 10.5                     27 June 2019                MARIADB-ACCESS(1)
Impressum