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 5.3.2.2, “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 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
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-1301 USA or see
78 http://www.gnu.org/licenses/.
79
80
82 For more information, please refer to the MySQL Reference Manual, which
83 may already be installed locally and which is also available online at
84 http://dev.mysql.com/doc/.
85
87 Sun Microsystems, Inc. (http://www.mysql.com/).
88
89
90
91MySQL 5.1 04/06/2010 MYSQL_SETPERMISSI(1)