mysql이 시작조차 안되는군요.

sweetcorn의 이미지

휴 제가 mysql binary버전을 받아서 깔았습니다만, 이상하게 시작이 안 됩니다. (사실 시작하자 죽습니다.) 게시판에 흔하게 올라와있는 문제인데.. 잘못된 곳을 못찾겠겠군요.

일단 /usr/local/mysql/bin/mysqld_safe --user=mysql &
하게 되면,

[root@test mysql]# Starting mysqld daemon with databases from /usr/local/mysql/data
040619 18:18:13 mysqld ended

[1]+ Done bin/mysqld_safe --user=mysql

이렇게 끝나버리는군요.

그래서 에러 로그를 보니 이렇게 나와있습니다.
(mysql내 data 디렉토리에 보니까 있네요 test.err 파일.)

040619 17:23:28 Aborting

040619 17:23:28 /usr/local/mysql/bin/mysqld: Shutdown Complete

040619 17:23:28 mysqld ended

040619 17:52:27 mysqld started
Fatal error: Can't change to run as user 'mysql' ; Please check that the user exists!

이런식의 에러가 쭈루룩 있더라구요.

보통 이런문제 보면 뭐 권한문제라던지, 사용자계정을 생성안해줬다던지.. 그런문제라고 하더라구요. 메뉴얼대로 했습니다만..

groupadd mysql
useradd -g mysql mysql
cd /usr/local
tar xvfz mysql-standard-4.0.20-pc-linux-i686-icc.tar.gz
ln -s mysql-standard-4.0.20-pc-linux-i686-icc mysql
cd mysql
scripts/mysql_install_db --user=mysql --force
chown -R root .
chown -R mysql data
chgrp -R mysql .
bin/mysqld_safe --user=mysql &

그리고 mysql내 디렉토리 권한은 다음과 같이 되어 있습니다.

drwxr-xr-x 14 root mysql 4096 6월 19 18:07 .
drwxr-xr-x 15 root root 4096 6월 19 17:29 ..
-rw-r--r-- 1 root mysql 19106 5월 14 10:19 COPYING
-rw-r--r-- 1 root mysql 8403 5월 14 10:19 INSTALL-BINARY
-rw-r--r-- 1 root mysql 1937 5월 14 09:53 README
drwxr-xr-x 2 root mysql 4096 5월 14 10:29 bin
-rwxr-xr-x 1 root mysql 773 5월 14 10:29 configure
drwxr-x--- 4 mysql mysql 4096 6월 19 18:24 data
drwxr-xr-x 2 root mysql 4096 5월 14 10:29 docs
drwxr-xr-x 2 root mysql 4096 5월 14 10:29 include
drwxr-xr-x 2 root mysql 4096 5월 14 10:29 lib
drwxr-xr-x 3 root mysql 4096 5월 14 10:29 man
drwxr-xr-x 6 root mysql 4096 5월 14 10:29 mysql-test
drwxr-xr-x 2 root mysql 4096 5월 14 10:29 scripts
drwxr-xr-x 3 root mysql 4096 5월 14 10:29 share
drwxr-xr-x 5 root mysql 4096 5월 14 10:29 sql-bench
drwxr-xr-x 2 root mysql 4096 5월 14 10:29 support-files
drwxr-xr-x 2 root mysql 4096 5월 14 10:29 tests

또 무엇을 체크해봐야할까요? 휴 시작이 안되서 답답합니다.. :(

sweetcorn의 이미지

제가 인텔 컴파일러..를 사용한 걸 받아서 저렇게 삽질을 했었습니다만,
gcc 쓴걸 하니까 바로 잘 되네요-_- .... 이상하군요 흠;

isdark의 이미지

저랑 비슷한 상황에 처하신 듯 한데...
방금 해결되었는데...
전 레뎃깔때 MySQL을 패키지 인스톨 설정을 했었거든요.
그러니깐, 낮은 버전의 MySQL이 이미 시스템에 깔린 뒤에 4.x 버전의 MySQL 소스를 가져와서 컴파일해서 깔아서 데몬실핼시키려고 하니 님께서 적은것과 동일한 에러가 나타나더군요.
사실 님과 동일한 방법으로 세팅했죠.(소스란 점을 빼면)
그래서 find로 mysql 다 찾아서 소스를 제외하고는 싹 지우고, 소스를 다시 make; make install 하고나서, 몇가지 세팅(디렉토리랑 위에 한것들)을 하고나니
잘 돌아가는 군요.
이젠 부팅시 데몬 자동실행되도록 스크립트 조정하는 것만 남았네요^^
혹시나 시스템에 MySQL 이전 버전이 설치되었는지 체크해 보심이...
실행 경로순서에 따른 실행모듈 충돌로 인한 에러인듯하네요. (저의 경우입니다만.)

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.