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 4.20, “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 understands 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. You can use an option file to avoid giving the
45 password on the command line.
46
47 Specifying a password on the command line should be considered
48 insecure. See Section 6.6, “Keeping Your Password Secure”.
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 MySQL username to use when connecting to the server.
61
63 Copyright 1997-2007 MySQL AB
64
65 This documentation is NOT distributed under a GPL license. Use of this
66 documentation is subject to the following terms: You may create a
67 printed copy of this documentation solely for your own personal use.
68 Conversion to other formats is allowed as long as the actual content is
69 not altered or edited in any way. You shall not publish or distribute
70 this documentation in any form or on any media, except if you
71 distribute the documentation in a manner similar to how MySQL
72 disseminates it (that is, electronically for download on a Web site
73 with the software) or on a CD-ROM or similar medium, provided however
74 that the documentation is disseminated together with the software on
75 the same medium. Any other use, such as any dissemination of printed
76 copies or use of this documentation, in whole or in part, in another
77 publication, requires the prior written consent from an authorized
78 representative of MySQL AB. MySQL AB reserves any and all rights to
79 this documentation not expressly granted above.
80
81 Please email <docs@mysql.com> for more information.
82
84 For more information, please refer to the MySQL Reference Manual, which
85 may already be installed locally and which is also available online at
86 http://dev.mysql.com/doc/.
87
89 MySQL AB (http://www.mysql.com/). This software comes with no
90 warranty.
91
92
93