網頁

2013年12月9日 星期一

【phpMyAdmin】隱藏information_schema

【環境:phpMyAdmin】

安裝完程式後,會發現,做管理者帳號設定時,會發現此資料表永遠會存在于每一個登入的帳號中。

目的應該是告訴該帳號用戶,你目前可使用的權限為哪些。

注意在安裝完phpmyadmin時,請將


config.sample.inc.php 複製一份成  config.inc.php

接下來在
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['hide_db'] = 'information_schema';

$cfg['Servers'][$i]['AllowNoPassword'] = false;

35行下

插入橘色那行,重新登入後即可。
保留information_schema也可,此表為唯讀表。


As always , if you have any question , feel free to contact me.
有任何問題,請聯絡我

歡迎轉載,請註明出處,感謝。