~ubuntu-branches/ubuntu/karmic/mysql-dfsg-5.1/karmic

1 by Chuck Short
Import upstream version 5.1.30
1
.\"     Title: \fBmysql_setpermission\fR
2
.\"    Author: 
3
.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
1.1.1 by Mathias Gug
Import upstream version 5.1.31
4
.\"      Date: 01/19/2009
1 by Chuck Short
Import upstream version 5.1.30
5
.\"    Manual: MySQL Database System
6
.\"    Source: MySQL 5.1
7
.\"
1.1.1 by Mathias Gug
Import upstream version 5.1.31
8
.TH "\fBMYSQL_SETPERMISSI" "1" "01/19/2009" "MySQL 5.1" "MySQL Database System"
1 by Chuck Short
Import upstream version 5.1.30
9
.\" disable hyphenation
10
.nh
11
.\" disable justification (adjust text to left margin only)
12
.ad l
13
.SH "NAME"
14
mysql_setpermission \- interactively set permissions in grant tables
15
.SH "SYNOPSIS"
16
.HP 30
17
\fBmysql_setpermission [\fR\fB\fIoptions\fR\fR\fB]\fR
18
.SH "DESCRIPTION"
19
.PP
20
\fBmysql_setpermission\fR
21
is a Perl script that was originally written and contributed by Luuk de Boer. It interactively sets permissions in the MySQL grant tables.
22
\fBmysql_setpermission\fR
23
is written in Perl and requires that the
24
DBI
25
and
26
DBD::mysql
27
Perl modules be installed (see
1.1.1 by Mathias Gug
Import upstream version 5.1.31
28
Section\ 16, \(lqPerl Installation Notes\(rq).
1 by Chuck Short
Import upstream version 5.1.30
29
.PP
30
Invoke
31
\fBmysql_setpermission\fR
32
like this:
33
.sp
34
.RS 3n
35
.nf
36
shell> \fBmysql_setpermission [\fR\fB\fIoptions\fR\fR\fB]\fR
37
.fi
38
.RE
39
.PP
40
\fIoptions\fR
41
should be either
42
\fB\-\-help\fR
43
to display the help message, or options that indicate how to connect to the MySQL server. The account used when you connect determines which permissions you have when attempting to modify existing permissions in the grant tables.
44
.PP
45
\fBmysql_setpermissions\fR
46
also reads options from the
47
[client]
48
and
49
[perl]
50
groups in the
51
\fI.my.cnf\fR
52
file in your home directory, if the file exists.
53
.PP
54
\fBmysql_setpermission\fR
55
understands the following options:
56
.TP 3n
57
\(bu
58
\fB\-\-help\fR
59
.sp
60
Display a help message and exit.
61
.TP 3n
62
\(bu
63
\fB\-\-host=\fR\fB\fIhost_name\fR\fR
64
.sp
65
Connect to the MySQL server on the given host.
66
.TP 3n
67
\(bu
68
\fB\-\-password=\fR\fB\fIpassword\fR\fR
69
.sp
70
The password to use when connecting to the server. Note that the password value is not optional for this option, unlike for other MySQL programs. You can use an option file to avoid giving the password on the command line.
71
.sp
72
Specifying a password on the command line should be considered insecure. See
73
Section\ 5.6, \(lqKeeping Passwords Secure\(rq.
74
.TP 3n
75
\(bu
76
\fB\-\-port=\fR\fB\fIport_num\fR\fR
77
.sp
78
The TCP/IP port number to use for the connection.
79
.TP 3n
80
\(bu
81
\fB\-\-socket=\fR\fB\fIpath\fR\fR
82
.sp
83
For connections to
84
localhost, the Unix socket file to use.
85
.TP 3n
86
\(bu
87
\fB\-\-user=\fR\fB\fIuser_name\fR\fR
88
.sp
1.1.1 by Mathias Gug
Import upstream version 5.1.31
89
The MySQL user name to use when connecting to the server.
1 by Chuck Short
Import upstream version 5.1.30
90
.SH "COPYRIGHT"
91
.PP
92
Copyright 2007\-2008 MySQL AB, 2008 Sun Microsystems, Inc.
93
.PP
94
This documentation is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
95
.PP
96
This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
97
.PP
98
You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110\-1301 USA or see http://www.gnu.org/licenses/.
99
.SH "SEE ALSO"
100
For more information, please refer to the MySQL Reference Manual,
101
which may already be installed locally and which is also available
102
online at http://dev.mysql.com/doc/.
103
.SH AUTHOR
104
MySQL AB (http://www.mysql.com/).