1. http://www.mysql.org 에서 최신 소스 다운
2. 압축 풀고 설정
#./configure --prefix=/usr/local/mysql --with-charset=euckr
#./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --disable-shared --enable-assembler --with-thread-safe-client --with-mysqld-user="root" --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --with-readline --without-debug --without-docs --without-bench --with-charset=utf8
3. make
4. make install
5. cd /usr/local/mysql
6. ./bin/mysql_install_db
7. ./bin/safe_mysqld --language=korean &
8. /usr/local/mysql/bin/mysqladmin -u root password '1234'
9. ./bin/mysql -p1234 mysql
status등 여러 명령어를 사용하여 테스트 해봄
2. 압축 풀고 설정
#./configure --prefix=/usr/local/mysql --with-charset=euckr
#./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --disable-shared --enable-assembler --with-thread-safe-client --with-mysqld-user="root" --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --with-readline --without-debug --without-docs --without-bench --with-charset=utf8
3. make
4. make install
5. cd /usr/local/mysql
6. ./bin/mysql_install_db
7. ./bin/safe_mysqld --language=korean &
/usr/local/mysql/libexec/mysqld: File './mysql-bin.index' not found (Errcode: 13)
소유권으로 인한 에러
만약 mysql 이라는 유저와 그룹을 정해서 mysql을 구동한다면
groupadd mysql
useradd -g mysql mysql
chown -R root /usr/local/mysql
chown -R mysql /usr/local/mysql/var
chgrp -R mysql /usr/local/mysql
8. /usr/local/mysql/bin/mysqladmin -u root password '1234'
9. ./bin/mysql -p1234 mysql
status등 여러 명령어를 사용하여 테스트 해봄
반응형
'Database' 카테고리의 다른 글
Mysql에서 TPC-C 벤치마크 수행 (1) | 2008.06.23 |
---|---|
[dbt2] mysql : tpc-c benchmark (0) | 2007.12.03 |