phpMyAmin 에서 information_schema 숨기기

리눅스/MySQL|2015. 1. 16. 11:31
반응형

MySQL 서버를 설치하고 관리하기 쉽도록 phpMyAdmin 을 설치하고 사용하는 곳이 대부분입니다.
기본적으로 information_schema 디비는 보안상 좋지 않으므로 phpMyAdmin 설정 파일에 아래와 같은 구문을 추가 해주시면 해당 데이터베이스가 숨겨집니다.

$cfg['Servers'][$i]['hide_db'] = 'information_schema';


예)

[root@yongbok ~]# vi /home/src/phpMyAdmin/config.inc.php

$cfg['Servers'][$i]['auth_type'] = 'http';

$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;

$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
$cfg['Servers'][$i]['hide_db'] = 'information_schema';


반응형

댓글()