วิธีซ่อน information_schema ไม่ให้ทุกๆ User เห็น
ตั้งแต่ MySQL Version 5.x เป็นต้นมาจะมี information_schema แสดงอยู่ใน Database List ของทุกๆ User
จริงๆแล้ว information_schema เป็นเพียง virtual MySQL database ใช้เก็บ metadata information ของทุกๆ Database ซึ่งก็ไม่สามารถจะแก้ไขอะไรอยู่แล้ว
วิธีซ่อนไม่ให้เห็น information_schema ทำได้โดยไปแก้ไขไฟล์ config.inc.php ใน phpMyAdmin folder
แล้วเพิ่ม
$cfg['Servers'][$i]['hide_db'] = 'information_schema';
จากนั้น Restart Mysql เป็นอันเรียบร้อย ง่ายเนอะ ^^
อีกที
$cfg['Servers'][$i]['hide_db'] = 'information_schema'; // ถูก !!
ไม่ใช่
$cfg['servers'][$i]['hide_db'] = 'information_schema'; XX ผิด !!
No comments:
Post a Comment