Skip to content

2010.05.03 01:10

mySQL 설치

조회 수 12903 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

make 중 libmysql 에러 나는 경우

#rpm -Uvh libstdc++-devel-3.2.2-5.i386.rpm

#rpm -Uvh gcc-c++-3.2.2-5.i386.rpm

두개의 컴파일러 설치

 

mysql-4.0.26.tar.gz 다운

#tar xvzf mysql-4.0.26.tar.gz -C /usr/local/src (폴더에 압축 해제)

#groupadd mysql

#useradd -g mysql mysql

 

#cd /usr/local

#mkdir mysql

#cd mysql

#mkdir data

 

#cd /usr/local/src/mysql-4.0.26

# ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --with-charset=euc_kr

#make

#make install

#scripts/mysql_install_db (사용을 위한 기초 DB 생성)

# chown -R mysql:mysql /usr/local/mysql/data (데이터 폴더 권한을 mysql로 변경)

# cp support-files/my-medium.cnf /etc/my.cn (환경 설정 파일을 /etc/my.cnf 로 복사)

 

mysql 의 데몬스크립트인 mysql.server 파일에 mysql_safe가 실행되는 라인에 language 옵션을 추가해 준다.

# vi /usr/local/mysql/share/mysql/mysql.server

$bindir/mysqld_safe --datadir=$datadir --pid-file=$server_pid_file >/dev/null 2>&1 &

=>$bindir/mysqld_safe --datadir=$datadir --language=korean --pid-file=$server_pid_file >/dev/null 2>&1 &

 

mysql 경로 추가

# vi /root/.bash_profile

PATH=$PATH:$HOME/bin:/usr/local/mysql/bin

 

 

부팅시 자동 실행이 되도록 만들어 준다

# cp -p /usr/local/mysql/share/mysql/mysql.server /etc/rc.d/init.d/mysqld

# ln -s /etc/rc.d/init.d/mysqld /etc/rc.d/rc3.d/S90mysqld

# ln -s /etc/rc.d/init.d/mysqld /etc/rc.d/rc5.d/S90mysqld

 

mysql을 구동

# /etc/rc.d/init.d/mysqld start

 

구동 확인

# ps -ef|grep mysqld

root     29017     1  0 12:54 pts/1    00:00:00 /bin/sh /usr/local/mysql/bin/mysqld_safe --datadir=/usr/local/mysql/data --language=korean --pid-file=/usr/local/mysql/data/서버명.pid

mysql    29047 29017  0 12:54 pts/1    00:00:00 /usr/local/mysql/libexec/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --user=mysql --pid-file=/usr/local/mysql/data/서버명.pid --skip-locking --port=3306 --socket=/tmp/mysql.sock --language=korean

root     29067 11175  0 12:55 pts/1    00:00:00 grep mysqld

 

초기 구동후 패스워드를 설정해 준다.

# ./mysqladmin -u root password 원하는패스워드

mysql로 들어가기

# ./mysql -u root -p

TAG •

  1. MySQL 4.1 이상에서 한글 사용

    Date2009.09.28 ByADMINPLAY Views7291
    Read More
  2. mysql 초간단 설치

    Date2009.10.15 ByADMINPLAY Views6707
    Read More
  3. mysqli 동적모듈 추가

    Date2009.11.01 ByADMINPLAY Views9403
    Read More
  4. Mysql 5.0.67 Cluster 소스설치 구성하기

    Date2009.11.19 ByADMINPLAY Views9895
    Read More
  5. HeartBeat를 이용한 MySQL HA 구성

    Date2009.11.19 ByADMINPLAY Views10348
    Read More
  6. MySQL 클러스터

    Date2009.11.19 ByADMINPLAY Views9979
    Read More
  7. Mysql Replication(Master, Slave) 설정

    Date2009.11.19 ByADMINPLAY Views9732
    Read More
  8. MySQL Replication

    Date2009.11.19 ByADMINPLAY Views8090
    Read More
  9. MySQL Replication(복제)

    Date2009.11.19 ByADMINPLAY Views7792
    Read More
  10. 리눅스를 이용한 클러스터링 구축법

    Date2009.11.19 ByADMINPLAY Views10754
    Read More
  11. Mysql bin log 로테이션 방법

    Date2009.11.26 ByADMINPLAY Views9558
    Read More
  12. MySQL 데이터 정리후에도 용량변동이 없을 경우

    Date2009.12.31 ByADMINPLAY Views8661
    Read More
  13. Starting MySQL.Manager of pid-file quit without updating fi[실패]

    Date2010.01.28 ByADMINPLAY Views19866
    Read More
  14. Redmine database를 복구 하고자 할 때

    Date2010.03.06 Byl2zeo Views15597
    Read More
  15. MySQL Error 2006 : MySQL server has gone away 해결하기

    Date2010.03.08 Byl2zeo Views12599
    Read More
  16. PHP5와 MySQL5 연동시 한글 인코딩 문제 해결방법 (UTF-8으로의 변환)

    Date2010.03.08 Byl2zeo Views12581
    Read More
  17. Another app is currently holding the yum lock; waiting for it to exit 해결법

    Date2010.03.08 Byl2zeo Views18284
    Read More
  18. MySQL 명령어 정리

    Date2010.03.08 Byl2zeo Views10212
    Read More
  19. lower_case_table_names=1

    Date2010.04.02 ByADMINPLAY Views18084
    Read More
  20. mySQL 설치

    Date2010.05.03 ByADMINPLAY Views12903
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234