Korea FreeBSD Users Group News, Internal, Projects, Home
Software, Support, Documentation

Re: 새로 추가한 디스크에 mysql 데이타를 연결했거든요...



[ ¥ ] [ ۼ ] [ ֻ ]

[ ] [ ] [ ] [ ]


해당 디비 디렉토리의 소유권이 mysql:mysql 인지 확인해보세요.

mysql은 mysql이란 유저로 돌아가기 때문에 에러가 납니다.

포트에서 mysql 유저를 추가할 때 홈디렉을 무조건 /var/db/mysql로 하기 때문이져.

vipw하셔서 mysql 홈디렉 경로도 해당 디렉으로 바꿔주시면 됩니다.

그러나 ㅡ.ㅡ

pkg_info할 때 안나옵니다. 완벽하게 다 설치가 끝나지 않고 aborting되어서 그런거 같습니다.

어차피 php나 기타 웹연동 모듈은 client만 있으면 되니깐 상관은 없는데 

약간 찝찝하더군여. 기능상엔 문제가 없고 지정해 주신 디비 디렉을 디비디렉으로하고 컴팔하기 땜새 기능엔 아무런 지장이 없습니다.

제가 port를 이해한다면 패치해서 에러없이 하고 싶지만..

Makefile을 봐도 거의 이해가 안되기 때매..

ㅜ.ㅜ

그렇게는 안해봤는데 DB_DIR옵션을 주기 전에 디비 디렉을 만들고 /var/db/mysql에 링크를 걸어두면

에러는 없을 거같은데엽.. 

에이 헷갈리어라~

수요일 30 10월 2002 12:55에, MC Yi가 작성한 글:
> mysql-server.sh
> 에서 safe_mysql 실행부분에 --datadir=/dat/db/mysql 을 추가시켜서
> 실행시키거나

charset에 대한 옵션을 주셨다면 --language=korean도 추가시킴 한글로 잘됨다...


> 그냥 shell 상에서
> safe_mysqld --datadir=/data/db/mysql & 로 실행하면 될듯 합니다만 -.-
>
>
> ----- Original Message -----
> From: "NCFP" <rataplan@kornet.net>
> To: <questions@kr.freebsd.org>
> Sent: Wednesday, October 30, 2002 12:41 PM
> Subject: 새로 추가한 디스크에 mysql 데이타를 연결했거든요...
>
> > 디스크를 한장 추가했습니다.
> >
> > 추가는 여기 도움으로 잘 되었지요...
> > *******************************
> > Filesystem    Size   Used  Avail Capacity  Mounted on
> > /dev/ad0s1a   126M    43M    72M    38%    /
> > /dev/ad0s1f   252M    20K   232M     0%    /tmp
> > /dev/ad0s1g    35G   1.9G    31G     6%    /usr
> > /dev/ad0s1e   252M   7.9M   224M     3%    /var
> > /dev/ad1s1e   4.7G   2.0K   4.3G     0%    /data   # <-- 새로 추가한
>
> 디스크예요..
>
> > procfs        4.0K   4.0K     0B   100%    /proc
> > *******************************
> >
> > 위의 마운트 정보에서 /dev/ad1s1e인 /data 에 mysql 데이타를 넣을려고..
> > cd /usr/ports/databases/mysql323-server
> > make install clean WITH_CHARSET=euc_kr SKIP_DNS_CHECK=yes
> > 했습니다. Makefile에서 DB_DIR=/data/db/mysql 로 수정을 했고요...
> >
> > 설치를 잘 하더니... 아래와 같은 오류가 발생하는데...
> > 새로 추가한 디스크에 관련 디렉토리를 생성하지 못하는것 같습니다.
> >
> > 전번에 설치할때 DB_DIR을 /usr/ 밑에 생성하려고 할때도 이런 현상이
> > 있었습니다.
> >
> > 어째서... /var/ 밑에 생성할때는 문제없이 되는데... 그 이외의 디렉토리에
> > 만들려면 이런 오류가 발생하면서 stop이 되어버리는지... 모르겠네요...
> >
> > 참으로, 성가시게 질문만 올리는것 같습니다.
> >
> > 제가 디렉토리를 /data/db/mysql을 만들어놓고 설치했더니...
> > 이번엔 이미 설치되어있다고 오류가 나면서 설치가 되지 않더군요...
> >
> > *******************************
> > <오류내용입니다.>
> > Preparing columns_priv table
> > Installing all prepared tables
> > /usr/local/libexec/mysqld: Can't change dir to '/data/db/mysql/'
> > (Errcode:
>
> 2)
>
> > 021030 21:21:05  Aborting
> >
> > 021030 21:21:05  /usr/local/libexec/mysqld: Shutdown Complete
> >
> > Installation of grant tables failed!
> >
> > Examine the logs in /data/db/mysql for more information.
> > You can also try to start the mysqld daemon with:
> > /usr/local/libexec/mysqld --skip-grant &
> > You can use the command line tool
> > /usr/local/bin/mysql to connect to the mysql
> > database and look at the grant tables:
> >
> > shell> /usr/local/bin/mysql -u root mysql
> > mysql> show tables
> >
> > Try 'mysqld --help' if you have problems with paths. Using --log
> > gives you a log in /data/db/mysql that may be helpful.
> >
> > The latest information about MySQL is available on the web at
> > http://www.mysql.com
> > Please consult the MySQL manual section: 'Problems running
>
> mysql_install_db',
>
> > and the manual section that describes problems on your OS.
> > Another information source is the MySQL email archive.
> > Please check all of the above before mailing us!
> > And if you do mail us, you MUST use the /usr/local/bin/mysqlbug script!
> > *** Error code 1
> >
> > Stop in /usr/ports/databases/mysql323-server.�暢
>
> y?��$jwmjG�j�b��TP�?���� 0?�~��n?◀?����N?꿩?��{?����[h�②�?y
> +??����?a�移??非寧?'놜㎍?6(~?��,

--
Please look and take part in KFUG FAQ: <http://www.kr.freebsd.org/FAQ-kr/>
To Unsubscribe: send mail to majordomo@kr.FreeBSD.org
with "unsubscribe questions" in the BODY of the message



[ ¥ ] [ ۼ ] [ ֻ ]

Copyright © 1998-2005 Korea FreeBSD Users Group.
All rights reserved. webmaster at kr.FreeBSD.org
$Date: 2002/10/31 23:00:24 $
Powered by FreeBSD