server CentOS 6 - MySQL 5.5 설치
2012.04.15 10:03
참고 문서 |
---|
libaio
# yum install libaio
This is new advanced library for speedier reading and writing of files, its a dependency for MySQL 5.5
MySQL의 읽기/쓰기를 더 빠르게 해줍니다.
MySQL
DB는 추후 관리를 위해 yum 으로 진행했습니다.
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-6.noarch.rpm rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
# yum --enablerepo=remi,remi-test install mysql mysql-server mysql-devel # service mysqld start # chkconfig --levels 235 mysqld on # /usr/bin/mysqladmin -u root password "비밀번호" # root 암호 설정 # /usr/bin/mysql_secure_installation
Set root password? [Y/n] n Remove anonymous users? [Y/n] y Disallow root login remotely? [Y/n] y Remove test database and access to it? [Y/n] y Reload privilege tables now? [Y/n] y
설정
# vi /etc/my.cnf
[client] default-character-set = utf8 [mysqld] ; 느린 질의 로그를 활성화한다. 기본은 10초다. log-slow-queries ; 5초 이상 걸리는 질의를 기록한다. long_query_time = 5 ; long_query_time보다 적게 걸릴 경우 색인을 사용하지 않는 질의를 기록한다. ; MySQL 4.1 이상 버전에만 통한다 log-queries-not-using-indexes ;질의 캐시로 32MB를 잡는다. query_cache_size = 32M ; MySQL 자원 설정 max_connections=500 wait_timeout=10 max_connect_errors = 100 init_connect = SET collation_connection = utf8_general_ci init_connect = SET NAMES utf8 default-character-set = utf8 character-set-server = utf8 collation-server = utf8_general_ci innodb_buffer_pool_size=500M [mysqldump] default-character-set=utf8
방화벽
mysql 리모트 접속시 3306 포트 허용.
# vi /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
# service iptables restart
관련문서
번호 | 제목 | 날짜 | 조회 수 |
---|---|---|---|
80 |
검색엔진 등록
![]() | 2010.05.12 | 142339 |
79 |
VPS (가상 호스팅) 비교
![]() | 2010.05.12 | 62198 |
78 |
마인크래프트 조합법 1
![]() | 2011.04.01 | 38160 |
77 | CentOS 6 - Apache 2.4.1 컴파일 / 보안 설정 [1] | 2012.04.15 | 30224 |
76 | 리눅스 계정 생성/변경 [67] | 2011.04.02 | 29120 |
75 |
Linux Memory 사용량
![]() | 2012.05.16 | 24975 |
» |
CentOS 6 - MySQL 5.5 설치
[1] ![]() | 2012.04.15 | 21687 |
73 |
Lighttpd 설치
![]() | 2010.05.11 | 20676 |
72 |
sAPM
![]() | 2010.05.12 | 20256 |
71 |
php + ssh2
![]() | 2010.06.05 | 20195 |
70 |
Linux 설치시 파티션 관리
![]() | 2012.05.12 | 19199 |
69 |
Zend Optimizer + eAccelerator + Suhosin
![]() | 2010.05.11 | 18234 |
68 |
MySQL 설치
![]() | 2010.05.11 | 17277 |
67 |
CentOS 6.2 다운로드 / 설치
[1] ![]() | 2012.04.15 | 17019 |
66 |
Apache 설치
![]() | 2010.05.11 | 16655 |
65 | ssh 로그인 제한 | 2011.04.05 | 16465 |
64 |
리눅스 자동 시작
![]() | 2010.05.21 | 15889 |
63 |
ftp
![]() | 2010.07.23 | 15410 |
62 | 솔라리스 mount options | 2013.10.06 | 15313 |
61 |
PHP 설치
![]() | 2010.05.11 | 15054 |
MySQL 리모트 접속이 안된다..
-I INPUT -p tcp --dport 3306 -j ACCEPT