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