'Ubuntu 9.04'에 해당되는 글 1건

  1. 2009.05.21 ubuntu 9.04 mysql is not started
컴퓨터/linux2009. 5. 21. 15:16
후배가 ksh을 쓰고 싶다고 하더니 이걸 깔아달라는 부탁을 했었습니다. 이 서버는 B모 후배가 고체물리이론에서 계산을 돌리는 그런 서버였는데 평소에는 연구실 웹서버를 사용하던 것이었지요..
그래서 간단하게 우분투의 미러를 바꾸고.. (전버전에는 ksh이 제공 되지 않더군요..)

우선 
$sudo vi /etc/qpt/source.list
에 가서 안에껄 싹다지운다음에..
deb http://security.ubuntu.com/ubuntu jaunty-security main restricted
deb-src http://security.ubuntu.com/ubuntu jaunty-security main restricted
deb http://security.ubuntu.com/ubuntu jaunty-security universe
deb-src http://security.ubuntu.com/ubuntu jaunty-security universe
deb http://security.ubuntu.com/ubuntu jaunty-security multiverse
deb-src http://security.ubuntu.com/ubuntu jaunty-security multiverse

## ubuntu daum mirror##
deb http://ftp.daum.net/ubuntu jaunty main multiverse restricted universe
deb-src http://ftp.daum.net/ubuntu jaunty main multiverse restricted universe
deb http://ftp.daum.net/ubuntu jaunty-backports main multiverse restricted universe
deb-src http://ftp.daum.net/ubuntu jaunty-backports main multiverse restricted universe
deb http://ftp.daum.net/ubuntu jaunty-proposed main multiverse restricted universe
deb-src http://ftp.daum.net/ubuntu jaunty-proposed main multiverse restricted universe
deb http://ftp.daum.net/ubuntu jaunty-security main multiverse restricted universe
deb-src http://ftp.daum.net/ubuntu jaunty-security main multiverse restricted universe

deb http://ftp.daum.net/ubuntu jaunty-updates main multiverse restricted universe
deb-src http://ftp.daum.net/ubuntu jaunty-updates main multiverse restricted universe

를 내립다 붙였는데..;;
정작 필요한 부분은 daum mirror인 아래 파란색 부분 뿐입니다..-_-;;ㅋ 보안을 위한다면 위에것도 필요 하겟죠??

그다음에 
$sudo apt-get update
$sudo apt-get upgrade
업그레이드를 한다음에
$sudo apt-get install ksh
로 간단하게 ksh를 깔았죠. 여기까진 좋았습니다. 그 다음에 업그레이드를 계속 했죠.

그런데 그후에 홈페이지를 들어가보니 웹페이지는 멀쩡하지만 database가 박살나 있었습니다..
database error라는 글짜만 뜨더군요.. 그 표시창이 뜨자. 그래도 아직 제로보드는 멀쩡하드는걸 알아차렸습니다. 이것도 잘 나온다는건 아파치도 멀쩡하다는 증거인데요. 그렇다면 잘못된건 단하나 database이죠... 
바로 
sudo /etc/init.d/mysql start
하자.. 기다렸다는듯이..
* /etc/init.d/mysql: ERROR: Using expire_logs_days without log_bin crashes the server. See README.Debian.gz
가 떳습니다.
mysql이 작동을 안하고 있더군요..

바로 구글링 해서 알아본 결과...
/etc/myqsl/my.cnf
이 파일을 수정하면 됨니다.

# note: if you are setting up a replication slave, see README.Debian about
#       other settings you may need to change.
#server-id              = 1
log_bin                 = /var/log/mysql/mysql-bin.log   <==바로 이 부분에 있던 주석을 제거 합니다.
expire_logs_days        = 10
max_binlog_size         = 100M
#binlog_do_db           = include_database_name
#binlog_ignore_db       = include_database_name
#


이렇게 하니까 정상적으로 mysql이 시작되고 홈페이지가 정상적으로 작동하더군요..
자칫했으면 큰 대형 삽질로 이어질 뻔 했지만..
다행이 쉽게 끝났습니다.
여러분도 리눅스의 문제로 충돌하게 되면 아예 에러 메세지를 긁어서 구글에 붙이면.. 같은 고민을 하던 다른 수많은 사람들을 쉽게 만나게 됨니다. 저도 그냥 에러메세지인
* /etc/init.d/mysql: ERROR: Using expire_logs_days without log_bin crashes the server. See README.Debian.gz
를 입력하자, 자연스럽게 답이 나오더군요..
희망을 잃지마시고 삽질에 전념하시길 바래요^^

Posted by blindfish