(1) 설치
설치는 성능을 약 10% 정도 끌어올려준다는 static 모드로 설치하겠습니다.
[root@localhost local]# wget http://ftp.superuser.co.kr/pub/mysql/mysql-4.0.20.tar.gz
[root@localhost local]# tar xvfz mysql-4.0.20.tar.gz
[root@localhost local]# cd mysql-4.0.20
[root@localhost mysql-2.0.20]# CFLAGS="-static -O2 -march=i686 -funroll-loops"
CXXFLAGS="-static -O2 -march=i686 -funroll-loops -felide-constructors -fno-exceptions -fno-rtti"
./configure
--prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data
--disable-shared --enable-assembler
--with-thread-safe-client --with-mysqld-user="mysql"
--with-client-ldflags=-all-static
--with-mysqld-ldflags=-all-static
--with-readline --without-debug
--without-docs --without-bench
--with-charset=euc_kr
---------------------------------------------------------------------------------
/usr 폴더에 용량이 많치 않아서.. /var폴더에 디비를 저장할려고합니다..
mysql 설치도중 localstatedir=/usr/local/mysql/data 이부분만 /var/mysql/data로 변경해서 컴파일을 했는데
확인해본결과 /var/mysql/data 가 생성되지않았네요..먼가잘못한거같은데..ㅠㅠ
도와주세요..감사합니다.