웹마스터 팁

http://mysql.netardor.net/phpMyAdmin.tar.gz이런것도 팁이 될런지 모르겠고... 또한 제가 무식하게 사용하는건지도
모르겠습니다만...

여러명이 사용하는 서버에서 각각의 사용자가 phpMyAdmin 을 사용하려고
하는 상황이다보니 다들 자기 계정에 phpMyAdmin 을 올려놓고 config.inc.php 에 자신의 DB 정보를 넣고 사용하더군요.

좀 낭비다 싶어 config.inc.php 파일을 다음과 같이 수정했습니다.

if(!isset($PHP_AUTH_USER)) {
  auth();
}
else {
  $id=$PHP_AUTH_USER;
  $pass=$PHP_AUTH_PW;
}

$user_db = $id;
if ( $id == 'root' ) $user_db = '';

$cfgServers[1]['host']          = 'localhost'; // MySQL hostname
$cfgServers[1]['port']          = '';          // MySQL port - leave blank for default port
$cfgServers[1]['socket']        = '';          // Path to the socket - leave blank for default socket
$cfgServers[1]['connect_type']  = 'tcp';       // How to connect to MySQL server ('tcp' or 'socket')
$cfgServers[1]['adv_auth']      = false;       // Use advanced authentication?
$cfgServers[1]['stduser']       = $id;          // MySQL standard user (only needed with advanced auth)
$cfgServers[1]['stdpass']       = $pass;          // MySQL standard password (only needed with advanced auth)
$cfgServers[1]['user']          = $id;      // MySQL user (only needed with basic auth)
$cfgServers[1]['password']      = $pass;          // MySQL password (only needed with basic auth)
$cfgServers[1]['only_db']       = $user_db;          // If set to a db-name, only this db is accessible
                                               // It may also be an array of db-names

이렇게 하니 자신의 apache auth 에서 자신의 DB 아이디와 비밀번호를
넣으니 자신의 DB 만 나오더군요.
root 로 로그인 했을때는 모두 다 나오게 예외처리를 하긴 했습니다만..

phpMyAdmin 2.2.0 으로 했구요.
http://mysql.netardor.net/phpMyAdmin.tar.gz
여기서 다운로드 받으실 수 있습니다...
제목 글쓴이 날짜
[추천 소스] 게시판 답글 알고리즘..(서기생각 -_-;;) [2] 서기 2002.04.10
[추천 소스] 최신의 인기가요 뽑아오는 PHP프로그램 [3] 제누스 2002.03.28
[추천 팁] [씽크식 PHP] PHP에대해 아무 지식이 없는 사람이 오해하는것. [3] [ζ]씽크 2002.03.23
[추천 팁] setcookie()사용시 header어쩌구 하는 에러날때.... [1] 하얀바다 2002.03.19
[추천 팁] 방문자의 os와 browser체크 함수.... [3] navyism 2002.03.18
[추천 팁] index key 값을 갖는array에서 value에 의한 key값 반환 [1] 차카게살자 2002.03.11
[추천 팁] 디망쉬식 스킨 시스템 [4] 디망쉬 2001.12.11
[추천 소스] phpMyAdmin 다중사용자용... [5] WOWpc 2001.11.29
[추천 소스] 특정일로부터 몇일 지났나 또는 몇일 남았나 알아보는 소스 ㅡ.ㅡ; [1] 타스케 2001.11.15
[추천 팁] phpmyadmin 으로 복구 할때. 후니 2001.02.28
[추천] 세로형 배너 슬라이드 [4] ⓣinⓣin™ 2004.06.24
[추천] 가로형 배너 슬라이드 [7] file ⓣinⓣin™ 2004.06.10
[JavaScript] 랜덤 추천 사이트 링크버튼 만들기 (추천) [4] SM 2002.02.25
몇 가지 팁..( 좀 깁니다.. 어느 정도 안다고 생각하시는 분들, 추천 ) [3] naughtykidd 2004.02.26
CSS파일이용하여 링크에 건반효과주기(강력추천) [8] 호호짱 2003.05.23
게시물 하단에 예쁜 추천,비추천 아이콘 버튼 추가하기~ [12] file xemall 2010.11.28
관리자에게 무제한 추천기능 부여 (XE Core 수정) [8] sejin7940 2010.06.30
특정 확장변수를 글 추천자에게만 보이게 하기 [10] 뮤랑이 2010.01.11
추천인/비추천인 표시하기 [7] file 고진감래 2009.11.05
추천과 추천포인트 관련 팁 [8] 고진감래 2009.09.30