0
|
1 |
'\" t
|
|
2 |
.\"
|
|
3 |
.\" CDDL HEADER START
|
|
4 |
.\"
|
|
5 |
.\" The contents of this file are subject to the terms of the
|
|
6 |
.\" Common Development and Distribution License (the "License").
|
|
7 |
.\" You may not use this file except in compliance with the License.
|
|
8 |
.\"
|
|
9 |
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
|
10 |
.\" or http://www.opensolaris.org/os/licensing.
|
|
11 |
.\" See the License for the specific language governing permissions
|
|
12 |
.\" and limitations under the License.
|
|
13 |
.\"
|
|
14 |
.\" When distributing Covered Code, include this CDDL HEADER in each
|
|
15 |
.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
|
16 |
.\" If applicable, add the following below this CDDL HEADER, with the
|
|
17 |
.\" fields enclosed by brackets "[]" replaced with your own identifying
|
|
18 |
.\" information: Portions Copyright [yyyy] [name of copyright owner]
|
|
19 |
.\"
|
|
20 |
.\" CDDL HEADER END
|
|
21 |
.\"
|
11
|
22 |
.\" Copyright 2010 Sun Microsystems, Inc. All rights reserved.
|
0
|
23 |
.\" Use is subject to license terms.
|
|
24 |
.\"
|
11
|
25 |
.\"ident "@(#)mysql.1.sunman 1.6 10/03/16 SMI"
|
0
|
26 |
.\"
|
|
27 |
.TH "mysql_50" "1" "" "" "User Commands"
|
|
28 |
.SH NAME
|
|
29 |
MySQL 5.0 \- MySQL RDBMS version 5.0 for Solaris
|
|
30 |
.SH DESCRIPTION
|
|
31 |
|
|
32 |
MySQL version 5.0 for Solaris is delivered as part of Entire Distribution
|
|
33 |
Software Group (SUNWCall), in the following 3 packages:
|
|
34 |
|
|
35 |
.TS
|
|
36 |
box;
|
|
37 |
cbp-1 | cbp-1
|
|
38 |
| | | .
|
|
39 |
Package Contents
|
|
40 |
=
|
11
|
41 |
database/mysql-50 MySQL 5.0 Server package
|
0
|
42 |
=
|
11
|
43 |
database/mysql-50/tests MySQL 5.0 test package
|
0
|
44 |
|
|
45 |
.TE
|
|
46 |
.PP
|
|
47 |
|
|
48 |
The MySQL 5.0 software for Solaris is installed into a number of
|
|
49 |
sub-directories of /usr/mysql/5.0. Symbolic links are created from all directories under /usr/mysql/5.0 to /usr/mysql directories. This enables the latest version of MySQL to be accessed from /usr/mysql.
|
|
50 |
|
11
|
51 |
The database/mysql-50 package installs the following directories:
|
0
|
52 |
|
|
53 |
.TS
|
|
54 |
box;
|
|
55 |
cbp-1 | cbp-1
|
|
56 |
| | | .
|
|
57 |
Directory Contents
|
|
58 |
=
|
|
59 |
/usr/mysql/5.0/bin Binaries and Scripts
|
|
60 |
=
|
|
61 |
/usr/mysql/5.0/lib Libraries for client API
|
|
62 |
=
|
|
63 |
/usr/mysql/5.0/include Development header files
|
|
64 |
=
|
|
65 |
/usr/mysql/5.0/lib Shared libraries
|
|
66 |
=
|
|
67 |
/usr/mysql/5.0/man/man1 Manual pages for client programs
|
|
68 |
=
|
|
69 |
/usr/mysql/5.0/man/man8 Manual pages for server programs
|
|
70 |
=
|
|
71 |
/usr/mysql/5.0/share Shared data:locale,timezone
|
|
72 |
=
|
|
73 |
/usr/mysql/5.0/docs HTML documentation
|
|
74 |
|
|
75 |
.TE
|
|
76 |
.PP
|
|
77 |
|
11
|
78 |
The database/mysql-50 package also installs the following 64-bit directories
|
0
|
79 |
.TP
|
|
80 |
.ie t \(bu
|
|
81 |
.el o
|
|
82 |
\fB/usr/mysql/5.0/bin/64\fR - 64-bit
|
|
83 |
Binaries and scripts
|
|
84 |
.TP
|
|
85 |
.ie t \(bu
|
|
86 |
.el o
|
|
87 |
\fB/usr/mysql/5.0/lib/64\fR - 64-bit
|
|
88 |
libraries for client API and shared libraries
|
|
89 |
.RE
|
|
90 |
.sp
|
|
91 |
.LP
|
|
92 |
|
|
93 |
|
|
94 |
|
11
|
95 |
The following directories are additionally created by database/mysql-50 package
|
0
|
96 |
|
|
97 |
.TS
|
|
98 |
box;
|
|
99 |
cbp-1 | cbp-1
|
|
100 |
| | | .
|
|
101 |
Directory Contents
|
|
102 |
=
|
|
103 |
/var/mysql/5.0/data Default database data directory
|
|
104 |
=
|
|
105 |
/etc/mysql/5.0 Configuration file location
|
|
106 |
|
|
107 |
.TE
|
|
108 |
.PP
|
|
109 |
|
11
|
110 |
The database/mysql-50 package also installs the following SMF files to facilitate automatic service management
|
0
|
111 |
(refer to smf(5) and the SMF section below):
|
|
112 |
.RS
|
|
113 |
.PP
|
|
114 |
.br
|
|
115 |
/var/svc/manifest/application/database/mysql.xml
|
|
116 |
./br
|
|
117 |
/lib/svc/method/mysql
|
|
118 |
.RE
|
|
119 |
.PP
|
|
120 |
|
11
|
121 |
The database/mysql-50/tests package creates the following directories:
|
0
|
122 |
.TS
|
|
123 |
box;
|
|
124 |
cbp-1 | cbp-1
|
|
125 |
| | | .
|
|
126 |
Directory Contents
|
|
127 |
=
|
|
128 |
/usr/mysql/5.0/mysql-test MySQL test programs
|
|
129 |
=
|
|
130 |
/usr/mysql/5.0/sql-bench SQL Benchmark test
|
|
131 |
|
|
132 |
.TE
|
|
133 |
.PP
|
|
134 |
.SH AUTOMATIC SERVICE MANAGEMENT (SMF)
|
|
135 |
MySQL 5.0 for Solaris includes files necessary to register with the
|
|
136 |
service management facility described in smf(5).
|
|
137 |
|
11
|
138 |
After installation of the database/mysql-50 package, register the MySQL service as under:
|
0
|
139 |
|
|
140 |
.br
|
|
141 |
example%svccfg import
|
|
142 |
/var/svc/manifest/application/database/mysql.xml
|
|
143 |
|
|
144 |
The mysql:version_50 service is disabled by default. You can check the status of the service by issuing the following command :
|
|
145 |
|
|
146 |
.br
|
|
147 |
example% svcs mysql
|
|
148 |
.br
|
|
149 |
STATE STIME FMRI
|
|
150 |
.br
|
|
151 |
disabled 14:27:09 svc:/application/database/mysql:version_50
|
|
152 |
|
|
153 |
|
|
154 |
Enable the mysql:version_50 service by issuing the following command :
|
|
155 |
|
|
156 |
.br
|
|
157 |
example%svcadm enable mysql:version_50
|
|
158 |
|
|
159 |
The state of the service instance should change to "online", and the database server should be started :
|
|
160 |
|
|
161 |
.br
|
|
162 |
example% svcs mysql
|
|
163 |
.br
|
|
164 |
STATE STIME FMRI
|
|
165 |
.br
|
|
166 |
online 14:30:08 svc:/application/database/mysql:version_50
|
|
167 |
|
|
168 |
.br
|
|
169 |
|
|
170 |
The 32-bit MySQL daemon runs by default. To start the 64-bit
|
|
171 |
server, execute the following commands:
|
|
172 |
.sp
|
|
173 |
.LP
|
|
174 |
\fB%svccfg\fR
|
|
175 |
.sp
|
|
176 |
.LP
|
|
177 |
\fBsvc>select mysql:version_50\fR
|
|
178 |
.sp
|
|
179 |
.LP
|
|
180 |
\fBsvc:/application/database/mysql:version_50>listprop mysql/enable_64bit\fR
|
|
181 |
.sp
|
|
182 |
.LP
|
|
183 |
\fBmysql/enable_64bit boolean false\fR
|
|
184 |
.sp
|
|
185 |
.LP
|
|
186 |
\fBsvc:/application/database/mysql:version_50>setprop mysql/enable_64bit=true\fR
|
|
187 |
.sp
|
|
188 |
.LP
|
|
189 |
\fBsvc:/application/database/mysql:version_50>listprop mysql/enable_64bit\fR
|
|
190 |
.sp
|
|
191 |
.LP
|
|
192 |
\fBmysql/enable_64bit boolean true\fR
|
|
193 |
.sp
|
|
194 |
.LP
|
|
195 |
\fBsvc:/application/database/mysql:version_50>quit\fR
|
|
196 |
.sp
|
|
197 |
.LP
|
|
198 |
\fB%svcadm refresh mysql:version_50\fR
|
|
199 |
.sp
|
|
200 |
.LP
|
|
201 |
\fB%svcadm enable mysql:version_50\fR
|
|
202 |
.sp
|
|
203 |
.LP
|
|
204 |
The 64-bit server is initiated.
|
|
205 |
.sp
|
|
206 |
|
|
207 |
.sp
|
|
208 |
.TS
|
|
209 |
tab(^G);
|
|
210 |
lw(.95i) lw(.79i) lw(3.76i)
|
|
211 |
lw(.95i) lw(.79i) lw(3.76i)
|
|
212 |
.
|
|
213 |
STATE STIME FMRI
|
|
214 |
.br
|
|
215 |
online 15:00:08 svc:/application/database/mysql:version_50
|
|
216 |
|
|
217 |
.br
|
|
218 |
|
|
219 |
|
|
220 |
.TE
|
|
221 |
|
|
222 |
.LP
|
|
223 |
Note -
|
|
224 |
.sp
|
|
225 |
.RS 2
|
|
226 |
By default, the \fBmysql/enable_64bit\fR property
|
|
227 |
is set to \fBFalse\fR. Set it \fBTrue\fR to start
|
|
228 |
the 64-bit server.
|
|
229 |
.RE
|
|
230 |
.sp
|
|
231 |
.LP
|
|
232 |
To shutdown the database instance and prevent automatic restart (for example
|
|
233 |
during scheduled downtime for maintenance), disable the SMF service by running:
|
|
234 |
|
|
235 |
example% svcadm disable mysql:version_50
|
|
236 |
.br
|
|
237 |
example% svcs mysql
|
|
238 |
.br
|
|
239 |
STATE STIME FMRI
|
|
240 |
.br
|
|
241 |
disabled 14:30:08 svc:/application/database/mysql:version_50
|
|
242 |
|
|
243 |
.br
|
|
244 |
|
|
245 |
.RE
|
|
246 |
|
|
247 |
.SH "ATTRIBUTES"
|
|
248 |
See attributes(5) for descriptions of the following attributes:
|
|
249 |
|
|
250 |
.TS
|
|
251 |
box;
|
|
252 |
cbp-1 | cbp-1
|
|
253 |
| | | .
|
|
254 |
ATTRIBUTE TYPE ATTRIBUTE VALUE
|
|
255 |
=
|
11
|
256 |
Availability database/mysql-50, database/mysql-50/tests
|
0
|
257 |
=
|
|
258 |
Interface Stability Uncommitted.
|
|
259 |
.TE
|
|
260 |
.PP
|
|
261 |
.SH SEE ALSO
|
|
262 |
.PP
|
|
263 |
smf(5), svcs(1), svcprop(1), svccfg(1),
|
|
264 |
svcadm(1), mysql(1)
|
|
265 |
|
|
266 |
.SH "NOTES"
|
|
267 |
.PP
|
|
268 |
Source for MySQL 5.0 is available on http://opensolaris.org
|
|
269 |
|
|
270 |
.SH REFERENCES
|
|
271 |
.PP
|
|
272 |
http://www.mysql.com
|