1MARIADB-SETPERMISSI(1) MariaDB Database System MARIADB-SETPERMISSI(1)
2
3
4
6 mariadb-setpermission - interactively set permissions in grant tables
7 (mysql_setpermission is now a symlink to mariadb-setpermission)
8
10 mysql_setpermission [options]
11
13 mysql_setpermission is a Perl script that was originally written and
14 contributed by Luuk de Boer. It interactively sets permissions in the
15 MariaDB grant tables. mysql_setpermission is written in Perl and
16 requires that the DBI and DBD::MariaDB Perl modules be installed.
17
18 Invoke mysql_setpermission like this:
19
20 shell> mysql_setpermission [options]
21
22 options should be either --help to display the help message, or options
23 that indicate how to connect to the MariaDB server. The account used
24 when you connect determines which permissions you have when attempting
25 to modify existing permissions in the grant tables.
26
27 mysql_setpermission also reads options from the [client] and [perl]
28 groups in the .my.cnf file in your home directory, if the file exists.
29
30 mysql_setpermission supports the following options:
31
32 • --help
33
34 Display a help message and exit.
35
36 • --host=host_name
37
38 Connect to the MariaDB server on the given host.
39
40 • --password=password
41
42 The password to use when connecting to the server. Note that the
43 password value is not optional for this option, unlike for other
44 MariaDB programs.
45
46 Specifying a password on the command line should be considered
47 insecure. You can use an option file to avoid giving the password
48 on the command line.
49
50 • --port=port_num
51
52 The TCP/IP port number to use for the connection.
53
54 • --socket=path
55
56 For connections to localhost, the Unix socket file to use.
57
58 • --user=user_name
59
60 The MariaDB user name to use when connecting to the server.
61
63 Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.,
64 2010-2019 MariaDB Foundation
65
66 This documentation is free software; you can redistribute it and/or
67 modify it only under the terms of the GNU General Public License as
68 published by the Free Software Foundation; version 2 of the License.
69
70 This documentation is distributed in the hope that it will be useful,
71 but WITHOUT ANY WARRANTY; without even the implied warranty of
72 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
73 General Public License for more details.
74
75 You should have received a copy of the GNU General Public License along
76 with the program; if not, write to the Free Software Foundation, Inc.,
77 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA or see
78 http://www.gnu.org/licenses/.
79
80
82 For more information, please refer to the MariaDB Knowledge Base,
83 available online at https://mariadb.com/kb/
84
86 MariaDB Foundation (http://www.mariadb.org/).
87
88
89
90MariaDB 10.5 27 June 2019 MARIADB-SETPERMISSI(1)