Home > php教程 > php手册 > phpMyAdmin隐藏mysql与information_schema数据库

phpMyAdmin隐藏mysql与information_schema数据库

WBOY
Release: 2016-06-13 09:47:25
Original
1222 people have browsed it

mysql服务器中mysql与information_schema数据库是系统数据库了,这个对于我们来讲几乎没什么多大的用处,但我们是不能删除他们的他们是关键的,那么要如何隐藏mysql与information_schema数据库呢,下面我们一起来看看隐藏它们的方法。

本文收集内容:

• phpMyAdmin隐藏多个数据库(information_schema|mysql|test)
• phpMyAdmin禁止/不允许用户修改密码

phpMyAdmin隐藏多个数据库 information_schema|mysql|test

编辑/libraries/config.default.php

隐藏单个数据库:

 代码如下 复制代码

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

隐藏多个数据库:

 代码如下 复制代码

$cfg['Servers'][$i]['hide_db'] = '(information_schema|mysql|test)'

#如果想要隐藏全部以hf开头的数据库,可以使用'^hf',如果想隐藏一个列表,可以使
用'(database|database|...)'的形式

#补充:3.3.3以上版本

phpMyAdmin禁止/不允许用户修改密码

 代码如下 复制代码

$cfg['ShowChgPassword'] = false;

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template