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

에서 확인했습니다.

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