'information_schema 숨기기'에 해당되는 글 1건

728x90

How to I hide the "information_schema" from users.


DB를 생성하고 User 에서 MySQL DB 접속권한을 부여했더니 phpmyadmin 에서 information_schema 테이블 정보가 보인다.

생성한 DB만 볼 수 있어야 하는데 information_schema 까지 보여서 폭풍검색을 했더니 할 수 있다, 없다 등 많은 정보들이 있다.


phpmyadmin 이 설치된 경로의 root 에 config.sample.inc.php 라는 파일이 있다.

이 파일을 복사해서 config.inc.php 파일로 만들고 나서


/*
 * First server
 */
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysqli if your server has it */
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = false;

/* rajk - for blobstreaming */
$cfg['Servers'][$i]['bs_garbage_threshold'] = 50;
$cfg['Servers'][$i]['bs_repository_threshold'] = '32M';
$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600;
$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M';
$cfg['Servers'][$i]['hide_db'] = 'information_schema';


한줄을 추가해줬더니 phpmyadmin 에서 보이던 것이 사라졌다.


더 참고할 정보는 http://www.electrictoolbox.com/hide-databases-phpmyadmin/

에서 보면 도움이 된다.




블로그 이미지

Link2Me

,