|
shell> groupadd mysql( m, K& T) _+ D$ P2 k: n
shell> useradd -g mysql mysql
2 u% L$ k2 O( q& ]! F v# Source-build specific instructions
$ O% G; c4 g( P( p, J0 N y/ Pshell> gunzip < mysql-VERSION.tar.gz | tar -xvf -
: a. J P0 I4 q! J4 ]( D# ]shell> cd mysql-VERSION
( f9 q& a. B1 O: N2 l% J) B+ dshell> ./configure --prefix=/usr/local/mysql) K" e3 ~# F, _! L& ?
shell> make0 p. j ?" z- ` K1 E* r- ]9 W) {: [
shell> make install
; m* b8 p/ I# _% V6 {- x, {, g2 G# End of Source-build specific instructions, x" t \$ |7 C( f6 M. n' {
shell> cd /usr/local/mysql# u+ Q$ m- Y5 D3 F% L
shell> chown -R mysql .1 _# ?, S4 y6 `; E
shell> chgrp -R mysql .
9 P2 M$ h0 R' vshell> bin/mysql_install_db --user=mysql
, a* Z% f2 A7 q, Eshell> chown -R root .
$ d1 w1 j0 r; bshell> chown -R mysql var
4 n ~, _5 ^" ]) t: e' kshell> cp support-files/my-medium.cnf /etc/my.cnf #optional' n) }* g1 R: k3 U+ U5 B% Q6 h* M
shell> bin/mysqld_safe --user=mysql &4 {# z- d( D7 }, F u; i/ P9 f6 d
shell> cp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysq2 x3 G2 G# M, J
l.server # Optional |
|