mysql之information_schema库的存在形式

问题:
        在mysql中,数据库是以目录形式存在于datadir下。新的数据库初始化完成后,会出现mysql、performance_schema、test这几个目录,也就是系统初始化的库。我们知道,在mysql中还有一个库:information_schema,为什么这个库没有在datadir下以目录的形式存在呢?

解答:
         看下官网文档,对information_schema的解释:
         INFORMATION_SCHEMA  provides access to database  metadata , information about the MySQL server such as the  name of a database or table, the data type of a column, or access privileges. Other terms that are sometimes used for this information a re  data dictionary  and  system catalog .
          INFORMATION_SCHEMA  is a database within each MySQL instance, the pla ce that stores information about all the other databases that the MySQL server maintains. The  INFORMATION_SCHEMA database contains several read-only tables. They are actually views, not base tables, so there are no files associated with them, and you cannot set triggers on them. Also, there is no database directory with that name.
           通过官网文档对information_schema库的解释,可以发现:
           1.information_schema的作用是记录数据库的一些元数据信息(metadata)。这些信息包括数据库名、列的类型、访问权限等等。
           2.information_schema包含的是一些只读表。
           3.information_schema下面的表,实际上是视图,不是真正的表。
           所以,我们可以知道,information_schema,没有与之对应的目录。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26418713/viewspace-1392913/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/26418713/viewspace-1392913/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值