phpMyAdmin 적절한 사용방법
1, 다운로드 받기
현재 최신 버젼은 phpMyAdmin 2.6.4-pl1 입니다만 일단 최신으로 받습니다.
http://www.phpmyadmin.net/home_page/index.php
2, 압축풀고후 적당한 폴더에 붙여 넣기
이때 폴더 이름 보안상 바꾸시길 권장 합니다.
어쨋든 기본위치는 adm 폴더에 두시면 됩니다.
여기서 수정 했으면 당근 /adm/admin.menu100.php 파일
array("", "phpMyAdmin", "$g4[path]/$g4[phpmyadmin_dir]") 부분도 맞춰서 수정
3, config.inc.php 파일 설정값 입력후 저장
75-77 라인을 수정합니다.
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
// with 'config' auth_type)
$cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only
4, index.php 시작파일 수정
6라인 쯤에
//무단접속 차단
if($_SESSION[ss_mb_level] == 10){
추가
마지막 줄에
<?}?> 추가
이렇게 하면 관리자만 phpMyAdmin 을 사용하게 됩니다.
주의사항
phpMyAdmin 이 최근엔 유니코드로 지원합니다.
mysql 4.1.x 의 경우 기본 문자셋은 utf8 유니코드 입니다.
그누보드의 경우 euckr 의 형식이라서 글씨가 깨져서 보입니다.
현재 최신 버젼은 phpMyAdmin 2.6.4-pl1 입니다만 일단 최신으로 받습니다.
http://www.phpmyadmin.net/home_page/index.php
2, 압축풀고후 적당한 폴더에 붙여 넣기
이때 폴더 이름 보안상 바꾸시길 권장 합니다.
어쨋든 기본위치는 adm 폴더에 두시면 됩니다.
여기서 수정 했으면 당근 /adm/admin.menu100.php 파일
array("", "phpMyAdmin", "$g4[path]/$g4[phpmyadmin_dir]") 부분도 맞춰서 수정
3, config.inc.php 파일 설정값 입력후 저장
75-77 라인을 수정합니다.
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
// with 'config' auth_type)
$cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only
4, index.php 시작파일 수정
6라인 쯤에
//무단접속 차단
if($_SESSION[ss_mb_level] == 10){
추가
마지막 줄에
<?}?> 추가
이렇게 하면 관리자만 phpMyAdmin 을 사용하게 됩니다.
주의사항
phpMyAdmin 이 최근엔 유니코드로 지원합니다.
mysql 4.1.x 의 경우 기본 문자셋은 utf8 유니코드 입니다.
그누보드의 경우 euckr 의 형식이라서 글씨가 깨져서 보입니다.
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기
댓글 7개
- 호스팅서버가 리눅스/유닉스 라면
$cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = '자신의 db id'; // MySQL user
$cfg['Servers'][$i]['password'] = 'db 패스워드'; // MySQL password (only needed
// with 'config' auth_type)
$cfg['Servers'][$i]['only_db'] = 'db 명'; // If set to a db-name, only
- 호스팅서버가 NT(또는 윈도우 계열)라면
$cfg['Servers'][$i]['auth_type'] = 'cookie'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = '자신의 db id'; // MySQL user
$cfg['Servers'][$i]['password'] = 'db 패스워드'; // MySQL password (only needed
// with 'config' auth_type)
$cfg['Servers'][$i]['only_db'] = 'db 명'; // If set to a db-name, only
* 위 처럼하면 따로 세션인증을 통하지 않고도 접속시에 사용자 인증을 합니다..
$cfg['Servers'][$i]['auth_type'] 이 'config' 가 아니기 때문입니다.
그리고 $cfg['Servers'][$i]['auth_type'] 은 'config' 를 절대 사용하지 말것을 권장합니다.
http://www.sir.co.kr/bbs/board.php?bo_table=g4_faq&wr_id=9
사용하시는 분이 편하신 방법으로 하시면 될거에요 차이점은 phpMyAdmin 을 시작하면서 전자는 다시 홈페이지에 인증한 결과로 실행을 한다는 것이고 후자는 다시 인증을 한다는 것입니다.
sjsjin 님이나 착한아이 님 처럼 간단히 사용할수도 있습니다.
사용하시는 분이 편하신 방법으로 하시면 될거에요