You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

179 lines
4.8 KiB

  1. '\" t
  2. .\" Title: \fBmysql_setpermission\fR
  3. .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
  4. .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
  5. .\" Date: 04/06/2010
  6. .\" Manual: MySQL Database System
  7. .\" Source: MySQL 5.1
  8. .\" Language: English
  9. .\"
  10. .TH "\FBMYSQL_SETPERMISSI" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
  11. .\" -----------------------------------------------------------------
  12. .\" * set default formatting
  13. .\" -----------------------------------------------------------------
  14. .\" disable hyphenation
  15. .nh
  16. .\" disable justification (adjust text to left margin only)
  17. .ad l
  18. .\" -----------------------------------------------------------------
  19. .\" * MAIN CONTENT STARTS HERE *
  20. .\" -----------------------------------------------------------------
  21. .\" mysql_setpermission
  22. .SH "NAME"
  23. mysql_setpermission \- interactively set permissions in grant tables
  24. .SH "SYNOPSIS"
  25. .HP \w'\fBmysql_setpermission\ [\fR\fB\fIoptions\fR\fR\fB]\fR\ 'u
  26. \fBmysql_setpermission [\fR\fB\fIoptions\fR\fR\fB]\fR
  27. .SH "DESCRIPTION"
  28. .PP
  29. \fBmysql_setpermission\fR
  30. is a Perl script that was originally written and contributed by Luuk de Boer\&. It interactively sets permissions in the MySQL grant tables\&.
  31. \fBmysql_setpermission\fR
  32. is written in Perl and requires that the
  33. DBI
  34. and
  35. DBD::mysql
  36. Perl modules be installed (see
  37. Section\ \&2.15, \(lqPerl Installation Notes\(rq)\&.
  38. .PP
  39. Invoke
  40. \fBmysql_setpermission\fR
  41. like this:
  42. .sp
  43. .if n \{\
  44. .RS 4
  45. .\}
  46. .nf
  47. shell> \fBmysql_setpermission [\fR\fB\fIoptions\fR\fR\fB]\fR
  48. .fi
  49. .if n \{\
  50. .RE
  51. .\}
  52. .PP
  53. \fIoptions\fR
  54. should be either
  55. \fB\-\-help\fR
  56. 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\&.
  57. .PP
  58. \fBmysql_setpermissions\fR
  59. also reads options from the
  60. [client]
  61. and
  62. [perl]
  63. groups in the
  64. \&.my\&.cnf
  65. file in your home directory, if the file exists\&.
  66. .PP
  67. \fBmysql_setpermission\fR
  68. supports the following options:
  69. .sp
  70. .RS 4
  71. .ie n \{\
  72. \h'-04'\(bu\h'+03'\c
  73. .\}
  74. .el \{\
  75. .sp -1
  76. .IP \(bu 2.3
  77. .\}
  78. .\" mysql_setpermission: help option
  79. .\" help option: mysql_setpermission
  80. \fB\-\-help\fR
  81. .sp
  82. Display a help message and exit\&.
  83. .RE
  84. .sp
  85. .RS 4
  86. .ie n \{\
  87. \h'-04'\(bu\h'+03'\c
  88. .\}
  89. .el \{\
  90. .sp -1
  91. .IP \(bu 2.3
  92. .\}
  93. .\" mysql_setpermission: host option
  94. .\" host option: mysql_setpermission
  95. \fB\-\-host=\fR\fB\fIhost_name\fR\fR
  96. .sp
  97. Connect to the MySQL server on the given host\&.
  98. .RE
  99. .sp
  100. .RS 4
  101. .ie n \{\
  102. \h'-04'\(bu\h'+03'\c
  103. .\}
  104. .el \{\
  105. .sp -1
  106. .IP \(bu 2.3
  107. .\}
  108. .\" mysql_setpermission: password option
  109. .\" password option: mysql_setpermission
  110. \fB\-\-password=\fR\fB\fIpassword\fR\fR
  111. .sp
  112. 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\&.
  113. .sp
  114. Specifying a password on the command line should be considered insecure\&. See
  115. Section\ \&5.3.2.2, \(lqEnd-User Guidelines for Password Security\(rq\&. You can use an option file to avoid giving the password on the command line\&.
  116. .RE
  117. .sp
  118. .RS 4
  119. .ie n \{\
  120. \h'-04'\(bu\h'+03'\c
  121. .\}
  122. .el \{\
  123. .sp -1
  124. .IP \(bu 2.3
  125. .\}
  126. .\" mysql_setpermission: port option
  127. .\" port option: mysql_setpermission
  128. \fB\-\-port=\fR\fB\fIport_num\fR\fR
  129. .sp
  130. The TCP/IP port number to use for the connection\&.
  131. .RE
  132. .sp
  133. .RS 4
  134. .ie n \{\
  135. \h'-04'\(bu\h'+03'\c
  136. .\}
  137. .el \{\
  138. .sp -1
  139. .IP \(bu 2.3
  140. .\}
  141. .\" mysql_setpermission: socket option
  142. .\" socket option: mysql_setpermission
  143. \fB\-\-socket=\fR\fB\fIpath\fR\fR
  144. .sp
  145. For connections to
  146. localhost, the Unix socket file to use\&.
  147. .RE
  148. .sp
  149. .RS 4
  150. .ie n \{\
  151. \h'-04'\(bu\h'+03'\c
  152. .\}
  153. .el \{\
  154. .sp -1
  155. .IP \(bu 2.3
  156. .\}
  157. .\" mysql_setpermission: user option
  158. .\" user option: mysql_setpermission
  159. \fB\-\-user=\fR\fB\fIuser_name\fR\fR
  160. .sp
  161. The MySQL user name to use when connecting to the server\&.
  162. .RE
  163. .SH "COPYRIGHT"
  164. .br
  165. .PP
  166. Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
  167. .PP
  168. This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
  169. .PP
  170. 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.
  171. .PP
  172. 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/.
  173. .sp
  174. .SH "SEE ALSO"
  175. For more information, please refer to the MySQL Reference Manual,
  176. which may already be installed locally and which is also available
  177. online at http://dev.mysql.com/doc/.
  178. .SH AUTHOR
  179. Sun Microsystems, Inc. (http://www.mysql.com/).