편집을 취소할 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.
최신판 | 당신의 편집 | ||
2번째 줄: | 2번째 줄: | ||
==확인== | ==확인== | ||
< | <source lang='dos'> | ||
[root@ | [root@jmnote ~]# rpm -qa | grep mysql | ||
</ | </source> | ||
:→ 설치 안됨 | :→ 설치 안됨 | ||
< | <source lang='dos'> | ||
[root@ | [root@jmnote ~]# yum list mysql-server | ||
... (생략) | ... (생략) | ||
Available Packages | Available Packages | ||
mysql-server.x86_64 5.0.95-5.el5_9 base | mysql-server.x86_64 5.0.95-5.el5_9 base | ||
</ | </source> | ||
:→ CentOS 기본 저장소로 설치가능하나, 5.0.95 버전임 | :→ CentOS 기본 저장소로 설치가능하나, 5.0.95 버전임 | ||
18번째 줄: | 18번째 줄: | ||
==yum으로 설치== | ==yum으로 설치== | ||
< | <source lang='dos'> | ||
[root@ | [root@jmnote ~]# yum --enablerepo=webtatic install mysql55-server | ||
... (생략) | ... (생략) | ||
====================================================================================================== | ====================================================================================================== | ||
39번째 줄: | 39번째 줄: | ||
Total download size: 23 M | Total download size: 23 M | ||
Is this ok [y/N]: y | Is this ok [y/N]: y | ||
</ | </source> | ||
< | <source lang='dos'> | ||
... (생략) | ... (생략) | ||
Installed: | Installed: | ||
50번째 줄: | 50번째 줄: | ||
Complete! | Complete! | ||
</ | </source> | ||
==서비스 시작== | ==서비스 시작== | ||
< | <source lang='dos'> | ||
[root@ | [root@jmnote ~]# service mysqld start | ||
Initializing MySQL database: Installing MySQL system tables... | Initializing MySQL database: Installing MySQL system tables... | ||
OK | OK | ||
88번째 줄: | 88번째 줄: | ||
[ OK ] | [ OK ] | ||
Starting mysqld: [ OK ] | Starting mysqld: [ OK ] | ||
</ | </source> | ||
==패스워드 변경== | ==패스워드 변경== | ||
< | <source lang='dos'> | ||
[root@ | [root@jmnote ~]# /usr/bin/mysqladmin -u root password 'P@ssw0rd' | ||
</ | </source> | ||
:→ MySQL의 root계정<ref>OS계정이 아니라 DB계정임</ref> 패스워드를 P@ssw0rd로 바꾸었다. | :→ MySQL의 root계정<ref>OS계정이 아니라 DB계정임</ref> 패스워드를 P@ssw0rd로 바꾸었다. | ||
:→ | :→ 이것은 최초 설치시만 된다. MySQL 삭제 후 재설치시에도 안되더라. | ||
:→ 만약 패스워드를 모른다면 '''[[MySQL root 패스워드 분실]]''' 참고 | |||
==로컬 접속 확인== | ==로컬 접속 확인== | ||
< | <source lang='dos'> | ||
[root@ | [root@jmnote ~]# mysql -uroot -p | ||
Enter password: | Enter password: | ||
</ | </source> | ||
< | <source lang='dos'> | ||
Welcome to the MySQL monitor. Commands end with ; or \g. | Welcome to the MySQL monitor. Commands end with ; or \g. | ||
Your MySQL connection id is 3 | Your MySQL connection id is 3 | ||
117번째 줄: | 118번째 줄: | ||
mysql> quit | mysql> quit | ||
Bye | Bye | ||
[root@ | [root@jmnote ~]# | ||
</ | </source> | ||
==부팅시 자동시작 설정== | ==부팅시 자동시작 설정== | ||
< | <source lang='dos'> | ||
[root@ | [root@jmnote ~]# chkconfig mysqld on | ||
[root@ | [root@jmnote ~]# chkconfig --list mysqld | ||
mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off | mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off | ||
</ | </source> | ||
==같이 보기== | ==같이 보기== | ||
136번째 줄: | 137번째 줄: | ||
<references/> | <references/> | ||
[[분류: CentOS | [[분류: CentOS]] | ||
[[분류: MySQL]] | [[분류: MySQL]] | ||
[[분류: yum 설치]] | [[분류: yum 설치]] |