:: Forums :: Discussions :: EasyDBtool
 
<< Previous thread | Next thread >>
Limit listed DBs in Table Manager
Moderators: nlstart
This thread is now closed
Author Post
PatrickTingen
Registered Member #2015
Joined:
Posts: 2
My hosting company runs a lot of mySql databases which all show up in the Table Manager screen.
Obviously, I have permissions to only one of all those hundreds of databases.
Is there a way to hide all the other databases?

I tried to change the function dbrestrict in settings.php and added this (see line with "// Edit Patrick")
            $db_list = mysql_list_dbs($link); //$db_list 
            $cnt = mysql_num_rows($db_list);     
            for ($i =0; $i < $cnt; $i++) {
              if(check_priv('UPDATE') ){    // Edit Patrick
                $dbnamearray[$i]= mysql_db_name($db_list, $i);
              }     
            }

But to no avail. Any suggestions?
Back to top
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System