설치 환경 : centos 6.5 x64
설치 버전 : mysql-5.1.71
설치사항
설치
[root@localhost]# yum install mysql-server
시작
[root@localhost]# service mysqld start
[root@localhost]# mysql
사용자 계정추가 및 사용자 패스워드 변경 http://itposting.tistory.com/8
서비스 등록 및 시작 프로그램 등록
[root@localhost]# chkconfig mysqld on
방화벽 해제 (3306포트) 외부에서 접속할경우 반드시 필요
[root@localhost]# vi /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
[root@localhost]# service iptables restart
'OS > Linux' 카테고리의 다른 글
[Centos] Subversion 설치 및 Apache 연동 (0) | 2014.02.12 |
---|---|
[Centos] 명령어 요약 yum,rpm,ls,ll (0) | 2014.02.10 |
[Centos] rpm 명령어 (0) | 2014.02.06 |
[Centos] 서비스 등록 /etc/init.d/ 사용법 (0) | 2014.02.06 |
[Centos] apache+tomcat mod_jk를 이용한 연동 (0) | 2014.02.06 |
사용자 추가
mysql> grant all privileges on *.* to '사용자'@'localhost' identified by '패스워드' with grant option;
mysql> grant all privileges on *.* to '사용자'@'%' identified by '패스워드' with grant option;
mysql> flush privileges;
사용자 패스워드 변경 password() 사용해야 암호화됩니다.
mysql> update user set password=password('1234') where user='root';
mysql> flush privileges;
'DB > Mysql' 카테고리의 다른 글
MYSQL 대소문자 구분 (0) | 2015.07.01 |
---|---|
MYSQL REPLICATION 동기화 설정 (0) | 2014.11.20 |
[Mysql] CentOS 에서 한글설정 (0) | 2014.06.02 |
[Mysql] mysqldump 사용법 백업& 복구 (0) | 2014.02.11 |
[Mysql] 부정형 NOT IN 사용 (0) | 2014.02.11 |