1MYSQL_SETPERMISSI(1) MySQL 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 MySQL grant tables. mysql_setpermission is written in Perl and
15 requires that the DBI and DBD::mysql Perl modules be installed (see
16 Section 2.15, “Perl Installation Notes”).
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 MySQL server. The account used when
24 you connect determines which permissions you have when attempting to
25 modify existing permissions in the grant tables.
26
27 mysql_setpermissions 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 MySQL 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 MySQL programs.
45
46 Specifying a password on the command line should be considered
47 insecure. See Section 6.1.2.1, “End-User Guidelines for Password
48 Security”. You can use an option file to avoid giving the password
49 on the command line.
50
51 · --port=port_num
52
53 The TCP/IP port number to use for the connection.
54
55 · --socket=path
56
57 For connections to localhost, the Unix socket file to use.
58
59 · --user=user_name
60
61 The MySQL user name to use when connecting to the server.
62
64 Copyright © 1997, 2013, Oracle and/or its affiliates. All rights
65 reserved.
66
67 This documentation is free software; you can redistribute it and/or
68 modify it only under the terms of the GNU General Public License as
69 published by the Free Software Foundation; version 2 of the License.
70
71 This documentation is distributed in the hope that it will be useful,
72 but WITHOUT ANY WARRANTY; without even the implied warranty of
73 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
74 General Public License for more details.
75
76 You should have received a copy of the GNU General Public License along
77 with the program; if not, write to the Free Software Foundation, Inc.,
78 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see
79 http://www.gnu.org/licenses/.
80
81
83 For more information, please refer to the MySQL Reference Manual, which
84 may already be installed locally and which is also available online at
85 http://dev.mysql.com/doc/.
86
88 Oracle Corporation (http://dev.mysql.com/).
89
90
91
92MySQL 5.1 11/04/2013 MYSQL_SETPERMISSI(1)