Solaris
[MYSQL Server 설치] Solaris 10 환경
728x90
1. mysql 설치전 필수 패키지
gcc-3.4.6-sol10-sparc-local.gz
libgcc-3.4.6-sol10-sparc-local.gz
libiconv-1.11-sol10-sparc-local.gz
make-3.81-sol10-sparc-local.gz
zlib-1.2.3-sol10-sparc-local.gz
2. user/group add
# groupadd mysql
# useradd -d /usr/local/mysql -s /bin/false -m -g mysql mysql
3. configure ( charterset 은 utf8 입니다. )
# CC=gcc CFLAGS="-O6 -fomit-frame-pointer -DHAVE_CURSES_H"
CXX=gcc CXXFLAGS="-O6 -fomit-frame-pointer \
-felide-constructors -fno-exceptions -fno-rtti -DHAVE_CURSES_H" \
./configure --prefix=/usr/local/mysql --with-charset=utf8 \
--enable-thread-safe-client --\
enable-large-files --localstatedir=/usr/local/mysql/data \
--with-extra-charsets=all --with-innodb \
--disable-shared --with-mysqld-user=mysql \
--with-unix-socket-path=/usr/local/mysql/data/mysql.sock \
--without-debug --with-client-ldflags=-all-static \
--with-mysqld-ldflags=-all-static
* charterset : utf8
* data path = /usr/local/mysal/data
4 make
# make
5. make install
# make install
6. 환경설정 파일 수정
# cp /usr/local/mysql/share/mysql/my-huge.cnf /etc/my.cnf
# vi /etc/my.cnf
[mysqld]
skip-locking
skip-name-resolve
character-set-client-handshake = FALSE
* 위에 3가지 추가/ 기타 설정은 환경에 맞게 수정
# log-bin=mysql-bin  Replication 사용하지 않을경우 주석처리
# server-id = 1  Replication 사용하지 않을경우 주석처리
7. db 구동/중지를 편리하게
# cp /usr/local/mysql/share/mysql/mysql.server /etc/init.d/mysqld
8. db 생성/ 사용자 추가 : 사용환경에 맞게 등록
9. 데몬 시작 / 종료
# /etc/init.d/mysqld start
# /etc/init.d/mysqld stop
gcc-3.4.6-sol10-sparc-local.gz
libgcc-3.4.6-sol10-sparc-local.gz
libiconv-1.11-sol10-sparc-local.gz
make-3.81-sol10-sparc-local.gz
zlib-1.2.3-sol10-sparc-local.gz
2. user/group add
# groupadd mysql
# useradd -d /usr/local/mysql -s /bin/false -m -g mysql mysql
3. configure ( charterset 은 utf8 입니다. )
# CC=gcc CFLAGS="-O6 -fomit-frame-pointer -DHAVE_CURSES_H"
CXX=gcc CXXFLAGS="-O6 -fomit-frame-pointer \
-felide-constructors -fno-exceptions -fno-rtti -DHAVE_CURSES_H" \
./configure --prefix=/usr/local/mysql --with-charset=utf8 \
--enable-thread-safe-client --\
enable-large-files --localstatedir=/usr/local/mysql/data \
--with-extra-charsets=all --with-innodb \
--disable-shared --with-mysqld-user=mysql \
--with-unix-socket-path=/usr/local/mysql/data/mysql.sock \
--without-debug --with-client-ldflags=-all-static \
--with-mysqld-ldflags=-all-static
* charterset : utf8
* data path = /usr/local/mysal/data
4 make
# make
5. make install
# make install
6. 환경설정 파일 수정
# cp /usr/local/mysql/share/mysql/my-huge.cnf /etc/my.cnf
# vi /etc/my.cnf
[mysqld]
skip-locking
skip-name-resolve
character-set-client-handshake = FALSE
* 위에 3가지 추가/ 기타 설정은 환경에 맞게 수정
# log-bin=mysql-bin  Replication 사용하지 않을경우 주석처리
# server-id = 1  Replication 사용하지 않을경우 주석처리
7. db 구동/중지를 편리하게
# cp /usr/local/mysql/share/mysql/mysql.server /etc/init.d/mysqld
8. db 생성/ 사용자 추가 : 사용환경에 맞게 등록
9. 데몬 시작 / 종료
# /etc/init.d/mysqld start
# /etc/init.d/mysqld stop
728x90
댓글