You cannot see this page without javascript.

MySQL 5.1.73 바이너리 설치

Linux 조회 수 1049 추천 수 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
번호 제목 글쓴이 날짜 조회 수sort
369 Xpress Engine xe 모든 변수값 출력해 보기 LynX 2014-07-14 93756
368 Linux systemd unit 등록 옵션 LynX 2014-07-22 20455
367 Linux Install PHP 5.5.13 modules LynX 2014-06-27 11866
366 아래아 한글 웹 한글 뷰어 소스 LynX 2014-06-11 9426
365 Internet Explorer KT 인터넷 접속제한 공유기 설정 LynX 2014-01-13 9229
364 Linux lineage1 server [6] LynX 2016-01-11 9056
363 CentOS CentOS7 Mail Server Setting file [13] LynX 2015-06-13 7906
362 Server Apache HTTP Server와 Tomcat의 연동 file LynX 2014-05-20 6112
361 Windows 7 외부 윈도우 클라이언트에서 삼바서버 접속하기 LynX 2014-03-06 6030
360 CentOS7 ▒ Doly의 CentOS7 강좌13 4. 원격접속 - 3.Telnet file [8] LynX 2014-10-23 5922
359 CentOS7 ▒ Doly의 CentOS7 강좌27 10. 디스크관리 6 XFS 쿼타 file [15] LynX 2015-06-09 5732
358 CentOS7 ▒ Doly의 CentOS7 강좌29 12. 네트워크 보안설정 12.1 firewalld (2/2) [21] LynX 2015-06-09 5282
357 CentOS APM 소스설치 정리 file [18] LynX 2015-06-17 4628
356 Network VLAN 설정 ① Access mode file [27] LynX 2015-04-29 4270
355 Programing meadco print LynX 2013-12-12 4267
354 Programing Sublime Text License Keys LynX 2016-03-24 4182
353 CentOS7 ▒ Doly의 CentOS7 강좌19 6. CentOS 네트워크 5-관련 명령어 LynX 2014-10-23 4070
352 Linux musescore LynX 2015-03-28 3779
351 Linux imap-php 설치 [7] LynX 2014-09-02 3727
350 CentOS7 ▒ Doly의 CentOS7 강좌18 6. CentOS 네트워크 4-네트워크 본딩(bonding) file [10] LynX 2014-10-23 3659

XE Login