You cannot see this page without javascript.

MySQL 5.1.73 바이너리 설치

Linux 조회 수 1053 추천 수 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
249 CentOS7 ▒ Doly의 CentOS7 강좌3-2.CenOS 7 설치-1 file [13] LynX 2014-10-23 970
248 Linux lol 설치 [9] LynX 2014-12-22 959
247 Linux firewalld DDOS 차단 LynX 2016-08-22 958
246 LinuxMint linuxmint LynX 2014-12-11 953
245 Linux EPEL repository [10] LynX 2014-12-11 949
244 활성 네트워크 중복으로 인한 인터넷 연결 안되는 문제 file [12] LynX 2011-05-26 948
243 CentOS7 ▒ Doly의 CentOS7 강좌25 10. 디스크관리 2 Gnome-disks 그놈 디스크 관리도구 file [16] LynX 2015-06-09 946
242 Xpress Engine xe 외부 php 파일에서 db 접근하기 executeQuery() LynX 2014-07-14 929
241 Network NAT 구성 file [13] LynX 2015-04-29 924
240 CentOS7 ▒ Doly의 CentOS7 강좌12 4. 원격접속 - 2.SSH file [1] LynX 2014-10-23 924
239 CentOS7 ▒ Doly의 CentOS7 강좌26 10. 디스크관리 5 LVM 5.1 SSM file [9] LynX 2015-06-09 922
238 CentOS7 ▒ Doly의 CentOS7 강좌17 6. CentOS 네트워크 3-호스트네임 설정 file LynX 2014-10-23 917
237 Programing make - 05 내부 매크로 LynX 2017-02-22 900
236 APM Apache 2.4 설치 file LynX 2013-12-30 895
235 CentOS7 ▒ Doly의 CentOS7 강좌22 7. 사용자와 그룹관리 3-관리자 권한 전환 [19] LynX 2015-06-09 891
234 Linux OpenBSD APM Source Compile [2] LynX 2016-07-04 881
233 mms 스트리밍 파일 다운로드 file LynX 2012-12-12 871
232 HardWare 라우터 초기화 LynX 2014-03-25 851
231 Linux Linux Telnet, SSH 설치 LynX 2014-06-30 846
230 SoftWare 네트워크 블러그 LynX 2013-09-29 846

XE Login