[Server구축/Tutorial] MySQL 설치
http://jongkwang.com/?p=941
-
yum install mysql 을 수행하면 낮은 버전이 설치된다.
따라서 아래 사이트에서 자신에 맞는 rpm 을 구해야 한다.
http://dev.mysql.com/downloads/repo
cf) RPM 은 Redhat Package Manager
-
$wget http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
$ yum localinstall http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
$ yum update
$ yum install mysql-community-server
$ service mysqld start
-
자동 실행 등록
$ setup
[System services] - [mysqld] 체크
-
비밀번호 설정
$ mysqladmin -u root password "CustomPassword" // 큰 따옴표 없이
-
Character Set 설정
$ vi /etc/my.cnf
// 아래 내용 추가 -> UTF-8 설정
[mysqld]
character_set_server=utf8
collation_server=utf8_general_ci
init_connect=set collation_connection=utf8_general_ci
init_connect=set names utf8
character-set-server=utf8
character-set-client-handshake = TRUE
$ service mysqld restart
$ mysql -u root -p
> password 입력
> show variables like 'c%'; // character-set 이 utf 로 잘 설정되었는지 확인 가능
'IT 놀이터 > Linux' 카테고리의 다른 글
Docker 에 대한 이해 (0) | 2017.06.08 |
---|---|
[Server구축/Tutorial] 권한 설정 (0) | 2017.06.04 |
[Server구축/Tutorial] 계정 생성 (0) | 2017.05.28 |
[Server구축/Tutorial] Shell 기본 명령어들 (0) | 2017.05.27 |
[Server구축/Tutorial] Nginx 설치 (0) | 2017.05.21 |
댓글