mysql系统数据库
2018-06-17 23:47:22来源:未知 阅读 ()
user: User accounts, global privileges, and other non-privilege columns. db: Database-level privileges. tables_priv: Table-level privileges. columns_priv: Column-level privileges. procs_priv: Stored procedure and function privileges. proxies_priv: Proxy-user privileges.
基本上每一个系统表都会包含有权限列和范围列,也就包含一些授权的主要信息表。
general_log: The general query log table. slow_log: The slow query log table.
这两张系统表可以将慢日志和日志按照表格的形式存储下来,但是相对来说带来对性能和存储空间的使用更大,一般生产环境我们都建议设置为外部文件。
help_category: Information about help categories. help_keyword: Keywords associated with help topics. help_relation: Mappings between help keywords and topics. help_topic: Help topic contents.
这些表存储了mysql帮助的基本信息,我们都可以用HELP +列 来查看具体的帮助信息。
time_zone: Time zone IDs and whether they use leap seconds. time_zone_leap_second: When leap seconds occur. time_zone_name: Mappings between time zone IDs and names. time_zone_transition, time_zone_transition_type: Time zone descriptions.
设置时区用以下方式:SET GLOBAL time_zone = timezone;
Column name | Description |
database_name | Database name |
table_name | Table name, partition name, or subpartition name |
last_update | A timestamp indicating the last time that InnoDB updated this row |
n_rows | The number of rows in the table |
clustered_index_size | The size of the primary index, in pages |
sum_of_other_index_sizes | The total size of other (non-primary) indexes, in pages |
Column name | Description |
database_name | Database name |
table_name | Table name, partition name, or subpartition name |
index_name | Index name |
last_update | A timestamp indicating the last time that InnoDB updated this row |
stat_name | The name of the statistic, whose value is reported in the stat_value column |
stat_value | The value of the statistic that is named in stat_name column |
sample_size | The number of pages sampled for the estimate provided in the stat_value column |
stat_description | Description of the statistic that is named in the stat_name column |
SELECT SUM(stat_value) pages, index_name, SUM(stat_value)*@@innodb_page_size size FROM mysql.innodb_index_stats WHERE table_name='t1' AND stat_name = 'size' GROUP BY index_name; SELECT index_name, stat_name, stat_value, stat_description FROM mysql.innodb_index_stats WHERE table_name like 't1'; SELECT index_name, stat_name, stat_value, stat_description FROM mysql.innodb_index_stats WHERE table_name like 't1' AND stat_name LIKE 'n_diff%';
server_cost:服务器操作的成本估算信息
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
- MySQL replace函数怎么替换字符串语句 2020-03-09
- PHP访问MySQL查询超时怎么办 2020-03-09
- mysql登录时闪退 2020-02-27
- MySQL出现1067错误号 2020-02-27
- mysql7.x如何单独安装mysql 2020-02-27
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash