mysql 설치

cohuman1의 이미지

# mysql 계정이 필요하다해서 간단히 만들었습니다;; 이래두 되는지..

[root@localhost mysql-standard-4.0.14-pc-linux-i686]# adduser mysql

# 그리고 configure 설정을 했거든요. 제대로 된거 같은데..

[root@localhost mysql-standard-4.0.14-pc-linux-i686]# ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --sysconfdir=/etc --with-mysql-user=mysql --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
030814 20:32:23 ./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.localdomain 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/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 ./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-standard-4.0.14-pc-linux-i686]# Starting mysqld daemon with databases from /usr/down/mysql-standard-4.0.14-pc-linux-i686/data
030814 20:32:24 mysqld ended

# configure 가 끝나고 책에 있는데로 컴파일 할려고 make 했거든요..

[root@localhost mysql-standard-4.0.14-pc-linux-i686]# make
make: *** No targets specified and no makefile found. 멈춤.

# 근데 멈쳤어요;;

왜 이래요? --;

cdpark의 이미지

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

메시지 속에 답이 있습니다. 배포된 파일 속의 README나 INSTALL 등을 읽어보세요.

cohuman1의 이미지

tar 로 압축을 푸는것과 동시에 사용이 가능한거 같은데요.

INSTALL-BINARY 에 있는 내용되로

shell> groupadd mysql
shell> useradd -g mysql mysql
shell> cd /usr/local
shell> gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -
shell> ln -s full-path-to-mysql-VERSION-OS mysql
shell> cd mysql
shell> scripts/mysql_install_db
shell> chown -R root .
shell> chown -R mysql data
shell> chgrp -R mysql .
shell> bin/mysqld_safe --user=mysql &
or
shell> bin/mysqld_safe --user=mysql &
if you are running MySQL 4.x

이렇게 해주었습니다.
여기 까지는 에러없이 되던데요.

[root@localhost mysql]# ./bin/mysql
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)

mysql 을 실행 시키니깐 저렇게 나오는데 먼지 잘 모르겟습니다~

아직 초보라서 질문조차도 엉성할 수 있습니다.
이해하시구요.^^.
제 글을 읽어주시는 분들, 답변해주시는 분들께 항상 감사드립니다.

havebeen의 이미지

mysql측에서 컴파일 해놓은건데요

그냥 tar루 압축 푸시구요

해당 디렉토리에서 ./safe_mysqld --user=mysql 과 같은식으루

데몬 돌려주시면 됩니다.

그리구 mysql이나 nobody같은 홈 디렉토리 필요 없는 user들은

adduser -M 옵션을 주세요~

아직 멀었다.. 난 여전히 시작점

cohuman1의 이미지

저 문제는 권한지정을 제대로 안해줘서 그랫던거 같아요.
권한을 다시 지정하고 데몬돌리니깐 돌아가드라구요.
MySQL 이 컴파일된 형태로 간단히 설치 되니깐..
제가 DBMS 를 설치한게 맞는지 ;;;

그리고 adduer -M 말인데요. 그거하면 홈디렉토리는 안생기나봐요.
근데 벌써 생성한 계정에 대해서는 적용이 안되는거.. 맞죠?;;

아직 초보라서 질문조차도 엉성할 수 있습니다.
이해하시구요.^^.
제 글을 읽어주시는 분들, 답변해주시는 분들께 항상 감사드립니다.

havebeen의 이미지

그냥 하신건 홈디렉토리 지워주시구

vi /etc/passwd하셔서 mysql쉘 막아주세여

/bin/false나 /bin/nologin이었던가 @_@

아직 멀었다.. 난 여전히 시작점

offree의 이미지

cohuman1 wrote:
저 문제는 권한지정을 제대로 안해줘서 그랫던거 같아요.
권한을 다시 지정하고 데몬돌리니깐 돌아가드라구요.
MySQL 이 컴파일된 형태로 간단히 설치 되니깐..
제가 DBMS 를 설치한게 맞는지 ;;;

그리고 adduer -M 말인데요. 그거하면 홈디렉토리는 안생기나봐요.
근데 벌써 생성한 계정에 대해서는 적용이 안되는거.. 맞죠?;;

지울때 userdel 인가로 지워주시면 됩니다.

mysql 은 binary 와 소스형태로 배포되고 있습니다.

binary 는 실행스크립트만 잘 맞춰서 해주면 됩니다.

사용자가 바꾸어 나가자!!

= about me =
http://wiki.kldp.org/wiki.php/offree , DeVlog , google talk : offree at gmail.com

댓글 달기

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