如何隐藏我不允许访问的数据库 [英] How to hide databases that I am not allowed to access

查看:137
本文介绍了如何隐藏我不允许访问的数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我通过 pgAdmin3 Heroku - Postgresql 数据库时$ c>,它列出了所有的表格(约2600)。每当我打开pgAdmin3,我都必须找到自己的数据库。



有没有办法隐藏数据库,我是不允许

code>来访问?

解决方案

有同样的问题,因为它在AWS上拥有1000个其他数据库的共享空间。



在pgAdmin III中,请确保您与服务器断开连接,
$ b

    / li>
  • 在您的数据库名称中选择服务器,右键单击 - >属性,高级选项卡,数据库限制'中的
  • strong>包含在单独的引号中并用空格分隔
  •  'dback447'

    更新pgAdmin 4 - 不要使用引号,只是简单的DB名称。

    When I connect to my Heroku - Postgresql database via pgAdmin3, It lists all the tables (about 2600). Every time I open the pgAdmin3 I have to find my own database.

    Is there a way to hide databases that I'm not allowed to access ?

    解决方案

    Had the same issue, as its a shared space on AWS with 1000 other DBs.

    In pgAdmin III

    • make sure you are disconnected from the server,
    • select the Server, right click -> properties, Advanced tab,
    • in 'DB restriction' type in the name of your database(s) enclosed in single quotes and separated by spaces.

    E.g.

    'dback447'
    

    Update for pgAdmin 4 - Do not use quotes, just the plain DB name.

    这篇关于如何隐藏我不允许访问的数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆