centos 5.1 에서 mysql 설치시 오류

darkhi의 이미지

[root@localhost mysql-5.0.51a-linux-i686]# ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --with-charset=euckr
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 MySQL system tables...
OK
Filling help tables...
OK

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 !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h localhost.localdomain password 'new-password'

Alternatively you can run:
./bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl

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 http://shop.mysql.com
Starting the mysqld server. You can test that it is up and running
with the command:
./bin/mysqladmin version
[root@localhost mysql-5.0.51a-linux-i686]# chown: `mysql': 잘못된 사용자
Starting mysqld daemon with databases from /usr/local/mysql-5.0.51a-linux-i686/data
STOPPING server from pid file /usr/local/mysql-5.0.51a-linux-i686/data/localhost.localdomain.pid
080224 12:07:35 mysqld ended
[root@localhost mysql-5.0.51a-linux-i686]#

///////////////////////////

centos 5.1에서 rpm 말고 compile로 설치할려고 하거든요..(제가 보는 책에는 compile로 나와있어서)
그런데 책에서는 정상적으로 되는데 제껀 안되네요 물론 mysql버전은 틀려요..
설치가 안되는 이유가 뭐고 어떻게 하면 설치가 되는지 좀 알려주세요..

keke111의 이미지

NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!

상단에 이렇게 써 있잖아요. 해석해 드리면 "이 mysql은 바이너리 배포판입니다. 이것은 실행 준비가 되어 있습니다. 당신은 이것을 configure 할필요가 없습니다."

참로고 컴파일 하고 싶으시면 소스 버전을 받으세요

배포판은 소스판, 바이너리판, rpm판 등등이 있습니다.

darkhi의 이미지

소스버전으로 다시 받아서 컴파일하는데 make에서 오류 뜨네요 ㅜㅜ

academic의 이미지

어떤 오류가 뜨는지를 알려주셔야 답을 해드릴 수 있을 겁니다.

그러나, 왜 굳이 rpm으로 설치할 수 있는데도 컴파일하시려고 하는지 의문입니다.

rpm으로 설치할 수가 없어서 컴파일한다면 모르겠습니다만...

부득이하게 컴파일해서 설치할 일이 있을테니, 그때 컴파일 연습은 하시고

mysql은 그냥 rpm 으로 설치해서 쓰시지요.

--
academic은 제 고등학교 때 동아리 이름입니다.
academic, 아주 가끔은 저도 이랬으면 좋겠습니다.

----
academic은 제 고등학교 때 동아리 이름입니다.
academic, 아주 가끔은 저도 이랬으면 좋겠습니다.

정태영의 이미지

아래 커맨드로 설치를 하시구요.

$ yum install mysql

mysql 관리는 아래처럼 하세요

# 시작
$ /etc/init.d/mysql start

# 끝
$ /etc/init.d/mysql stop

# 재시작
$ /etc/init.d/mysql restart

중요한 건 아니지만 mysql 디렉토리는 /usr/local/mysql/data 이 아닌 /var/db/mysql 정도로 들어가게 될겁니다. (정확한건 rpm -ql mysql 로 확인해보세요.) 로그 파일은 /usr/local/mysql/log 대신 /var/log 에 들어갈 것이구요.

그 외에 더 알아야할 건 없을 것 같네요.

아파치나 php 도 왠만하면 패키지로 설치하시고, 만약 정 php 등을 빌드하셔야겠다면 yum install mysql-devel 로 mysql 라이브러리와 헤더를 설치해주세요.

소스로 설치하는 건 관리를 어렵게 만듭니다. 관련해서 며칠전에 쓴 글이 있으니 한 번 읽어보도록 하시구요.

http://b.mytears.org/2008/02/627

--
오랫동안 꿈을 그리는 사람은 그 꿈을 닮아간다...

http://mytears.org ~(~_~)~
나 한줄기 바람처럼..

오랫동안 꿈을 그리는 사람은 그 꿈을 닮아간다...

http://mytears.org ~(~_~)~
나 한줄기 바람처럼..

clcn의 이미지

service mysqld start
service mysqld stop
service mysqld restart

glay의 이미지

배포판이 뭔지 모르겠으나 레드렛 계열 ( centos 포함 ) 이라면

yum install mysql-server 가 맞겠네요..

mysql 은 클라이언트 입니다.

mysql-server 가 데몬이죠..

하늘은 스스로 삽질 하는 자를 삽으로 팬다.
------------------------------------------------
http://glay.pe.kr


--------------- 절취선 ------------------------
하늘은 스스로 삽질하는 자를 삽으로 팬다.

http://glay.pe.kr

darkhi의 이미지

책에 컴파일로 나와있어서 그렇게 했었거든요.. 앞으론 참고해야겠네요

댓글 달기

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