| 이전 주제 보기 :: 다음 주제 보기 |
| 글쓴이 |
메시지 |
kobi
가입: 2003년 9월 4일 올린 글: 28
|
올려짐: 2003.12.10 수, 6:20 pm 주제: 일단 대충 복구는 됐는데.. mysql이 안되네요.. |
|
|
[root@localhost mysql-3.23.58-pc-linux-i686]# ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --with-charset=euc_kr
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!
To help you a bit, I am now going to create the needed MySQL databases
and start the MySQL server for you. If you run into any trouble, please
consult the MySQL manual, that you can find in the Docs directory.
Installing all prepared tables
031210 18:21:08 ./bin/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:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h localhost password 'new-password'
See the manual for more instructions.
NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run
the ./bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!
You can start the MySQL daemon with:
cd . ; ./bin/safe_mysqld &
You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; run-all-tests
Please report any problems with the ./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
Starting the mysqld server. You can test that it is up and running
with the command:
./bin/mysqladmin version
[root@localhost mysql-3.23.58-pc-linux-i686]# Starting mysqld daemon with databases from /hosting/koreahumor.com/docs/tmp/mysql-3.23.58-pc-linux-i686/data
031210 18:21:08 mysqld ended
[root@localhost mysql-3.23.58-pc-linux-i686]#
이런 오류가 납니다..
어떻게해야하죠?? _________________ 모르는게 참 많네여..ㅠㅠ |
|
| 위로 |
|
 |
truefeel 카페 관리자
가입: 2003년 7월 24일 올린 글: 1277 위치: 대한민국
|
올려짐: 2003.12.10 수, 10:14 pm 주제: Re: 그건 mysql 바이너리 설치 |
|
|
| kobi 씀: | [root@localhost mysql-3.23.58-pc-linux-i686]# ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --with-charset=euc_kr
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!
... 중략 ...
이런 오류가 납니다..
어떻게해야하죠?? |
메시지에 아주 잘 나와있습니다. 또한 프롬프트를 보아도 바이너리로 설치하신게 바로 보입니다.
./configure ... 하는 과정은 소스를 가져다가 컴파일 전에 시스템 환경에 맞게 Makefile을 생성해주는 역할을 하는 것입니다. 즉, 이 상황에서는 필요없는 것입니다.
http://www.mysql.com/doc/en/Installing_binary.html 에 설치 과정이 아주 잘 나왔습니다.
사용자 생성하고 -> 압축풀고 (압축 푼후 사용자 생성해도 상관 없음) -> DB 초기화 -> 소유자 변경 -> 실행
| 코드: |
shell> groupadd mysql (그룹 생성)
shell> useradd -g mysql mysql (사용자 생성)
shell> cd /usr/local
shell> tar xvfz /path/to/mysql-VERSION-OS.tar.gz (압축을 풀고)
shell> ln -s mysql-3.23.58-pc-linux-i686 mysql (mysql 이름으로 링크를 하고)
shell> cd mysql (/usr/local/mysql/ 로 이동)
shell> scripts/mysql_install_db (DB 초기화)
shell> chown -R root . (소유자 변경)
shell> chown -R mysql data
shell> chgrp -R mysql .
shell> bin/mysqld_safe --user=mysql & (실행. bin/ 안에까지 들어가는 것 아님. /usr/local/mysql 아래에서 실행하는 것입니다.)
|
|
|
| 위로 |
|
 |
kobi
가입: 2003년 9월 4일 올린 글: 28
|
올려짐: 2003.12.10 수, 10:49 pm 주제: groupadd 와 useradd는 어디에 있죠?? |
|
|
모르는게 죕니다..
죄송합니다.. 자꾸 물어서요..
찾아 다녔는데 못찾겠어요..ㅠㅠ _________________ 모르는게 참 많네여..ㅠㅠ |
|
| 위로 |
|
 |
truefeel 카페 관리자
가입: 2003년 7월 24일 올린 글: 1277 위치: 대한민국
|
올려짐: 2003.12.10 수, 11:15 pm 주제: Re: groupadd 와 useradd는 /usr/sbin에 |
|
|
| kobi 씀: | 모르는게 죕니다..
죄송합니다.. 자꾸 물어서요..
찾아 다녔는데 못찾겠어요..ㅠㅠ |
/usr/sbin 에 있습니다.
root 홈의 .bash_profile 을 보면 PATH 부분이 있을 겁니다.
그 뒤에 /usr/sbin 추가해주면 매번 경로를 입력하는 불편을 덜 수 있습니다.
이를테면 다음과 같을 때
아래 처럼
| 코드: |
PATH=$PATH:$HOME/bin:/usr/sbin:/usr/local/bin
|
파일 찾을 때는 slocate useradd 나 whereis useradd 와 같이 찾을 수도 있습니다.
이 쓰레드가 가장 길어지는 것 같습니다. ^^
복구라는 제목 아래에 묶어두기가 적당하지 않는 글은 적당히봐서 분리하도록 하겠습니다. |
|
| 위로 |
|
 |
kobi
가입: 2003년 9월 4일 올린 글: 28
|
올려짐: 2003.12.10 수, 11:36 pm 주제: 이건 어떤 문제죠? |
|
|
자꾸 길게 질문 드려서 죄송합니다..
이런 에러가 나오네요..
[root@localhost mysql]# bin/safe_mysqld --user=mysql &
[7] 7491
[root@localhost mysql]# Starting mysqld daemon with databases from /usr/local/mysql/data
031210 23:37:11 mysqld ended
이건 왜그렇죠??
자세한 답변해 주셔서 항상 감사합니다.. _________________ 모르는게 참 많네여..ㅠㅠ |
|
| 위로 |
|
 |
truefeel 카페 관리자
가입: 2003년 7월 24일 올린 글: 1277 위치: 대한민국
|
올려짐: 2003.12.10 수, 11:42 pm 주제: Re: 이건 어떤 문제죠? |
|
|
| kobi 씀: | 자꾸 길게 질문 드려서 죄송합니다..
이런 에러가 나오네요..
[root@localhost mysql]# bin/safe_mysqld --user=mysql &
[7] 7491
[root@localhost mysql]# Starting mysqld daemon with databases from /usr/local/mysql/data
031210 23:37:11 mysqld ended
이건 왜그렇죠??
자세한 답변해 주셔서 항상 감사합니다.. |
ps -ef 해서 mysqld 데몬이 없다면 정상적으로 실행된 것이 아니겠죠.
/usr/local/mysql/data/???.err 파일이 있을 듯 한데 이 로그 파일을 살펴보시기 바랍니다.
퍼미션 문제일 수도 있다는 생각도 드는군요. |
|
| 위로 |
|
 |
kobi
가입: 2003년 9월 4일 올린 글: 28
|
올려짐: 2003.12.11 목, 1:18 am 주제: root 홈의 .bash_profile 이없는데.... |
|
|
root 홈의 .bash_profile 이없는데.... 만들어야하나요??
그냥 vi .bash_profile 이렇게 만드면되나요?? _________________ 모르는게 참 많네여..ㅠㅠ |
|
| 위로 |
|
 |
truefeel 카페 관리자
가입: 2003년 7월 24일 올린 글: 1277 위치: 대한민국
|
올려짐: 2003.12.11 목, 1:21 am 주제: Re: /root/.bash_profile 입니다. |
|
|
| kobi 씀: | root 홈의 .bash_profile 이없는데.... 만들어야하나요??
그냥 vi .bash_profile 이렇게 만드면되나요?? |
root ID 홈이라 하면 /root 을 말합니다. 즉 /root/.bash_profile입니다.
ls -la 와 같이 꼭 -a 옵션을 주어야 . 으로 시작하는 파일을 볼 수 있습니다.
ID/PW을 알려주셨길래 PATH 부분을 제가 수정했습니니 확인 해보세요. |
|
| 위로 |
|
 |
kobi
가입: 2003년 9월 4일 올린 글: 28
|
올려짐: 2003.12.11 목, 1:50 am 주제: mysql 오류입니다. |
|
|
mysql> select * from board;
ERROR 1030: Got error -1 from table handler
이런 오류가 나네요..
어떻게 살릴수 있을까요??
ㅠㅠ _________________ 모르는게 참 많네여..ㅠㅠ |
|
| 위로 |
|
 |
truefeel 카페 관리자
가입: 2003년 7월 24일 올린 글: 1277 위치: 대한민국
|
올려짐: 2003.12.11 목, 2:03 am 주제: Re: mysql DB가 깨졌습니다. |
|
|
| kobi 씀: | mysql> select * from board;
ERROR 1030: Got error -1 from table handler
이런 오류가 나네요..
어떻게 살릴수 있을까요??
ㅠㅠ |
mysql DB 테이블이 깨진 것 같습니다.
테이블이 MyISAM 타입이면 다음과 같이 하여 복구할 수 있습니다.
( MySQL홈/data/DB명/테이블.MYD, .MYI라면 MyISAM)
| 코드: |
myisamchk -r -q DB테이블경로 또는
myisamchk -o DB경로
|
DB명=abcd, table=test 이고 DB가 /usr/local/mysql/data/에 있다면
예) myisamchk -r -q /usr/local/mysql/data/abcd/test
ISAM 타입이면 ( 테이블.ISD, 테이블.ISM이면 ISAM)
| 코드: |
isamchk -r -q DB경로 또는
isamchk -o DB경로
|
자세한 글은 다음을 참고 하세요.
http://coffeenix.net/board_view.php?bd_code=102 |
|
| 위로 |
|
 |
|