How to hide database

Asked by Guillermo Palafox Chavolla

Hi! first, I'd like to congratulate you for your big effort on this proyect, is very powerful, clean and very ease to use!

Now my question... How can I hide a databases?... I mean, how can I hide the mysql and information_schema databases?

Thanks!

Greetings.

Question information

Language:
English Edit question
Status:
Answered
For:
chive Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
David Roth (davrot) said :
#1

Hi, we do not offer a out-of-the box solution, this is only possible by modifying the source code.
I can give you some pointers which files you need to change to make it work. Just let me know.

Revision history for this message
Guillermo Palafox Chavolla (palafox-87) said :
#2

Perfect!, Tell me which files I have to edit.

Thanks a lot!

Revision history for this message
EVAN (chief725) said :
#3

I also want to know.

Revision history for this message
EVAN (chief725) said :
#4

I find the solution:

1. Find SchemaController.php
2. Find function actionList
3. change
                               $schemata[] = $schema->SCHEMA_NAME;
 to
                                if(!preg_match("/mysql|schema/",$schema->SCHEMA_NAME)){
                                        $schemata[] = $schema->SCHEMA_NAME;
                                }

Revision history for this message
Guillermo Palafox Chavolla (palafox-87) said :
#5

haha... Exactly 2 years later :P

I hope to test your answer as soon as possible, even so it looks good.

Greetings.

Can you help with this problem?

Provide an answer of your own, or ask Guillermo Palafox Chavolla for more information if necessary.

To post a message you must log in.