mysql 설치 질문

하하의 이미지

이곳 저곳 메뉴얼을 다 뒤적거리고 이곳 디비사랑 QnA도 봤는데..

해결이 안되 질문 올립니다.

OS : Linux , MYSQL : 4.0.16

압축 푼 소스 디렉토리 : /home/user1/mysql-4.0.16

설치 할 디렉토리 : /home/user1/sql

설치 시작 : 1. mkdir /home/user1/sql

2. /home/user1/mysql-4.0.16/configure --prefix=/home/user1/sql

3. /home/user1/mysql-4.0.16/make

4. /home/user1/mysql-4.0.16/make install

5. /home/user1/mysql-4.0.16/mysql_install_db

아래와 같은 메세지를 뿌립니다.

=======================================================================================

Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
031210 10:58:39 /home/astrokoo/sql/libexec/mysqld: Shutdown Complete

To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
This is done with:
/home/astrokoo/sql/bin/mysqladmin -u root password 'new-password'
/home/astrokoo/sql/bin/mysqladmin -u root -h testbed-t1 password 'new-password'
See the manual for more instructions.

You can start the MySQL daemon with:
cd /home/astrokoo/sql ; /home/astrokoo/sql/bin/mysqld_safe &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the /home/astrokoo/sql/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com

=======================================================================================

6. /home/user1/sql/bin/mysqld_safe &

실행을 시키면 그냥 죽어 버립니다.

=======================================================================================

Starting mysqld daemon with databases from /home/astrokoo/sql/var
031210 11:02:04 mysqld ended

[1]+ Done ./mysqld_safe

=======================================================================================

7. /home/user1/sql/bin/mysql

mysql 을 실행 시키면 아래와 같이 나옵니다.

=======================================================================================

ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

=======================================================================================

ls -al /tmp/mysql.sock 을 해보면 파일이 없습니다.

mysql.sock 파일 생성 및 mysql.sock 파일에 루트 및 user1 권한으로 chmod , chgrp 해주어도..

마찬가지로 실행이 안되고 그냥 죽습니다.

왜 그런건가요?... 도움 부탁 드리겠습니다.

그럼 즐거운 하루되세요.

하하의 이미지

자답입니다.

./configure --prefix=/home/user1/sql --datadir=/home/user1/sql

make

make install

하고

cp /home/user1/sql/mysql/my-large.cnf ../../my.cnf

하고

vi my.cnf

port = 3307 을 다른 포트로 변경

후.. 제 시작 하면 됩니다.. ^^

이미 다른 mysql 서버가 사용중인 포트라 사용 불가 였습니다

관련 에러는 /home/user1/sql/var/*.err

에서 확인했습니다.

“바람에게도 길은 있다. 나는 비로소 나의 길을 가느니. 길은 언제나 어디에나 있다.”

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.