PhpMyAdmin hides mysql and information_schema databases

Source: Internet
Author: User
Mysql and information_schema databases on the mysql server are system databases, which is of little use to us, but they cannot be deleted.

Mysql and information_schema databases on the mysql server are system databases, which is of little use to us, but they cannot be deleted, so how can we hide mysql and information_schema databases? let's take a look at how to hide them.

Content collected in this article:

PhpMyAdmin hides multiple databases (information_schema | mysql | test)

PhpMyAdmin prohibits/disallows users to change passwords

PhpMyAdmin hides information_schema from multiple databases | mysql | test

Edit/libraries/config. default. php

Hide a single database,The code is as follows:

$ Cfg ['servers'] [$ I] ['hide _ db'] = 'information _ scheme'

The code for hiding multiple databases is as follows:

$ Cfg ['servers'] [$ I] ['hide _ db'] = '(information_schema | mysql | test )'

# To hide all databases starting with hf, you can use '^ hf'. to hide a list, you can use '(database | ...)'.

# Supplement: version 3.3.3 and later

PhpMyAdmin prohibits/disallows users to change passwords. the code is as follows:

$ Cfg ['showchgpassword'] = false;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.