You cannot see this page without javascript.

MySQL 5.1.73 바이너리 설치

Linux 조회 수 1045 추천 수 0 2014.07.02 15:41:16

MySQL 설치 방법에는 Source, RPM, Binary 의 세가지 방법이 있다.

그중 Binary를 설치하는 것을 권고 하고 있다.

참고용으로 설치 테스트를 해보았다.


이유

1. 압축을 해지 후 간단한 설정만 하면 기존 소스보다 설치하기가 빠르고 단순해 진다.

2. 원하는 경로 그리고 설정을 간단하게 작업 가능 하다.

3. 용량이 있는 만큼 모든 모듈이 자체 컴파일되어 내장이 있어 설치 도중의 필요한 패키지를 재설치하는 번거로움이 없다.

(자체 설치가이드가 있다면 상관없겠지만 없다면 정말 급할때는 답답하다.)


1. 환경

CentOS 5.10 64BIT


2. 다운로드(MySQL-Community Server-5.1.73 64BIT)

경로)http://dev.mysql.com/downloads/mysql/5.1.html#downloads

가입을 해서 받아도 되지만 No thanks, just start my download. 를 선택해서 생략해도 된다.

3. 설치

사실 압축해제 후 INSTALL-BINARY를 보면 설치방법이 다 나와있다.

# groupadd mysql
# useradd -g mysql mysql
# tar xzfv mysql-5.1.73-linux-x86_64-glibc23.tar.gz
# ln -s mysql-5.1.73-linux-x86_64-glibc23 mysql
# cd mysql
# chown -Rf mysql.mysql .
# scripts/mysql_install_db
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 mind1984.vps.phps.kr 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!

# chown -R root .
# chown -Rf mysql.mysql data/
# cp support-files/my-small.cnf /etc/my.cnf
# bin/mysqld_safe --user=mysql &
# cp support-files/mysql.server /etc/init.d/mysqld
# chmod 755 /etc/init.d/mysqld
# chkconfig --add mysqld

4. 설정

Library, PATH 등록

# vi /etc/ld.so.conf.d/mysql-x86_64.conf
/usr/local/mysql/bin
# ldconfig

# vi /etc/profile
# PATH=/usr/local/mysql/bin:$PATH
# source /etc/profile

5. 구동

# service mysqld start
Starting MySQL. SUCCESS!

끗~

엮인글 :
List of Articles
번호 제목 글쓴이 날짜 조회 수
149 Xpress Engine module_srl 과 mid 변환 LynX 2014-07-12 576
148 Xpress Engine XE - XML 쿼리 언어 LynX 2014-07-11 3104
147 Xpress Engine XE 애드온 --XE 애드온의 기초 이해 LynX 2014-07-11 841
146 Xpress Engine XE 애드온의 제작 규칙 LynX 2014-07-11 419
145 Xpress Engine XE 애드온(addon)개발하기 LynX 2014-07-11 1044
144 Xpress Engine xe 서버이전 LynX 2014-07-10 324
143 Linux Xming 으로 X-Window 원격 접속 하기 LynX 2014-07-07 1417
142 Linux CentOS 6.5에 JSP를 위한 JDK & Tomcat file LynX 2014-07-05 477
141 Linux [Linux] 특정 계정만 su -(root)를 통한 root접근 허용 LynX 2014-07-04 294
140 Linux Linux 부팅시 X-Window 모드 또는 Text모드 선택법 LynX 2014-07-04 378
139 Linux VSFTP 가상유저 설정 LynX 2014-07-03 357
138 Linux centOS FTP서버 구축 file LynX 2014-07-03 1592
137 Linux cent OS 4.2 설치 메뉴얼 LynX 2014-07-02 1243
136 Linux GLIBCXX LynX 2014-07-02 323
» Linux MySQL 5.1.73 바이너리 설치 LynX 2014-07-02 1045
134 Linux 리눅스에 곰플레이어 설치하기 file LynX 2014-07-01 536
133 Linux CentOS 텔넷 접속시 한글꺠짐 현상 제거 LynX 2014-06-30 486
132 Linux Linux Telnet, SSH 설치 LynX 2014-06-30 843
131 Linux Centos 동영상플레이어 LynX 2014-06-29 755
130 Linux Install Adobe Flash Player 11.2 on CentOS/RHEL 6.5 file LynX 2014-06-28 2286

XE Login